Datasheet
FS98O22
Rev. 1.6 141/146
RETFIE
Return from Interrupt
Syntax RETFIE
Operation [Top Stack] => PC
Pop Stack
1 => GIE
Flag Affected None
Description The program counter is loaded from the top stack, then pop stack. Setting the GIE bit
enables interrupts.
Cycle 2
RETLW
Return and move literal to W
Syntax RETLW k
0 ≤ k ≤ FFh
Operation
[W] ← k
[Top Stack] => PC
Pop Stack
Flag Affected None
Description Move the eight-bit literal “k” to the content of the W register. The program counter is
loaded from the top stack, then pop stack.
Cycle 2
Return
Return from Subroutine
Syntax RETURN
Operation [Top Stack] => PC
Pop Stack
Flag Affected None
Description The program counter is loaded from the top stack, then pop stack.
Cycle 2
RLF
Rotate left [f] through Carry
Syntax RLF f, d
0 ≤ f ≤ FFh
d ∈ [0,1]
Operation
[Destination<n+1>]
←
[f<n>]
[Destination<0>] ← C
C ← [f<7>]
Flag Affected C, Z
Description
[f] is rotated one bit to the left through the Carry bit. If d is 0, the result is
stored in the W register. If d is 1, the result is stored back in [f].
Cycle 1
Example:
RLF OPERAND, 1
Before instruction:
C = 0
W = 88h, OPERAND = E6h
After instruction:
C = 1
W = 88h, OPERAND = CCh
FORTUNE'
Properties
For Reference Only