mirror of
https://github.com/irmen/prog8.git
synced 2024-08-28 13:28:56 +00:00
18 lines
262 B
Lua
18 lines
262 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte[] arr = [1,2,3,4]
|
|
uword pointer
|
|
ubyte ix
|
|
|
|
arr[ix] = arr[ix]+1
|
|
|
|
; arr[3] = arr[3]+1
|
|
; pointer[3] = pointer[3]+1
|
|
|
|
txt.print_ub(arr[3])
|
|
}
|
|
}
|