pcbway

CLRW

Clear W

W register is cleared. Zero bit (Z) is set.

[the_ad id=”3059″]

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
[the_ad id=”3059″]

Example:

CLRW

Before instruction:

W = b'11101110
Z = 0

After instruction:

W = b'00000000'
Z = 1