DR805x Instructions set details
- 71 -
3.39. SJMP
Instruction:
Function:
SJMP rel
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.
Note:
Under the above conditions the instruction following SJMP will be at
102 H. Therefore, the displacement byte of the instruction will be the
relative offset (0123 H - 0102 H ) = 21 H . In other words, an SJMP with
a displacement of 0FE H would be a one-instruction infinite loop.
Operation:
(PC) ← (PC) + 2
(PC) ← (PC) + rel
Bytes:
Cycles:
2
3
Encoding:
1
0
0
0
0
0
0
0
relative address
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.