Instruction set
RETFIE | Return from interrupt |
Form |
[label]RETFIE
( label is omitable, shows SPACE code ) |
Operands | None |
Operation |
It returns from the interruption processing.
It sets the latest return address which is stored in the stack to the PC.
It sets the GIE bit of the INTCON register to 1 and it makes an interruption possible. | |
Flag | No change |
Instruction
cycles | 2 cycles |
RETLW | Return with literal in W |
Form |
[label]RETLWk
( label is omitable, shows SPACE code ) |
Operands | k : literal field ( 00(00h) to 255(FFh) ) |
Operation |
It returns from the subroutine.
It sets literal data to the W register.
It sets the latest return address which is stored in the stack to the PC.
The processing result can be delivered by literal data's using different RETLW by the processing result of the subroutine. | |
Flag | No change |
Instruction
cycles | 2 cycles |
RETURN | Return from Subroutine |
Form |
[label]RETURN
( label is omitable, shows SPACE code ) |
Operands | None |
Operation |
It returns unconditionally from the subroutine.
It sets the latest return address which is stored in the stack to the PC.
| |
Flag | No change |
Instruction
cycles | 2 cycles |
RLF | Rotate Left f through Carry |
Form |
[label]RLFf, d
( label is omitable, shows SPACE code ) |
Operands |
f : Register file addesss ( 00(00h) to 127(7Fh) )
d : Destination select ( 0 or 1 ) |
Operation |
It moves the contents of the f register to the 1-bit left including the carry bit.
d = 0 : store result in W
d = 1 : store result in f | |
Flag | It sets the most significant bit of the f register to C. |
Instruction
cycles | 1 cycle |
Next instructions
|