2021-11-27 22:52:47 +00:00
|
|
|
%import textio
|
2021-11-27 17:09:15 +00:00
|
|
|
%import test_stack
|
2021-11-29 21:09:05 +00:00
|
|
|
%zeropage dontuse
|
2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-11-06 18:09:33 +00:00
|
|
|
|
2021-11-09 23:17:56 +00:00
|
|
|
sub start() {
|
2021-11-27 17:09:15 +00:00
|
|
|
test_stack.test()
|
|
|
|
|
2021-11-29 21:09:05 +00:00
|
|
|
ubyte[20] xpos = 19 to 0 step -1
|
|
|
|
ubyte[20] ypos = 19 to 0 step -1
|
2021-11-29 01:01:19 +00:00
|
|
|
|
|
|
|
ubyte ball
|
|
|
|
for ball in 0 to len(xpos)-1 {
|
2021-11-29 21:09:05 +00:00
|
|
|
ubyte xx = xpos[ball] + 1
|
|
|
|
ubyte yy = ypos[ball]
|
|
|
|
txt.setchr(xx,yy,87) ; correct codegen
|
|
|
|
txt.setclr(xx,yy,5) ; correct codegen
|
|
|
|
txt.setchr(xpos[ball], ypos[ball], 81) ; TODO WRONG CODEGEN WITH NOOPT
|
|
|
|
txt.setclr(xpos[ball], ypos[ball], 6) ; TODO WRONG CODEGEN WITH NOOPT
|
2021-11-29 01:01:19 +00:00
|
|
|
}
|
|
|
|
|
2021-11-27 17:09:15 +00:00
|
|
|
test_stack.test()
|
2021-11-20 23:07:17 +00:00
|
|
|
repeat {
|
|
|
|
}
|
2021-11-27 13:08:34 +00:00
|
|
|
|
2021-11-16 22:52:30 +00:00
|
|
|
}
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|