mirror of
https://github.com/irmen/prog8.git
synced 2024-09-16 01:55:48 +00:00
7215efe167
such as pokew() with 2 complex operands
22 lines
361 B
Lua
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()
|
|
}
|
|
}
|
|
}
|
|
|