prog8/examples/test.p8

21 lines
395 B
Plaintext
Raw Normal View History

2024-10-27 20:50:48 +00:00
%import textio
%import floats
%option no_sysinit
%zeropage basicsafe
2024-10-18 20:22:34 +00:00
main {
2024-11-04 23:15:40 +00:00
sub start() {
float @shared fl1 = 4444.234
float @shared fl2 = -9999.111
float @shared fl3 = fl1+fl2
floats.print(fl1)
txt.spc()
floats.print(fl2)
txt.spc()
floats.print(fl3)
txt.nl()
txt.print_w(fl3 as word)
2024-11-04 23:15:40 +00:00
txt.nl()
}
}