From: ceriel Date: Mon, 18 May 1987 10:40:19 +0000 (+0000) Subject: Added *REG addressing mode, fixed a bug X-Git-Tag: release-5-5~4132 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d2c6f22e324975736441f47f1619b49bca502f4a;p=ack.git Added *REG addressing mode, fixed a bug --- diff --git a/mach/pdp/as/mach4.c b/mach/pdp/as/mach4.c index 2921e443a..ec83c0cef 100644 --- a/mach/pdp/as/mach4.c +++ b/mach/pdp/as/mach4.c @@ -88,6 +88,8 @@ opr2 op2 : ari { $$ = ( RDEFMODE | $1); } + | '*' REG + { $$ = ( RDEFMODE | $2); } | ainc { $$ = ( AIMODE | $1 ); } | adec diff --git a/mach/pdp/as/mach5.c b/mach/pdp/as/mach5.c index 5e066d02b..ea232ea73 100644 --- a/mach/pdp/as/mach5.c +++ b/mach/pdp/as/mach5.c @@ -73,7 +73,7 @@ ejump(opc, exp) expr_t exp; { emit2((opc^0400) | 04); } - exp_1.val = exp.val; + exp_1 = exp; im1flag = 1; jump(0100,067); # ifdef THREE_PASS