closely approximate machine language to best illus
trate the operation of the system. For clarity, the
mnemonic for each operation code is used instead of
the actual machine code. In addition, whenever possi
ble, the contents of registers, storage locations, and so
on, are given in decimal notation rather than the actual
binary formats. When binary formats are used, they
are segmented into bytes (eight bits) for ease of visual
comparison.
Included at the end of this Appendix are program
ming examples that utilize the assembly language
symbols and formats'.
Load
placed into general register 2.
Assume:
Condition code = 2; greater than zero
Reg 2 (before)
LCR 2 4
Reg 2 (after) 1111111111111111
Condition code setting = 1; less than zero.
Load Multiple
General registers 5, 6, and 7 are to be loaded from
consecutive words starting at
Reg 5 (before)
Reg 6 (before)
Reg 7 (before)
Reg 12
Loc
LM
Reg 5 (after)
Reg 6 (after)
Reg 7 (after)
5
R.
7
122
12
73 26
D2
73 26
pared with the contents of register 2.
Assume:
Reg 2
Reg 4
The instruction is:
CR 4 2
Condition code = 1; first operand low.
Divide (Fixed Point)
The contents of the even/odd pair of general registers
6 and 7 are to be divided by the contents of general
register 4.
Assume:
Reg 6 (before)
Reg 7 (before)
Reg 4
DR 6 4
Heg 6 (after)
Condition code: unchanged.
The instruction divides the contents of registers 6
and 7 by the content of register 4. The quotient re
places the content of register 7, and the remainder
replaces the content of register 6.
The signed, packed decimal field at double-word loca
tion
and placed in general register 7.
Assume:
Reg 5
Reg 6
Loe
11111111