83Plus:BCALLs:400C
From WikiTI
Synopsis
Official Name: CpHLDE
BCALL Address: 400C
Compares HL and DE.
Inputs
- HL: operand 1
- DE: operand 2
Outputs
- Z set if DE=HL
- C set if DE>HL
Registers Destroyed
- none
Comments
Simple enough to implement if speed is important
Example
ld hl,3 ld de,4 B_CALL CpHLDE ;should return nz and c ld de,3 B_CALL CpHLDE ;should return z and nc