From 2e928bd3c2eddd0423da80190f9063a772ec27a6 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sun, 21 Mar 2021 18:39:39 +0100 Subject: [PATCH] fix compiler crash for certain str argument to asm functions --- .../prog8/compiler/target/cpu6502/codegen/FunctionCallAsmGen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/prog8/compiler/target/cpu6502/codegen/FunctionCallAsmGen.kt b/compiler/src/prog8/compiler/target/cpu6502/codegen/FunctionCallAsmGen.kt index c8c0fccb3..2a78c421a 100644 --- a/compiler/src/prog8/compiler/target/cpu6502/codegen/FunctionCallAsmGen.kt +++ b/compiler/src/prog8/compiler/target/cpu6502/codegen/FunctionCallAsmGen.kt @@ -177,7 +177,7 @@ internal class FunctionCallAsmGen(private val program: Program, private val asmg else asmgen.out(" lda #0 | sta cx16.${argi.value.second.registerOrPair.toString().toLowerCase()}+1") } - in WordDatatypes -> + in WordDatatypes, in IterableDatatypes -> asmgen.out(""" lda P8ESTACK_LO$plusIdxStr,x sta cx16.${argi.value.second.registerOrPair.toString().toLowerCase()}