scc

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

commit 859c9c112275df118fa42cb0996212ca25ee7f40
parent 9f52eec64fc769bb4306ef0e368b1f6ced0f47cc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 14 Dec 2017 15:22:53 +0000

[as-z80] Fix AREG_HL case in match()

We have to continue testing other arguments of the
current opcode, if we retun then we skip them.

Diffstat:
Mas/target/z80/proc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/as/target/z80/proc.c b/as/target/z80/proc.c @@ -96,7 +96,7 @@ match(Op *op, Node **args) case AREG_HL: if (np->op != AREG && np->sym->argtype != AREG_HL) return 0; - return 1; + break; case AIMM8: case AIMM16: case AIMM32: