scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 3870265c9d40d930147750741ba0eea82ae9e5d6
parent 3b6deb05353541170a89b7f05c8454bd0a31032b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 18 Dec 2017 23:36:00 +0100

[as-z80] Add missed addressing modes in z80/proc.c

Diffstat:
Mas/target/z80/proc.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/as/target/z80/proc.c b/as/target/z80/proc.c @@ -89,8 +89,11 @@ match(Op *op, Node **args) return 0; np = np->left; case AREG_A: + case AREG_I: + case AREG_R: case AREG_F: case AREG_HL: + case AREG_BC: case AREG_DE: case AREG_IY: case AREG_IX: @@ -152,8 +155,9 @@ match(Op *op, Node **args) if (np->addr != AIMM || np->op != IDEN) return 0; break; + case ADIRECT: case ASTR: - if (np->addr != ASTR) + if (np->addr != arg) return 0; break; default: