mirror of
https://github.com/irmen/prog8.git
synced 2024-07-27 12:29:24 +00:00
23 lines
379 B
Lua
23 lines
379 B
Lua
%import textio
|
|
%option no_sysinit
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte[] array= [1,2,3]
|
|
ubyte idx=1
|
|
txt.print_ub(array[idx])
|
|
txt.nl()
|
|
array[idx]+=10
|
|
txt.print_ub(array[idx])
|
|
txt.nl()
|
|
|
|
idx=2
|
|
txt.print_ub(idx)
|
|
txt.nl()
|
|
idx+=10
|
|
txt.print_ub(idx)
|
|
txt.nl()
|
|
}
|
|
}
|