mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-08 04:08:46 +10:00
It wasn't used much, so I replaced its use in the kernel with direct code and moved the routine in apps/ed, the only other place where it was used.
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
|