Download Print this page

Siemens SAB 80515 Series User Manual page 166

8-bit single-chip microcontroller family

Advertisement

JMP
@A + DPTR
Function:
Jump indirect
Description:
Add the eight-bit unsigned contents of the accumulator with the sixteen-bit data
pointer, and load the resulting sum to the program counter. This will be the address
for subsequent instruction fetches. Sixteen-bit addition is performed (modulo 2
carry-out from the low-order eight bits propagates through the higher-order bits.
Neither the accumulator nor the data pointer is altered. No flags are affected.
Example:
An even number from 0 to 6 is in the accumulator. The following sequence of
instructions will branch to one of four AJMP instructions in a jump table starting at
JMP_TBL:
JMP_TBL: AJMP
If the accumulator equals 04 H when starting this sequence, execution will jump to
label LABEL2. Remember that AJMP is a two-byte instruction, so the jump
instructions start at every other address.
Operation:
JMP
(PC) ← (A) + (DPTR)
Encoding:
0 1 1 1
Bytes:
1
Cycles:
2
Semiconductor Group
MOV
DPTR, #JMP_TBL
JMP
@A + DPTR
LABEL0
AJMP
LABEL1
AJMP
LABEL2
AJMP
LABEL3
0 0 1 1
166
*
Instruction Set
16
): a

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k