Figure 2.6 shows the object code formats of the arithmetic, logic, and shift instructions.
15
op
15
15
op
15
op
15
op
15
op
15
Legend:
op:
Operation field
rm, rn: Register field
IMM:
Immediate data
Figure 2.6 Arithmetic, Logic, and Shift Instruction Object Code Formats
28
8
7
rm
8
7
op
8
7
rm
8
7
rn
8
7
rm
8
7
rn
8
7
op
0
ADD, SUB, CMP,
rn
ADDX, SUBX (Rm)
0
ADDS, SUBS, INC, DEC,
rn
DAA, DAS, NEG, NOT
0
MULXU, DIVXU
rn
0
ADD, ADDX, SUBX,
IMM
CMP (#xx:8)
0
AND, OR, XOR (Rm)
rn
0
AND, OR, XOR (#xx:8)
IMM
0
SHAL, SHAR, SHLL, SHLR,
rn
ROTL, ROTR, ROTXL, ROTXR