shithub: scc

Download patch

ref: 08abc12db33fbddd1896580e4a08064558e88c0e
parent: 73cfd3c699f20de73f64238d7e47abdb35c018d6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Dec 14 10:22:53 EST 2017

[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.

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