Indexed 5-Bit Signed Offset
X
1000
+5 BIT OFFSET 6 $1006
+
12
A
12
LDAA $6,X STAA -$8,Y
STAA -$8,Y
$;
5-BIT OFFSET
Y
2000
5 Bit offset is signed included in instruction post byte. X, Y, SP or PC register can be used for indexing. Offset range from -16 to +15 from base register.
Relative Addressing
Only
for Branch Instructions.
LOOP
Bcc OP CODE OFFSET
(L)BEQ LOOP
OCL PC
OFFSET
OFFSET + OCL LOOP PC
+
Bcc OP CODE OFFSET
Branch Instructions are 2 or 4 bytes in length. All Branches are taken from the next instruction address (Destination of branch is calculated by adding signed offset to OCL +2 OR +4
SP SP SP
$3FFE $3FFF $4000
XH XL TOP OF STACK
DATA HANDLING INSTRUCTIONS