shithub: scc

Download patch

ref: 22218ccc36cf8af3752c00a54285c66ac8dbbf39
parent: 1923cb148d33eae94d8dc393693a5635fb517ef0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Dec 18 18:36:00 EST 2017

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

--- a/as/target/z80/proc.c
+++ b/as/target/z80/proc.c
@@ -89,8 +89,11 @@
 				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 @@
 			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: