© 2000 Scenix Semiconductor, Inc. All rights reserved.
SX Users Manual Rev. 3.1
Chapter 3 Instruction Set
AND of W and Literal into W
W = W & lit
1110 kkkk kkkk
This instruction performs a bitwise logical AND of the contents of W and an 8-bit
literal value, and writes the 8-bit result into W. If the result is 00h, the Z bit is set.
;mask out four high-order bits of W
This example performs a bitwise logical AND of W with the literal value #0Fh. The
result is written back to W.
For example, suppose that W contains the value 50h. The instruction takes the
logical AND of this value with 0Fh and writes the result, 00h, into W. The result is
zero, so the Z bit is set.