mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-28 13:57:48 +00:00
Separate multiple instructions per line with :: (#1210)
This commit is contained in:
@@ -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)!
|
||||
|
||||
@@ -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)!
|
||||
|
||||
@@ -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)!
|
||||
|
||||
11
test/asm/multiple-instructions.asm
Normal file
11
test/asm/multiple-instructions.asm
Normal 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
|
||||
0
test/asm/multiple-instructions.err
Normal file
0
test/asm/multiple-instructions.err
Normal file
0
test/asm/multiple-instructions.out
Normal file
0
test/asm/multiple-instructions.out
Normal file
BIN
test/asm/multiple-instructions.out.bin
Normal file
BIN
test/asm/multiple-instructions.out.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user