Added *REG addressing mode, fixed a bug

This commit is contained in:
ceriel 1987-05-18 10:40:19 +00:00
parent 9e72c25a0f
commit d2c6f22e32
2 changed files with 3 additions and 1 deletions

View file

@ -88,6 +88,8 @@ opr2
op2 op2
: ari : ari
{ $$ = ( RDEFMODE | $1); } { $$ = ( RDEFMODE | $1); }
| '*' REG
{ $$ = ( RDEFMODE | $2); }
| ainc | ainc
{ $$ = ( AIMODE | $1 ); } { $$ = ( AIMODE | $1 ); }
| adec | adec

View file

@ -73,7 +73,7 @@ ejump(opc, exp) expr_t exp; {
emit2((opc^0400) | 04); emit2((opc^0400) | 04);
} }
exp_1.val = exp.val; exp_1 = exp;
im1flag = 1; im1flag = 1;
jump(0100,067); jump(0100,067);
# ifdef THREE_PASS # ifdef THREE_PASS