mirror of
https://github.com/irmen/prog8.git
synced 2024-10-18 01:24:51 +00:00
34 lines
513 B
Lua
34 lines
513 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte @zp xx
|
|
for xx in 0 to 10 {
|
|
txt.print_ub(xx)
|
|
txt.spc()
|
|
}
|
|
txt.nl()
|
|
|
|
for cx16.r0L in 0 to 10 {
|
|
txt.print_ub(cx16.r0L)
|
|
txt.spc()
|
|
}
|
|
txt.nl()
|
|
|
|
for main.derp.xx in 0 to 10 {
|
|
txt.print_ub(main.derp.xx)
|
|
txt.spc()
|
|
}
|
|
|
|
derp()
|
|
txt.nl()
|
|
}
|
|
|
|
sub derp() {
|
|
ubyte xx
|
|
|
|
xx++
|
|
}
|
|
}
|