mirror of
https://github.com/irmen/prog8.git
synced 2026-04-19 20:16:51 +00:00
moved all *integer* builtin trig functions (sin8u, cos8u etc) as regular asmsubs in math module
This commit is contained in:
@@ -12,28 +12,14 @@ internal class BuiltinFuncGen(private val codeGen: CodeGen, private val exprGen:
|
||||
|
||||
fun translate(call: PtBuiltinFunctionCall, resultRegister: Int): VmCodeChunk {
|
||||
return when(call.name) {
|
||||
"cmp" -> TODO()
|
||||
"cmp" -> TODO("cmp() can't be used on vm because no processor status bits implemented")
|
||||
"max" -> TODO()
|
||||
"min" -> TODO()
|
||||
"sum" -> TODO()
|
||||
"abs" -> TODO()
|
||||
"sgn" -> funcSgn(call, resultRegister)
|
||||
"sin" -> TODO("floats not yet implemented")
|
||||
"sin8" -> TODO()
|
||||
"sin16" -> TODO()
|
||||
"sin16u" -> TODO()
|
||||
"sinr8" -> TODO()
|
||||
"sinr8u" -> TODO()
|
||||
"sinr16" -> TODO()
|
||||
"sinr16u" -> TODO()
|
||||
"cos" -> TODO("floats not yet implemented")
|
||||
"cos8" -> TODO()
|
||||
"cos16" -> TODO()
|
||||
"cos16u" -> TODO()
|
||||
"cosr8" -> TODO()
|
||||
"cosr8u" -> TODO()
|
||||
"cosr16" -> TODO()
|
||||
"cosr16u" -> TODO()
|
||||
"tan" -> TODO("floats not yet implemented")
|
||||
"atan" -> TODO("floats not yet implemented")
|
||||
"ln" -> TODO("floats not yet implemented")
|
||||
|
||||
Reference in New Issue
Block a user