gc80c520a CORERIVER Semiconductor, gc80c520a Datasheet - Page 151

no-image

gc80c520a

Manufacturer Part Number
gc80c520a
Description
Midas1.0 Family Mask Rom/eprom/romless 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
SJMP
Description:
Operation:
Encoding:
Function:
Example:
rel
MiDAS1.0 Family
Cycles:
Bytes:
Short Jump
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.
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.
(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. Put another way, an SJMP with a displacement of
0FEH would be a one-instruction infinite loop.)
2
3
SJMP
(PC)
(PC)
1
0
(PC) + 2
(PC) + rel
0
0
0 0 0 0
Page 151 of 187
relative

Related parts for gc80c520a