Specifications

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
Operand: 0 k 255
Status affected: -
Number of cycles: 1
EXAMPLE :
....
[label] IORLW 0x35
Before instruction execution: W = 0x9A
After instruction: W = 0xBF
Z = 0
IORWF - Inclusive OR W with f
Syntax: [label] IORWF f, d
Description: The content of register f is OR’ed with the content of W register. If d = w or d
= 0, the result is stored in the W register. If d = f or d = 1, the result is stored in register f.
Operation: (W) OR (f) -> d
Operand: 0 f 127, d -> [0,1]
Status affected: Z
Number of cycles: 1
EXAMPLE 1:
....
[label] IORWF REG,w
Before instruction execution: REG = 0x13,
W = 0x91
After instruction: REG = 0x13,
W = 0x93 Z = 0
http://www.mikroe.com/en/books/picmcubook/ch9/ (20 of 35)5/3/2009 11:35:12 AM