<< Previous | Next >>

CPL     One's Complement     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
2F CPL A = ~A

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
2
n/a
n/a
Rabbit 5000
2
2
2

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
·

Description

A is inverted (one's complement).

Example

If A is 1100 0101, it will be 0011 1010 after the CPL instruction executes.


Rabbit Instructions << Previous | Next >> rabbit.com