4/17/98 6-75 Addressing Modes and Data Types
CALL Call Subroutine Relative
Syntax: CALL rel16
Operation: (PC) <-- (PC) + 3
(SP) <-- (SP) - 4
((SP)) <-- (PC.23-0)
(PC) <-- (PC + rel16*2)
(PC.0) <-- 0
Description: Branches unconditionally in the range of +65,534 bytes to -65,536 bytes, with the
limitation that the target address is word aligned in code memory. The 24-bit return address is
saved on the stack.
Note: if the XA is in page 0 mode, only a 16-bit address will be pushed to the stack.
Note: Refer to section 6.3 for details of branch range
Size: None
Flags Updated: none
Bytes: 3
Clocks: 7/4(PZ)
Encoding:
byte 2: upper 8 bits of rel16
byte 3: lower 8 bits of rel16