shithub: scc

Download patch

ref: fa5537937b3c5ab2f10bff43b9a1dc56b540176d
parent: d9ac6c3479972cda5337b5c65f8ee731c574c82b
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Sep 29 05:38:04 EDT 2017

[as] Fix list of arguments in gen.awk

Only the last argument was printed to the intermediate
file because the concatenation was lost.

--- a/as/target/gen.awk
+++ b/as/target/gen.awk
@@ -67,11 +67,11 @@
 	for (i in args) {
 		a = args[i]
 		if (match(a, /^imm8/)) {
-			out = "AIMM8"
+			out = out "AIMM8"
 		} else if (match(a, /^imm16/)) {
-			out = "AIMM16"
+			out = out "AIMM16"
 		} else if (match(a, /^imm32/)) {
-			out = "AIMM32"
+			out = out "AIMM32"
 		} else if (match(a, /^imm64/)) {
 			out = "AIMM64"
 		} else {