1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 21:18:05 +11:00
collapseos/tools/tests/zasm/test3.asm
Virgil Dupras 22c7eeaa5d Move apps/zasm/tests to tools/tests/zasm
This 'apps' folder is going to disappear. Everything is going to be a
"part" to be assembled through recipes. 'apps' has no meaning.
2019-05-16 11:23:15 -04:00

20 lines
210 B
NASM

; test local labels
addDE:
push af
add a, e
jr nc, .end ; no carry? skip inc
inc d
.end: ld e, a
pop af
ret
addHL:
push af
add a, l
jr nc, .end ; no carry? skip inc
inc h
.end:
ld l, a
pop af
ret