1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-08 13:28:05 +11:00
collapseos/apps/zasm/tests/test3.asm
Virgil Dupras 99a7c94c9f zasm: make "double parsing" a bit more solid
It was previously skipped on a local label.
2019-05-14 14:35:34 -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