mirror of
https://github.com/irmen/prog8.git
synced 2024-09-04 13:29:54 +00:00
24 lines
441 B
Lua
24 lines
441 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
ubyte mainglobal1 = 10
|
|
ubyte mainglobal2 = 20
|
|
ubyte mainglobal3 = 30
|
|
ubyte mainglobal4 = 40
|
|
|
|
sub start() {
|
|
ubyte startval1 = 100
|
|
ubyte startval2 = 110
|
|
ubyte startval3 = 120
|
|
ubyte startval4 = 130
|
|
|
|
txt.print_ub(mainglobal1)
|
|
txt.nl()
|
|
txt.print_ub(startval1)
|
|
txt.nl()
|
|
startval1++
|
|
mainglobal1++
|
|
}
|
|
}
|