2024-10-27 20:50:48 +00:00
|
|
|
%import textio
|
2024-11-07 21:17:23 +00:00
|
|
|
%import floats
|
2024-11-05 22:56:58 +00:00
|
|
|
%option no_sysinit
|
2024-11-07 21:17:23 +00:00
|
|
|
%zeropage basicsafe
|
2024-10-18 20:22:34 +00:00
|
|
|
|
2024-11-04 03:28:27 +00:00
|
|
|
main {
|
2024-11-04 23:15:40 +00:00
|
|
|
sub start() {
|
2024-11-07 21:17:23 +00:00
|
|
|
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()
|
2024-11-04 22:26:21 +00:00
|
|
|
}
|
2024-11-05 22:56:58 +00:00
|
|
|
}
|