1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-21 02:38:05 +11:00
collapseos/tools/tests/zasm/test9.asm
Virgil Dupras fe15bafeca zasm: fix bug with registry selection
During expression parsing, if a local label was parsed, it would
select the local registry and keep that selection, making
subsequent global labels register in the wrong place.
2019-07-20 18:07:52 -04:00

12 lines
202 B
NASM

; test some weird label bug zasm had at some point. Simply to refer to a local
; label in a .dw directive would mess up future label references.
foo:
inc a
.bar:
inc b
.baz:
.dw .bar
loop:
jr loop