prog8/examples/test.p8
2023-09-03 01:32:47 +02:00

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()
}
}