<< Previous | Next >>

FLAG cc,HL     Check Condition Code     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
-- FLAG cc,HL if (cc) then HL=1 else HL=0
ED C4 FLAG NZ,HL if (NZ) then HL=1 else HL=0
ED CC FLAG Z,HL if (Z) then HL=1 else HL=0
ED D4 FLAG NC,HL if (NC) then HL=1 else HL=0
ED DC FLAG C,HL if (C) then HL=1 else HL=0
ED A4 FLAG GT,HL if (GT) then HL=1 else HL=0
ED B4 FLAG LT,HL if (LT) then HL=1 else HL=0
ED AC FLAG GTU,HL if (GTU) then HL=1 else HL=0
ED BC FLAG V,HL if (V) then HL=1 else HL=0

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
4
n/a
n/a
Rabbit 5000
4
4
2

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-

Description

If the condition cc is true then HL is set to one. Otherwise, HL is reset to zero.

Condition Code
Flag Bit Value
Description
NZ
Z=0

True when Z flag has not been set

Z
Z=1

True when Z flag has been set

NC
C=0

True when C flag has not been set

C
C=1

True when the C flag has been set

GT
(Z or (S xor V))=0

True when Z is 0 and L/V and S are either both 1 or both 0.

LT
(S xor V)=1

True when either S or L/V is 1.

GTU
((C=0) and (Z=0)) =1

True when C and Z are both 0.

V
L/V=1

True when L/V flag is set: there is overflow.



Rabbit Instructions << Previous | Next >> rabbit.com