1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 22:28:05 +11:00
collapseos/apps/ed/util.asm

9 lines
219 B
NASM
Raw Normal View History

; 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