prog8/examples/test.p8
2020-12-27 17:34:25 +01:00

25 lines
402 B
Lua

%import test_stack
%import textio
%zeropage basicsafe
%option no_sysinit
main {
sub start () {
uword length
if length>256 {
repeat length-1
gfx2.next_pixel(color)
} else {
repeat (length-1) as ubyte ; TODO lsb(length-1) doesn't work!?!?!?
gfx2.next_pixel(color)
}
test_stack.test()
}
}