V I C T O R T E C H N O L O G Y

Chapter 6: Branch & Loop Programs

Program instructions typically execute sequentially through program line numbers, but it is possible to transfer or ‘branch’ to a program line that is not the next line of program memory.

Using the GTO instruction in a program will transfer an execution to any program line by using the designated three digit code of that line within the GTO command. After a branch, execution will resume sequentially as normal. For example, if program line 008 contains the command r GTO 004, then program line 004 will be executed after program line 008.

When the GTO instruction describes a lower number program line, the instructions contained within the lines between that line and the GTO instruction will be performed repeatedly. This is called ‘looping’.

To terminate the execution of a loop, insert a r x<y , r x=0 , or R/S instruction within the loop. Also, touching any key while executing the loop will stop the program.

Branching with Conditions

Sometimes you will need to branch to different lines of program memory, conditionally. There are two conditional test instructions used in program of conditional branching.

r x<y determines whether the value in the x-register is less than or equal to the value in the y-register. The x-register holds the number currently displayed in run mode and the y-register holds the number in the display when you touched ENTER. (Touching 3 ENTER 9 would store 3 in the y-register and 9 in the x-register.)

r x=0 determines whether the value in the X register is equal to 0.

Using these instructions will either:

63

Page 63
Image 63
Victor Technology V12 manual Branch & Loop Programs, Branching with Conditions

V12 specifications

The Victor Technology V12 is a sophisticated and versatile electronic calculator designed for both personal and professional use. With its user-friendly interface and advanced functionality, it has become a popular choice among students, educators, and business professionals alike.

One of the standout features of the V12 is its large, backlit display, which provides clear visibility in various lighting conditions. This makes it easier for users to read numbers and calculations without straining their eyes. The calculator’s ergonomic design ensures comfortable handling, while its robust construction promises durability and longevity.

The V12 supports a wide range of mathematical operations, including basic arithmetic functions, advanced calculations like square roots and percentages, and trigonometric functions. This versatility makes it suitable for both everyday calculations and more complex mathematical tasks, catering to a diverse audience.

Incorporating cutting-edge technology, the Victor Technology V12 boasts a solar-powered option, which enhances its sustainability and reduces the need for battery replacements. For situations where solar power is insufficient, it also features a backup battery, ensuring uninterrupted usage in all environments.

Another key characteristic of the V12 is its programmable memory function. Users can store frequently used calculations or data, facilitating quicker access and minimizing repetitive input. This feature proves particularly useful for professionals who deal with extensive numerical data and require efficiency in their calculations.

The V12 also includes a spell-check dictionary and error-checking capabilities, making it easier to avoid mistakes during calculations. With its responsive keys and tactile feedback, users can input data swiftly and accurately, further boosting productivity.

In summary, the Victor Technology V12 stands out due to its combination of advanced functionality, ease of use, and reliable performance. With features tailored for a wide range of users, it successfully meets the demands of both casual calculators and those who require more sophisticated computational capabilities. Its thoughtful design, reliability, and innovative technology make it a valuable tool in today's fast-paced world of mathematics and finance. Whether in a classroom, an office, or at home, the V12 proves to be an essential companion for tackling everyday numerical challenges.