
28
Rabbit 2000/3000 Microprocessor
Description
The data in the Accumulator is inverted (one’s complement).
Example
If the data in the Accumulator is 1100 0101, after the instruction CPL the Accumulator will contain
0011 1010.
Description
Decrements the byte whose address is:
•
in word register HL, or
•
the data in index register IX plus a displacement value d, or
•
the data in index register IY plus a displacement value d.
CPL
Opcode
Instruction
Clocks
Operation
2F
CPL
2
A = ~A
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
•
DEC (HL)
DEC (IX+d)
DEC (IY+d)
Opcode
Instruction
Clocks
Operation
35
DEC (HL)
8 (2,1,2,3)
(HL) = (HL) - 1
DD 35 d
DEC (IX+D)
12 (2,2,2,1,2,3)
(IX + d) = (IX + d) - 1
FD 35 d
DEC (IY+D)
12 (2,2,2,1,2,3)
(IY + d) = (IY + d) - 1
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
V
-
•
•
•
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...