PIC17C75X
IORWF
Inclusive OR WREG with f
[ label ] IORWF f,d
0 ≤ f ≤ 255
LCALL
Long Call
Syntax:
Syntax:
[ label ] LCALL
0 ≤ k ≤ 255
k
Operands:
Operands:
Operation:
d
[0,1]
PC + 1 → TOS;
Operation:
(WREG) .OR. (f) → (dest)
k → PCL, (PCLATH) → PCH
Status Affected:
Encoding:
Z
Status Affected:
Encoding:
None
0000
100d
ffff
ffff
1011
0111
kkkk
kkkk
Inclusive OR WREG with register 'f'. If
'd' is 0 the result is placed in WREG. If
'd' is 1 the result is placed back in regis-
ter 'f'.
LCALLallows an unconditional subrou-
tine call to anywhere within the 64K pro-
gram memory space.
Description:
Description:
First, the return address (PC + 1) is
pushed onto the stack. A 16-bit desti-
nation address is then loaded into the
program counter. The lower 8-bits of
the destination address is embedded in
the instruction. The upper 8-bits of PC
is loaded from PC high holding latch,
PCLATH.
Words:
Cycles:
1
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Process
Data
Write to
destination
Words:
Cycles:
1
2
IORWF RESULT, 0
Example:
Q Cycle Activity:
Q1
Before Instruction
Q2
Q3
Q4
RESULT =
0x13
0x91
WREG
=
Decode
Read
literal 'k'
Process
Data
Write
register PCL
After Instruction
RESULT =
No
operation
No
operation
No
operation
No
operation
0x13
0x93
WREG
=
MOVLW HIGH(SUBROUTINE)
MOVPF WREG, PCLATH
Example:
LCALL LOW(SUBROUTINE)
Before Instruction
SUBROUTINE =
16-bit Address
?
PC
=
After Instruction
PC
=
Address (SUBROUTINE)
1997 Microchip Technology Inc.
DS30264A-page 201