mirror of
https://github.com/irmen/prog8.git
synced 2024-11-23 07:32:10 +00:00
28 lines
551 B
Lua
28 lines
551 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
|
|
byte bb = 20
|
|
word ww= 300
|
|
ww += bb*3
|
|
txt.print_w(ww) ; 240
|
|
|
|
; ubyte index = 100
|
|
; ubyte[] t_index = [1,2,3,4,5]
|
|
; ubyte nibble = 0
|
|
;
|
|
; index = index + t_index[4]
|
|
; index = index + t_index[nibble]
|
|
; txt.print_ub(index) ; 106
|
|
; txt.nl()
|
|
;
|
|
; nibble++
|
|
; index = index - t_index[3]
|
|
; index = index - t_index[nibble]
|
|
; txt.print_ub(index) ; 100
|
|
; txt.nl()
|
|
}
|
|
}
|