ref: a9d67e014c29b320aeebc0b1e8bdf377cd9f5c0d
parent: 2c80da9e8ac07562225d9571c8c1c830ab3adfb2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Sep 27 11:35:45 EDT 2017
[as-z80] Add missed I register
--- a/as/target/x80/proc.h
+++ b/as/target/x80/proc.h
@@ -32,6 +32,7 @@
AREG_IYH,
AREG_R,
+ AREG_I,
AREG_AF_,
AREP,
--- a/as/target/z80/proc.c
+++ b/as/target/z80/proc.c
@@ -38,10 +38,16 @@
"IYH", AREG_IYH,
"R", AREG_R,
+ "I", AREG_I,
"AF_", AREG_AF_,
NULL,
- };
+ }, *bp;
+
+ for (bp = regs; bp->name; ++bp) {
+ Symbol *sym = lookup(bp->name);
+ sym->argtype = bp->type;
+ }
}
int