gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 176

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
SJMP
Description:
Operation:
Encoding:
Function:
Example:
rel
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 176 of 211
relative
Appendix A: Instruction Set

Related parts for gc80c510