DESCRIPTION OF INSTRUCTIONS

96. SJMP code address (Short jump)

 

 

 

7

 

 

 

 

 

 

 

 

0

 

Instruction code

:

 

1

0

0

0

 

 

0

0

0

0

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

0

 

Relative offset

 

 

R7

R6

R5

R4

 

 

R3

R2

R1

R0

Byte 2

Operations

: (PC)(PC)+2

 

 

 

 

 

 

 

 

 

 

(PC)(PC)+relative offset

 

 

 

 

Number of bytes

: 2

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

 

 

RS0

OV

F1

P

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: Relative offset jump data is added/subtracted to/from the

program counter contents following an increment. The program counter contents are updated, and control is then shifted to the updated address. The range in which relative jumps can be executed by this instruction is +127 to –128 in respect to the incremented program counter contents. There is no page field restrictions.

355

Page 362
Image 362
Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual Sjmp code address Short jump, 355