1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-09-16 23:28:45 +10:00
collapseos/apps/zasm/tests/test3.asm
2019-05-13 20:23:10 -04:00

21 lines
211 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