prog8/examples/test.p8
Irmen de Jong f948917124 added floats.push() and floats.pop()
fixed vm pop.f
2023-12-26 15:19:49 +01:00

26 lines
411 B
Lua

%import textio
%import floats
%zeropage basicsafe
main {
sub start() {
sys.push(11)
sys.pushw(2222)
floats.push(floats.π)
cx16.r2++
float pi = floats.pop()
floats.print_f(pi)
txt.nl()
cx16.r1 = sys.popw()
cx16.r0L = sys.pop()
txt.print_ub(cx16.r0L)
txt.nl()
txt.print_uw(cx16.r1)
txt.nl()
}
}