SX Embedded Controller Instruction

RETP

Description: Return from call, affect PA2 : PA0
Operation: PC = STACK[SP--]; page = PC >> 9
Flags affected: PA0..2
Registers affected: PC
Sources referenced: -
Cycles: 1
Opcode:
Details: SX Users Manual page # 116
Microchip PIC syntax:
Notes:

Same as RET but the return address bits 11, 10 & 9 (on the stack) are written to the page-select bits PA2, PA1 & PA0 in the STATUS register. Thus the page-select bits are properly set to the page being returned to.

See also:

See: