Intel 8XC251SA User Manual page 326

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

8XC251SA, SB, SP, SQ USER'S MANUAL
JSG rel
Function:
Jump if greater than (signed)
Description:
If the Z flag is clear AND the N flag and the OV flag have the same value, branch to the
address specified; otherwise proceed with the next instruction. The branch destination is
computed by adding the signed relative displacement in the second instruction byte to the
PC, after incrementing the PC twice.
Flags:
CY
Example:
The instruction
JSG LABEL1
causes program execution to continue at LABEL1 if the Z flag is clear AND the N flag and
the OV flag have the same value.
Not Taken
Bytes:
3
States:
2
[Encoding]
0 0 0 1
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
JSG
(PC) ← (PC) + 2
IF [(N) = 0 AND (N) = (OV)]
THEN (PC) ← (PC) + rel
JSGE rel
Function:
Jump if greater than or equal (signed)
Description:
If the N flag and the OV flag have the same value, branch to the address specified;
otherwise proceed with the next instruction. The branch destination is computed by adding
the signed relative displacement in the second instruction byte to the PC, after incrementing
the PC twice.
Flags:
CY
Example:
The instruction
JSGE LABEL1
causes program execution to continue at LABEL1 if the N flag and the OV flag have the
same value.
A-74
AC
Binary Mode
Taken
3
5
1 0 0 0
AC
OV
N
!
!
Source Mode
Not Taken
Taken
2
1
rel. addr
OV
N
!
!
Z
!
2
4
Z
!

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents