be a bit more liberal with prefixes
This commit is contained in:
parent
5e14dddb6c
commit
3a546eb8dd
|
@ -7,11 +7,15 @@
|
|||
*/
|
||||
|
||||
operation
|
||||
: { address_long = 1; operand_long = 1; }
|
||||
prefix oper
|
||||
:
|
||||
prefix oper
|
||||
{ address_long = 1; operand_long = 1; }
|
||||
| prefix1 /* to allow for only prefixes on a line */
|
||||
;
|
||||
prefix : /* empty */
|
||||
| prefix PREFIX
|
||||
| prefix1
|
||||
;
|
||||
prefix1: prefix PREFIX
|
||||
{ if ($2 == 0146) operand_long = ! operand_long;
|
||||
if ($2 == 0147) address_long = ! address_long;
|
||||
emit1($2);
|
||||
|
|
Loading…
Reference in a new issue