Download Wang 700 A/B
Transcript
Section /I Explanation of Keys Subtracts number in X from number in register designated in Y. The difference is placed in internal register. Number in X remains unchanged. Multiplies number in X by number in register designated in Y. The product is placed in internal register. Number in X remains unchanged. Divides number in X into number in register designated in Y. The quotient is placed in internal register. Number in X remains unchanged. - INDIRECT X INDIRECT -;- INDIRECT The following example illustrates how each of these commands would be used. Example Perform the following in Register 002 using Indirect mode of address. 7(5.8)-7.2 2+ 3 = 126.951111110 3 KEY , OPERATION 2 t -- Places the register number in Y (The register number is usually computed in the program) 7 ST INDIR - Stores 7 in register 002. The value is now in both register 002 and the X Register. 5 . 8 X INDIR Multiplies the value (7) in Register 002 by 5.8,putting the result in 002 and 5.8 remaining in X. 7 . 2 INDIR --- Subtract 7.2 from the value in Register 002 and places result in Register 002. 7.2 remains in X. 3 -;- INDIR Divides the value in Register 002 by 3. The result is put in Register 002 and 3 remains in X. ------- ~ ~INDIR Exchanges 7(5.8) - 7.2 in Register 002 3 with 3 in the X-Register. Squares the value in X. 2-15