aboutsummaryrefslogtreecommitdiff
path: root/gramar.y
diff options
context:
space:
mode:
Diffstat (limited to 'gramar.y')
-rw-r--r--gramar.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gramar.y b/gramar.y
index c3f51bd..83e4452 100644
--- a/gramar.y
+++ b/gramar.y
@@ -70,7 +70,7 @@ struct label {
%token NOP BRK DAT ORG
%token JSR HCF INT IAG IAS RFI IAQ HWN HWQ HWI
%token LBR RBR LBRACE RBRACE LPAR RPAR
-%token COMMA DP
+%token COMMA DP INCR DECR
%token PLUS MINUS EMUL EDIV EMOD ENOT EXOR EAND EOR SHIFTL SHIFTR
%token DOT HASH MACRO INCLUDE
%token <ival> NUMBER
@@ -149,9 +149,9 @@ operand
: register { $$ = $1; }
| LBR register RBR { $$ = 0x08 + $2; }
| PUSH { $$ = 0x18; }
- | LBR MINUS MINUS SP RBR{ $$ = 0x18; }
+ | LBR DECR SP RBR { $$ = 0x18; }
| POP { $$ = 0x18; }
- | LBR SP PLUS PLUS RBR { $$ = 0x18; }
+ | LBR SP INCR RBR { $$ = 0x18; }
| PEEK { $$ = 0x19; }
| LBR SP RBR { $$ = 0x19; }
| PICK expr