Intel 8XC251SA User Manual page 319

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

Advertisement

JBC bit,rel
Not Taken
Bytes:
5
States:
4
[Encoding]
1 0 1 0
1 0 0 1
Hex Code in:
Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
Operation:
JBC
(PC) ← (PC) + 3
IF (bit51) = 1
THEN
(bit51) ← 0
(PC) ← (PC) + rel
JC rel
Function:
Jump if carry is set
Description:
If 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 CY flag is clear. After the instruction sequence
JC
CPL CY
JC LABEL 2
the CY flag is set and program execution continues at label LABEL2.
Not Taken
Bytes:
2
States:
1
[Encoding]
0 1 0 0
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Binary Mode
Taken
5
7
0 0 0 1
0
AC
LABEL1
Binary Mode
Taken
2
4
0 0 0 0
INSTRUCTION SET REFERENCE
Source Mode
Not Taken
Taken
4
3
y y y
direct addr
OV
N
Source Mode
Not Taken
Taken
2
1
rel. addr
4
6
rel. addr
Z
2
4
A-67

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents