mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Merge pull request #602 from NieDzejkob/shiftstorm
Report only one error when invalid shift has argument
This commit is contained in:
4
test/asm/shift-negative.asm
Normal file
4
test/asm/shift-negative.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
m: MACRO
|
||||
shift -3
|
||||
ENDM
|
||||
m
|
||||
3
test/asm/shift-negative.err
Normal file
3
test/asm/shift-negative.err
Normal file
@@ -0,0 +1,3 @@
|
||||
ERROR: shift-negative.asm(4) -> shift-negative.asm::m(2):
|
||||
Cannot shift arguments by negative amount -3
|
||||
error: Assembly aborted (1 errors)!
|
||||
0
test/asm/shift-negative.out
Normal file
0
test/asm/shift-negative.out
Normal file
@@ -1 +1,2 @@
|
||||
shift
|
||||
shift 3
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
ERROR: shift-outside-macro.asm(1):
|
||||
Cannot shift macro arguments outside of a macro
|
||||
error: Assembly aborted (1 errors)!
|
||||
ERROR: shift-outside-macro.asm(2):
|
||||
Cannot shift macro arguments outside of a macro
|
||||
error: Assembly aborted (2 errors)!
|
||||
|
||||
Reference in New Issue
Block a user