mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 05:58:05 +11:00
4f7a05e3b7
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
|