mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
simplified mapping of builtin functions to just a jsr
This commit is contained in:
parent
6394841041
commit
b740b079db
@ -56,15 +56,10 @@ internal class BuiltinFunctionsAsmGen(private val program: Program,
|
||||
translateFunctionArguments(fcall.arglist)
|
||||
asmgen.out(" inx | lda $ESTACK_LO_HEX,x | sta $ESTACK_HI_PLUS1_HEX,x")
|
||||
}
|
||||
"memset" -> {
|
||||
else -> {
|
||||
translateFunctionArguments(fcall.arglist)
|
||||
asmgen.out(" jsr prog8lib.func_memset")
|
||||
asmgen.out(" jsr prog8_lib.func_$functionName")
|
||||
}
|
||||
"memsetw" -> {
|
||||
translateFunctionArguments(fcall.arglist)
|
||||
asmgen.out(" jsr prog8lib.func_memsetw")
|
||||
}
|
||||
else -> TODO("builtin function $functionName")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user