<< Previous | Next >>

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

> Opcode | Instruction | Clocks | Operation
> 2F | CPL | 2 | A = ~A

> 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.

<< Previous | Next >>