gc80c520a CORERIVER Semiconductor, gc80c520a Datasheet - Page 118

no-image

gc80c520a

Manufacturer Part Number
gc80c520a
Description
Midas1.0 Family Mask Rom/eprom/romless 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
Instruction Set
JBC
bit, rel
Jump if Bit is set and Clear bit
Function:
Description:
If the indicated bit is one, branch to the address indicated; otherwise proceed
with the next instruction. The bit will not be cleared if it is already a zero. The
branch destination is computed by adding the signed relative-displacement in
the third instruction byte to the PC, after incrementing the PC to the first byte of
the next instruction. No flags are affected.
Note: When this instruction is used to test an output pin, the value used as the
original data will be read from the output data latch, not the input pin.
The Accumulator holds 56h (01010110b). The instruction sequence,
Example:
JBC ACC.3, LABELI
JBC ACC.2, LABEL2
will cause program execution to continue at the instruction identified by the label
LABEL2, with the Accumulator modified to 52h (01010010b).
Bytes:
3
4
Cycles:
Preliminary
Encoding:
0
0
0
1
0 0 0 0
bit address
relative
JBC
Operation:
(PC)
(PC) + 3
IF (bit) = 1
THEN (bit)
0
(PC)
(PC) + rel
Page 118 of 187

Related parts for gc80c520a