
12.1 Instruction Set Index
(Continued)
Alphabetical
Assembly
Mnemonic
Operation
Page
OR m
1
OR n
OR r
OTDR
OTIR
Logical ‘OR’ of memory location contents and accumulator
Logical ‘OR’ of immediate data n and Accumulator
Logical ‘OR’ of register r and Accumulator
Load output port (C) with location (HL), decrement HL and B; repeat until B
e
0
Load output port (C) with location (HL), increment HL, decrement B;
repeat until B
e
0
Load output port (C) with register r
Load output port (n) with Accumulator
Load output port (C) with location (HL), decrement HL and B
Load output port (C) with location (HL), increment HL, decrement B
41
39
37
54
53
OUT (C),r
OUT (n),A
OUTD
OUTI
52
53
53
52
POP qq
PUSH qq
Load register pair qq with top of stack
Load top of stack with register pair qq
35
35
RES b,m
1
RES b,r
RET
RET cc
RETI
RETN
RL m
1
RL r
RLA
RLC m
1
RLC r
RLCA
RLD
RR m
1
RR r
RRA
RRC m
1
RRC r
RRCA
RRD
RST P
Reset bit b of memory location m
1
Reset bit b of register r
Unconditional return from subroutine
Return from subroutine, if cc true
Unconditional return from interrupt
Unconditional return from non-maskable interrupt
Rotate memory contents left through carry
Rotate register r left through carry
Rotate Accumulator left through carry
Rotate memory contents left circular
Rotate register r left circular
Rotate Accumulator left circular
Rotate digit left and right between Accumulator and memory (HL)
Rotate memory contents right through carry
Rotate register r right through carry
Rotate Accumulator right through carry
Rotate memory contents right circular
Rotate register r right circular
Rotate Accumulator right circular
Rotate digit right and left between Accumulator and memory (HL)
Restart to location P
44
44
56
56
56
57
47
45
45
47
45
45
49
48
46
48
47
45
46
49
57
SBC A,m
1
SBC A,n
SBC A,r
SBC HL,pp
SCF
SET b,m
1
SET b,r
SLA m
1
SLA r
SRA m
1
SRA r
SRL m
1
SRL r
SUB m
1
SUB n
SUB r
Subtract, with carry, memory contents from Accumulator
Subtract, with carry, immediate data n from Accumulator
Subtract, with carry, register r from Accumulator
Subtract, with carry, register pair pp from HL
Set carry flag
Set bit b in memory location m
1
contents
Set bit b in register r
Shift memory contents left, arithmetic
Shift register r left, arithmetic
Shift memory contents right, arithmetic
Shift register r right, arithmetic
Shift memory contents right, logical
Shift register r right, logical
Subtract memory contents from Accumulator
Subtract immediate data n from Accumulator
Subtract register r from Accumulator
41
39
36
43
38
44
44
48
46
48
46
48
46
40
39
36
XOR m
1
XOR n
XOR r
Exclusive ‘OR’ memory contents and Accumulator
Exclusive ‘OR’ immediate data n and Accumulator
Exclusive ‘OR’ register r and Accumulator
42
39
37
30