mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +00:00
29 lines
479 B
Lua
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()
|
|
}
|
|
}
|