Difference between revisions of "83Plus:BCALLs:400C"
From WikiTI
(No difference)
|
Latest revision as of 15:59, 7 April 2005
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