mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +00:00
fix sqrt() regression
This commit is contained in:
parent
a99d38fdaa
commit
1ee3f826cc
@ -274,7 +274,7 @@ internal class BuiltinFunctionsAsmGen(private val program: PtProgram,
|
|||||||
|
|
||||||
private fun funcSqrt(fcall: PtBuiltinFunctionCall, resultToStack: Boolean, resultRegister: RegisterOrPair?, scope: IPtSubroutine?) {
|
private fun funcSqrt(fcall: PtBuiltinFunctionCall, resultToStack: Boolean, resultRegister: RegisterOrPair?, scope: IPtSubroutine?) {
|
||||||
translateArguments(fcall, scope)
|
translateArguments(fcall, scope)
|
||||||
when(fcall.type) {
|
when(fcall.args[0].type) {
|
||||||
DataType.UBYTE -> {
|
DataType.UBYTE -> {
|
||||||
if(resultToStack)
|
if(resultToStack)
|
||||||
asmgen.out(" ldy #0 | jsr prog8_lib.func_sqrt16_stack")
|
asmgen.out(" ldy #0 | jsr prog8_lib.func_sqrt16_stack")
|
||||||
|
Loading…
Reference in New Issue
Block a user