A-67
INSTRUCTION SET REFERENCE
JBC bit,rel
Binary Mode Source Mode
Not Taken Taken Not Taken Taken
Bytes: 5 5 4 4
States: 47 36
[Encoding]
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:
Example: The CY flag is clear. After the instruction sequence
JC LABEL1
CPL CY
JC LABEL 2
the CY flag is set and program execution continues at label LABEL2.
Binary Mode Source Mode
Not Taken Taken Not Taken Taken
Bytes: 22 22
States: 14 14
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
1 0 1 0 1 0 0 1 0 0 0 1 0 y y y direct addr rel. addr
CY AC OV N Z
! ————
[Encoding] 0 1 0 0 0 0 0 0 rel. addr