4/17/98 6-147 Addressing Modes and Data Types
RET Return from Subroutine
Syntax: RET
Operation: (PC) <-- ((SP))
(SP) <-- (SP) + 4
Description: A 24-bit return address is popped from the stack and used to replace the entire
program counter value (PC
23-0
). This instruction is used to return from a subroutine that was called
with a CALL or Far Call (FCALL).
Note: if the XA is in page 0 mode, only a 16-bit address will be popped from the stack.
Size: None
Flags Updated: none
Bytes: 2
Clocks: 8/6 (PZ)
Encoding:
1 1 0 1 0 1 1 0
1 0 0 0 0 0 0 0