Separate multiple instructions per line with :: (#1210)

This commit is contained in:
Rangi
2023-11-05 13:13:33 -05:00
committed by GitHub
parent 0afb6cd53c
commit 28358b55fe
10 changed files with 88 additions and 46 deletions

View File

@@ -3,5 +3,5 @@ error: anon-label-bad.asm(2):
error: anon-label-bad.asm(6):
Reference to anonymous label 2 before, when only 1 has been created so far
error: anon-label-bad.asm(18):
syntax error, unexpected :
syntax error, unexpected ::
error: Assembly aborted (3 errors)!

View File

@@ -1,7 +1,9 @@
error: macro-syntax.asm(7):
Label "old" created outside of a SECTION
error: macro-syntax.asm(7):
syntax error, unexpected MACRO
error: macro-syntax.asm(8):
Macro argument '\1' not defined
error: macro-syntax.asm(9):
syntax error, unexpected ENDM
error: Assembly aborted (3 errors)!
error: Assembly aborted (4 errors)!

View File

@@ -1,7 +1,9 @@
error: macro-syntax.asm(7):
Label "old" created outside of a SECTION
error: macro-syntax.asm(7):
syntax error
error: macro-syntax.asm(8):
Macro argument '\1' not defined
error: macro-syntax.asm(9):
syntax error
error: Assembly aborted (3 errors)!
error: Assembly aborted (4 errors)!

View File

@@ -0,0 +1,11 @@
SECTION "test", ROM0
push hl :: pop hl :: ret
Label: nop :: call z, .local :: ld b, a
.local push bc :: jr z, Label :: pop bc
nop :: ld a, \
b :: ret
Label2::jr Label2::ret
.local2::call nz, .local2::ret

View File

View File

Binary file not shown.