Intel 8XC251SA User Manual page 324

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

Advertisement

8XC251SA, SB, SP, SQ USER'S MANUAL
JNC rel
Function:
Jump if carry not set
Description:
If the CY flag is clear, 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 to point to the next
instruction. The CY flag is not modified.
Flags:
CY
!
Example:
The CY flag is set. The instruction sequence
JNC LABEL1
CPL CY
JNC LABEL2
clears the CY flag and causes program execution to continue at label LABEL2.
Not Taken
Bytes:
2
States:
1
[Encoding]
0 1 0 1
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
JNC
(PC) ← (PC) + 2
IF (CY) = 0
THEN (PC) ← (PC) + rel
JNE rel
Function:
Jump if not equal
Description:
If the Z flag is clear, 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
JNE LABEL1
causes program execution to continue at LABEL1 if the Z flag is clear.
A-72
AC
Binary Mode
Taken
2
4
0 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