1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-28 03:28:07 +11:00
collapseos/tools/tests/zasm/test3.asm

20 lines
210 B
NASM
Raw Normal View History

2019-05-14 10:23:10 +10:00
; test local labels
addDE:
push af
add a, e
jr nc, .end ; no carry? skip inc
inc d
.end: ld e, a
2019-05-14 10:23:10 +10:00
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