From d2c6f22e324975736441f47f1619b49bca502f4a Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 18 May 1987 10:40:19 +0000 Subject: [PATCH] Added *REG addressing mode, fixed a bug --- mach/pdp/as/mach4.c | 2 ++ mach/pdp/as/mach5.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.34.1