Intel 8XC251SA User Manual page 321

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

Advertisement

Example:
The instruction
JG LABEL1
causes program execution to continue at label LABEL1 if the Z flag and the CY flag are both
clear.
Not Taken
Bytes:
3
States:
2
[Encoding]
0 0 1 1
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
JG
(PC) ← (PC) + 2
IF (Z) = 0 AND (CY) = 0
THEN (PC) ← (PC) + rel
JLE rel
Function:
Jump if less than or equal
Description:
If the Z flag or the CY flag is set, 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
JLE LABEL1
causes program execution to continue at LABEL1 if the Z flag or the CY flag is set.
Not Taken
Bytes:
3
States:
2
[Encoding]
0 0 1 0
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Binary Mode
Taken
3
5
1 0 0 0
AC
Binary Mode
Taken
3
5
1 0 0 0
INSTRUCTION SET REFERENCE
Source Mode
Not Taken
Taken
2
1
rel. addr
OV
N
!
Source Mode
Not Taken
Taken
2
1
rel. addr
2
4
Z
!
2
4
A-69

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents