prog8/examples/test.p8
Irmen de Jong 7215efe167 fix expr eval error in certain situations
such as pokew() with 2 complex operands
2023-05-20 17:42:35 +02:00

22 lines
361 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
uword table = memory("table", 100, 0)
ubyte pos
for pos in 0 to 7 {
pokew(table + 64 + pos*2, ($000a-pos)*200) ; TODO FIX WRONG CODE
}
for pos in 0 to 7 {
txt.print_uw(peekw(table+64+pos*2))
txt.nl()
}
}
}