2020-09-20 21:49:36 +00:00
|
|
|
%import textio
|
2020-11-15 16:44:47 +00:00
|
|
|
%import floats
|
2020-11-15 14:04:23 +00:00
|
|
|
%zeropage basicsafe
|
2020-11-20 21:15:14 +00:00
|
|
|
%import test_stack
|
2020-08-27 17:47:50 +00:00
|
|
|
|
2020-09-24 17:26:07 +00:00
|
|
|
main {
|
2020-09-28 00:23:36 +00:00
|
|
|
|
2020-10-09 20:47:42 +00:00
|
|
|
sub start() {
|
2020-12-02 19:48:50 +00:00
|
|
|
txt.print("hello\n")
|
2020-12-01 02:03:50 +00:00
|
|
|
}
|
2020-12-03 15:02:51 +00:00
|
|
|
sub convert_koalapic() {
|
|
|
|
ubyte cx ; TODO when making this a word, the code size increases drastically
|
|
|
|
ubyte cy
|
|
|
|
uword xx
|
|
|
|
ubyte yy
|
|
|
|
ubyte bb
|
|
|
|
uword bitmap = $6000
|
2020-12-01 02:03:50 +00:00
|
|
|
|
2020-12-03 15:02:51 +00:00
|
|
|
ubyte c0
|
|
|
|
ubyte c1
|
|
|
|
ubyte c2
|
|
|
|
ubyte c3
|
|
|
|
|
|
|
|
for cy in 0 to 24 {
|
|
|
|
for cx in 0 to 39 {
|
|
|
|
for bb in 0 to 7 {
|
|
|
|
yy = cy * 8 + bb
|
|
|
|
xx = cx * $0008
|
|
|
|
graphics.plot(xx, yy)
|
|
|
|
graphics.plot(xx+1, yy)
|
|
|
|
graphics.plot(xx+2, yy)
|
|
|
|
graphics.plot(xx+3, yy)
|
|
|
|
graphics.plot(xx+4, yy)
|
|
|
|
graphics.plot(xx+5, yy)
|
|
|
|
graphics.plot(xx+6, yy)
|
|
|
|
graphics.plot(xx+7, yy)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|