diff --git a/compiler/src/prog8/compiler/target/c64/codegen/FunctionCallAsmGen.kt b/compiler/src/prog8/compiler/target/c64/codegen/FunctionCallAsmGen.kt index 60ba8ce51..541e7a1f2 100644 --- a/compiler/src/prog8/compiler/target/c64/codegen/FunctionCallAsmGen.kt +++ b/compiler/src/prog8/compiler/target/c64/codegen/FunctionCallAsmGen.kt @@ -182,12 +182,13 @@ internal class FunctionCallAsmGen(private val program: Program, private val asmg is IdentifierReference -> { val sourceName = asmgen.asmIdentifierName(value) asmgen.out(""" + pha lda $sourceName beq + sec bcs ++ + clc -+ ++ pla """) } else -> {