<< Previous | Next >>

> FLAG cc,HL Check Condition Code Rabbit 4000 Instruction

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

> 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 the Z flag has not been set
> Z | Z=1 | True when the Z flag has been set
> NC | C=0 | True when the 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 is 1 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 the L/V flag is set: there is overflow.

<< Previous | Next >>