mirror of
https://github.com/irmen/prog8.git
synced 2025-02-18 05:30:34 +00:00
32 lines
651 B
Lua
32 lines
651 B
Lua
%import textio
|
|
%import floats
|
|
%zeropage basicsafe
|
|
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte[] ba = [11,22,33]
|
|
uword[] wa = [1111,2222,3333]
|
|
float[] fa = [1.1, 2.2, 3.3]
|
|
|
|
txt.print_ub(ba[1])
|
|
txt.nl()
|
|
txt.print_uw(wa[1])
|
|
txt.nl()
|
|
floats.print_f(fa[1]) ; TODO FIX FLOAT PRINT IN VM
|
|
txt.nl()
|
|
|
|
ubyte index=1
|
|
ubyte calc=1
|
|
ba[index] += 1
|
|
wa[index] += 1
|
|
fa[index] += 1
|
|
txt.print_ub(ba[1])
|
|
txt.nl()
|
|
txt.print_uw(wa[1])
|
|
txt.nl()
|
|
floats.print_f(fa[1]) ; TODO FIX FLOAT PRINT IN VM
|
|
txt.nl()
|
|
}
|
|
}
|