prog8/examples/test.p8
2023-09-05 22:38:52 +02:00

29 lines
479 B
Lua

%import textio
%import floats
%zeropage basicsafe
main {
float[4] array
sub testpow(float x) -> float {
return 1.234
}
sub start() {
float res
ubyte j = 2
res += testpow(1.234)
floats.print_f(res)
txt.nl()
floats.print_f(array[j])
txt.nl()
txt.nl()
array[j] += testpow(1.234)
floats.print_f(res)
txt.nl()
floats.print_f(array[j])
txt.nl()
}
}