Clear W
W register is cleared. Zero bit (Z) is set.
Syntax:
[ label ] CLRW
Operation:
00h → (W)
1 → Z
Operands:
- None
Status Affected: Z
Example:
CLRW
Before instruction:
W = 0xFF
Z = 0
After instruction:
W = 0x00
Z = 1
Example:
CLRW
Before instruction:
W = b'11101110
Z = 0
After instruction:
W = b'00000000'
Z = 1

