CPL
Description:
CPL complements operand, leaving the result in operand. If operand is a single bit then the state of the bit will be reversed. If operand is the Accumulator then all the bits in the Accumulator will be reversed. This can be thought of as "Accumulator Logical Exclusive OR 255" or as "255-Accumulator." If the operand refers to a bit of an output Port, the value that will be complemented is based on the last value written to that bit, not the last value read from it.
Operation: | CPL |
Function: | Complement Register |
Syntax: | CPL operand |
Instructions | OpCode | Bytes | Cycles | Flags |
CPL A | 0xF4 | 1 | 1 | None |
CPL C | 0xB3 | 1 | 1 | C |
CPL bit addr | 0xB2 | 2 | 1 | None |
User Comments
No Posts found !Login to Post a Comment.