fix pokew mistake

This commit is contained in:
Irmen de Jong 2023-03-11 01:03:34 +01:00
parent ed597423cd
commit 4600772e05

View File

@ -680,13 +680,13 @@ internal class BuiltinFunctionsAsmGen(private val program: PtProgram,
}
}
}
else -> {
asmgen.assignExpressionToVariable(fcall.args[0], "P8ZP_SCRATCH_W1", DataType.UWORD, null)
asmgen.assignExpressionToRegister(fcall.args[1], RegisterOrPair.AY)
asmgen.out(" jsr prog8_lib.func_pokew")
return
}
else -> { /* fall through */ }
}
// fall through method:
asmgen.assignExpressionToVariable(fcall.args[0], "P8ZP_SCRATCH_W1", DataType.UWORD, null)
asmgen.assignExpressionToRegister(fcall.args[1], RegisterOrPair.AY)
asmgen.out(" jsr prog8_lib.func_pokew")
}
private fun funcPeekW(fcall: PtBuiltinFunctionCall, resultToStack: Boolean, resultRegister: RegisterOrPair?) {