English
Language : 

SAB80515 Datasheet, PDF (199/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
SJMP rel
Function:
Short jump
Description:
Program control branches unconditionally to the address indicated. The branch
destination is computed by adding the signed displacement in the second
instruction byte to the PC, after incrementing the PC twice. Therefore, the range of
destinations allowed is from 128 bytes preceding this instruction to 127 bytes
following it.
Example:
The label ”RELADR” is assigned to an instruction at program memory location
0123H. The instruction
SJMP RELADR
will assemble into location 0100H. After the instruction is executed, the PC will
contain the value 0123H.
Operation:
Note:
Under the above conditions the instruction following SJMP will be at 102H.
Therefore, the displacement byte of the instruction will be the relative offset (0123H-
0102H) = 21H. In other words, an SJMP with a displacement of 0FEH would be a
one-instruction infinite loop.
SJMP
(PC) ← (PC) + 2
(PC) ← (PC) + rel
Encoding:
Bytes:
Cycles:
1000 0000
2
2
rel. address
Semiconductor Group
199