Other Indirect Operations


Depending upon your applications, you can indirectly address virtually all of the calculator instructions that have fields. Examples of functions that you might want to address indirectly in a program include alpha, test, and file I/O instructions. This section gives examples illustrating an indirect alpha instruction, and an indirect test.


Indirect Alpha Merge

By using an indirect alpha merge instruction, you can instruct the calculator to merge the contents of the data register specified by the pointer register.

For example, if data register T contains the value 7, the instruction sequence MRG IND T merges the value in data register 007 with the current alpha message. This example is illustrated below.

indalphamerge

Indirect Comparison Tests

By using an indirect display-comparison test, you can instruct the calculator to compare the contents of the numeric display register with the contents of the data register specified by the pointer register.

For example, if data register A contains the value 15, the instruction sequence 2.5 IF= IND A compares 2.5 with the contents of data register 15. If the result of the test is true, execution proceeds normally. If the result is false, the first instruction following the comparison test is skipped. This example is illustrated below.
indcompare

Back