Add SHIFT with numeric argument

Fixes #442.
This commit is contained in:
ISSOtm
2020-02-11 11:25:22 +01:00
parent 3b2c862320
commit 001b95d12a
4 changed files with 29 additions and 0 deletions

View File

@@ -777,6 +777,12 @@ warn : T_POP_WARN string { warning(WARNING_USER, "%s", $2); }
;
shift : T_POP_SHIFT { sym_ShiftCurrentMacroArgs(); }
| T_POP_SHIFT uconst
{
int32_t i = $2;
while (i--)
sym_ShiftCurrentMacroArgs();
}
;
load : T_POP_LOAD string comma sectiontype sectorg sectattrs