Instruction Set
23
BCC
( Branch if carry flag clear )
Function
: if (C) = 0, then ( PC )
( PC ) + rel
Description : Branches if carry flag is “0”
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BCC rel
50
2
2/4
Example
:
62 F03F 8B1F20
AND1
F_SLP
63 F042 5004
BCC UNCNTRL
64 F044 3EC4
LDY
#0C4H
65 F046 2F02
BRA
$+4
66 F048 C410
UNCNTRL:
LDA
#10H
67 F04A 6F
RET
BCS
( Branch if carry flag set )
Function
: if (C) = 1, then ( PC )
( PC ) + rel
Description : Branch if carry flag is “1”.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BCS rel
D0
2
2/4
Example
:
68 F04B 8B1F20
AND1
F_SLP
69 F04E D004
BCS
UNCON
70 F050 3EC4
LDY
#0C4H
71 F052 2F02
BRA
$+4
72 F054 C410
UNCON:
LDA
#10H
73 F056 6F
RET