shithub: riscv

Download patch

ref: 394d095ee0a9e50242b88a783af6bb777cfb3e01
parent: 275fbc93fdb2a60a98065fe5438bd8518c28ad76
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 8 09:53:41 EDT 2019

7a: fix indexreg operations

--- a/sys/src/cmd/7a/lex.c
+++ b/sys/src/cmd/7a/lex.c
@@ -911,15 +911,6 @@
 		pc++;
 	if(pass == 1)
 		return;
-	if(g1->xreg != NREG) {
-		if(reg != NREG || g2->xreg != NREG)
-			yyerror("bad addressing modes");
-		reg = g1->xreg;
-	} else if(g2->xreg != NREG) {
-		if(reg != NREG)
-			yyerror("bad addressing modes");
-		reg = g2->xreg;
-	}
 	do{
 		sf = outsim(g1);
 		st = outsim(g2);