English
Language : 

PIC16C57-RC Datasheet, PDF (58/194 Pages) Microchip Technology – EPROM/ROM-Based 8-bit CMOS Microcontroller Series
PIC16C5X
IORLW
Inclusive OR literal with W
Syntax:
[ label ] IORLW k
Operands:
0 ≤ k ≤ 255
Operation:
(W) .OR. (k) → (W)
Status Affected: Z
Encoding:
Description:
1101 kkkk kkkk
The contents of the W register are
OR’ed with the eight bit literal 'k'.
The result is placed in the W regis-
ter.
Words:
Cycles:
Example:
1
1
IORLW 0x35
Before Instruction
W = 0x9A
After Instruction
W = 0xBF
Z =0
IORWF
Inclusive OR W with f
Syntax:
[ label ] IORWF f,d
Operands:
Operation:
0 ≤ f ≤ 31
d ∈ [0,1]
(W).OR. (f) → (dest)
Status Affected: Z
Encoding:
0001 00df ffff
Description:
Inclusive OR the W register with
register 'f'. If 'd' is 0 the result is
placed in the W register. If 'd' is 1
the result is placed back in
register 'f'.
Words:
1
Cycles:
1
Example:
IORWF
RESULT, 0
Before Instruction
RESULT =
W
=
After Instruction
RESULT =
W
=
Z
=
0x13
0x91
0x13
0x93
0
MOVF
Move f
Syntax:
[ label ] MOVF f,d
Operands:
0 ≤ f ≤ 31
d ∈ [0,1]
Operation:
(f) → (dest)
Status Affected: Z
Encoding:
0010 00df ffff
Description:
The contents of register 'f' is
moved to destination 'd'. If 'd' is 0,
destination is the W register. If 'd'
is 1, the destination is file
register 'f'. 'd' is 1 is useful to test a
file register since status flag Z is
affected.
Words:
1
Cycles:
1
Example:
MOVF FSR, 0
After Instruction
W = value in FSR register
MOVLW
Move Literal to W
Syntax:
[ label ] MOVLW k
Operands:
0 ≤ k ≤ 255
Operation:
k → (W)
Status Affected: None
Encoding:
Description:
1100 kkkk kkkk
The eight bit literal 'k' is loaded into
the W register.
Words:
Cycles:
Example:
1
1
MOVLW 0x5A
After Instruction
W = 0x5A
DS30453D-page 56
Preliminary
© 2002 Microchip Technology Inc.