Tests and Jump Functions

When creating a program, there is often a need for the conditional execution of an instruction based on a specific condition, as well as the repetition of a set of instructions.

This is handled on the HP 30b using the GOTO, LBL (label) and Test instructions. LBL is an instruction that does not do anything by itself, but it acts as a marker for Jump instructions.

1.To enter a label or GOTO instruction, press and hold :and simultaneously press the GOTO, GOTOT, or GOTOF key, then release both keys.

2.Type a number between 00 and 99 (for numbers smaller than 10, you must type the 0 first, such as 03).

3. For example,

(HOLD)

creates label 03 in your program. You can

then use a GOTO 03 instruction to jump to that label from any location in your program to the position of the label. GOTOT (Go To If True) and GOTOF (Go To If False) will only jump if the current displayed number is non-0 (true) for GOTOT or 0 (false) for GOTOF.

Used together, these instructions allow you to create programs like the following:

8= LBL 01

DISP 5

-1=

GOTOT 01 STOP

Use the following keystrokes to enter the program:

1.

 

(HOLD)

 

 

 

 

 

 

 

 

2.

(HOLD)

 

 

 

 

 

 

 

3.

 

 

(HOLD)

 

 

 

 

 

 

 

4. (HOLD) . This program has 13 bytes, and the checksum is 234. This program counts from eight to zero displaying each number 1 second.

Programming 81

Page 89
Image 89
HP 30b Professional, 20b Consultant Financial manual Tests and Jump Functions, Creates label 03 in your program. You can

30b Professional, 20b Consultant Financial specifications

The HP 30b Professional calculator is a versatile tool designed specifically for business professionals, engineers, and educators. This reliable calculator merges advanced technologies with user-friendly features, enabling users to perform complex calculations with ease. The HP 30b is appreciated for its robust design and functionality, making it a top choice among those who require a dependable calculating device for various applications.

One of the standout features of the HP 30b is its capability to handle both RPN (Reverse Polish Notation) and algebraic entry modes. This flexibility allows users to choose the input method that best suits their preferences, enhancing productivity and minimizing calculation errors. The calculator also boasts a large, high-resolution display that ensures clarity when navigating through calculations and results.

The HP 30b comes equipped with essential business functions that include financial calculations, cash flow analysis, and statistical functions, all of which are invaluable in professional settings. Users can seamlessly compute interest rates, perform amortization schedules, and evaluate loan payments, making it an indispensable asset for finance-oriented individuals.

Another key characteristic is its programmable functionality. The HP 30b allows users to create custom programs tailored to specific tasks, which can save time and reduce manual entry errors. This programmable capability is especially beneficial for repetitive calculations, providing a significant efficiency boost in ambiguous or multi-step operations.

The durable construction of the HP 30b ensures longevity while the compact design makes it portable and convenient for on-the-go calculations. Additionally, the calculator features an energy-efficient design, which includes a long-lasting battery life, reducing the need for frequent replacements.

With a straightforward key layout and intuitive interface, the HP 30b is designed with user experience in mind. Whether in a classroom, office, or fieldwork scenario, users can easily navigate functions and access the features they need quickly. The HP 30b Professional calculator is truly an impressive blend of technology and practicality, making it an essential tool for anyone needing reliable performance in their daily calculations.