ANDLW

AND Literal and W

The contents of W register are AND’ed with the eight-bit literal ‘k’. The result is placed in the W register.

[the_ad id=”3059″]

Syntax:

[ label ] ANDLW k

Operation:

(W) .AND. (k) → (W)

Operands:

  • k is from 0 to 255 (decimal)

Status Affected: Z

Example:

Before instruction:
After instruction:
[the_ad id=”3059″]

Example:

Before instruction:
After instruction: