Merge pull request #602 from NieDzejkob/shiftstorm

Report only one error when invalid shift has argument
This commit is contained in:
Eldred Habert
2020-10-13 15:48:16 +02:00
committed by GitHub
8 changed files with 23 additions and 13 deletions

View File

@@ -0,0 +1,4 @@
m: MACRO
shift -3
ENDM
m

View 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)!

View File

View File

@@ -1 +1,2 @@
shift
shift 3

View File

@@ -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)!