mirror of
https://github.com/hsoft/collapseos.git
synced 2025-04-02 09:18:40 +11:00
zasm: support multiple instructions on single line
This commit is contained in:
parent
23fd493013
commit
b0218349ff
@ -34,6 +34,8 @@ isLineEnd:
|
|||||||
cp 0x0d
|
cp 0x0d
|
||||||
ret z
|
ret z
|
||||||
cp 0x0a
|
cp 0x0a
|
||||||
|
ret z
|
||||||
|
cp '\'
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; Read a single line from ioGetCPtr and place it in IO_LINEBUF.
|
; Read a single line from ioGetCPtr and place it in IO_LINEBUF.
|
||||||
|
@ -10,6 +10,7 @@ label2: .dw 0x42
|
|||||||
.dw 3742
|
.dw 3742
|
||||||
.dw 0x3742
|
.dw 0x3742
|
||||||
ld a, (label1)
|
ld a, (label1)
|
||||||
|
rla \ rla
|
||||||
.equ foo 0x1234
|
.equ foo 0x1234
|
||||||
.equ bar foo
|
.equ bar foo
|
||||||
ld hl, bar
|
ld hl, bar
|
||||||
|
Loading…
Reference in New Issue
Block a user