scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit dd9a761673306afd6ce10efffdbd224540b85f10
parent 7c7355c1c0196024d0aaa2ea22be43230b9b2f5e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 27 Sep 2017 15:35:45 +0100

[as-z80] Add missed I register

Diffstat:
as/target/x80/proc.h | 1+
as/target/z80/proc.c | 8+++++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/as/target/x80/proc.h b/as/target/x80/proc.h @@ -32,6 +32,7 @@ enum args { AREG_IYH, AREG_R, + AREG_I, AREG_AF_, AREP, diff --git a/as/target/z80/proc.c b/as/target/z80/proc.c @@ -38,10 +38,16 @@ iarch(void) "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