mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 22:48:06 +11:00
9 lines
219 B
NASM
9 lines
219 B
NASM
|
; Compare HL with DE and sets Z and C in the same way as a regular cp X where
|
||
|
; HL is A and DE is X.
|
||
|
cpHLDE:
|
||
|
push hl
|
||
|
or a ;reset carry flag
|
||
|
sbc hl, de ;There is no 'sub hl, de', so we must use sbc
|
||
|
pop hl
|
||
|
ret
|