2021-04-27 22:29:21 +00:00
|
|
|
%import conv
|
|
|
|
%import gfx2
|
2021-04-27 23:53:12 +00:00
|
|
|
%import textio
|
2021-04-18 11:53:02 +00:00
|
|
|
|
2021-04-08 00:13:02 +00:00
|
|
|
main {
|
2021-04-18 21:03:18 +00:00
|
|
|
|
2021-04-17 23:56:26 +00:00
|
|
|
sub start() {
|
2021-04-28 00:22:21 +00:00
|
|
|
gfx2.screen_mode(4) ; lo res 256c
|
2021-04-27 22:29:21 +00:00
|
|
|
gfx2.text_charset(3)
|
|
|
|
gfx2.text(10, 10, 1, @"Hello!")
|
2021-04-21 18:21:58 +00:00
|
|
|
|
2021-04-27 22:29:21 +00:00
|
|
|
c64.SETTIM(0,0,0)
|
2021-04-25 16:04:56 +00:00
|
|
|
|
2021-04-27 23:53:12 +00:00
|
|
|
ubyte yy
|
|
|
|
uword rw
|
2021-04-27 23:19:10 +00:00
|
|
|
|
2021-04-28 00:22:21 +00:00
|
|
|
;480 jiffies (highres mono) / 442 jiffies (lores 4c)
|
2021-04-27 23:53:12 +00:00
|
|
|
repeat 50000 {
|
|
|
|
rw = rndw()
|
|
|
|
yy = (lsb(rw) & 127) + 20
|
|
|
|
gfx2.plot(msb(rw), yy, 1)
|
|
|
|
}
|
|
|
|
repeat 50000 {
|
|
|
|
rw = rndw()
|
|
|
|
yy = (lsb(rw) & 127) + 20
|
|
|
|
gfx2.plot(msb(rw), yy, 0)
|
2021-04-27 22:29:21 +00:00
|
|
|
}
|
2021-04-21 20:45:03 +00:00
|
|
|
|
2021-04-27 22:29:21 +00:00
|
|
|
uword time = c64.RDTIM16()
|
|
|
|
conv.str_uw(time)
|
|
|
|
gfx2.text(100, 10, 1, conv.string_out)
|
2021-04-21 20:45:03 +00:00
|
|
|
|
2021-04-27 22:29:21 +00:00
|
|
|
repeat {
|
|
|
|
}
|
2021-04-01 20:10:04 +00:00
|
|
|
}
|
|
|
|
}
|