English
Language : 

DR805X Datasheet, PDF (71/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.39. SJMP
- 71 -
Instruction: 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.
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:
2
Cycles:
3
Encoding:
10000000
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.