CLR clears (sets to 0) all the bit(s) of the indicated register. If the register is a bit (including the carry bit), only the specified bit is affected. Clearing the Accumulator sets the Accumulator's value to 0.
Syntax : CLR register
Example : CLR A
This instruction will clear all the contents of the accumulator.
Syntax : CLR register
Example : CLR A
This instruction will clear all the contents of the accumulator.
- Instruction
- Opcode
- Bytes
- Flags
- CLR bit_addr
- 0xC2
- 2
- None
- CLR C
- 0xC3
- 1
- C
- CLR A
- 0xE4
- 1
- None