shithub: scc

Download patch

ref: 105c3b4246bff03159094c8aea5221d3878be029
parent: feadd864d7df11888279d5706d96c14ed1df7ef9
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Sep 28 05:40:38 EDT 2017

[as-z80] Generate error in immediate overflow

--- a/as/target/z80/proc.c
+++ b/as/target/z80/proc.c
@@ -72,7 +72,7 @@
 			if (np->addr != AIMM)
 				return 0;
 			if (toobig(np, arg))
-				return 0;
+				error("overflow in immediate operand");
 			break;
 		default:
 			abort();