From 2885f4f7b1aa44ba72c253ca488946a06bb1dc5b Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sat, 29 Apr 2023 17:22:25 +0200 Subject: [PATCH] fix --- .../src/prog8/codegen/cpu6502/BuiltinFunctionsAsmGen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeGenCpu6502/src/prog8/codegen/cpu6502/BuiltinFunctionsAsmGen.kt b/codeGenCpu6502/src/prog8/codegen/cpu6502/BuiltinFunctionsAsmGen.kt index 1107a14fe..4c27e8503 100644 --- a/codeGenCpu6502/src/prog8/codegen/cpu6502/BuiltinFunctionsAsmGen.kt +++ b/codeGenCpu6502/src/prog8/codegen/cpu6502/BuiltinFunctionsAsmGen.kt @@ -306,7 +306,7 @@ internal class BuiltinFunctionsAsmGen(private val program: PtProgram, asmgen.out(" jsr prog8_lib.func_sqrtw_stack") else { asmgen.out(" jsr prog8_lib.func_sqrtw_into_A") - assignAsmGen.assignRegisterByte(AsmAssignTarget.fromRegisters(resultRegister ?: RegisterOrPair.A, false, fcall.position, scope, asmgen), CpuRegister.A) + assignAsmGen.assignRegisterByte(AsmAssignTarget.fromRegisters(resultRegister ?: RegisterOrPair.A, false, fcall.position, scope, asmgen), CpuRegister.A, false) } }