© 2000 Scenix Semiconductor, Inc. All rights reserved. 109 SX User’s Manual Rev. 3.1 www.scenix.com Chapter 3 Instruction Set 3.6.39    OR W,#lit OR of W and Literal into W Operation: W = W | lit Bits affected: Z Opcode: 1101 kkkk kkkk Description: This instruction performs a bitwise logical OR of the contents of W and an 8-bit lit-
eral value, and writes the 8-bit result into W. If the result is 00h, the Z bit is set.
Cycles: 1 Example: or W,#$0F ;set four low-order bits of W This example performs a bitwise logical OR 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 OR of this value with 0Fh and writes the result, 5Fh, into W. The result is
nonzero, so the Z bit is cleared.