2022-05-22 15:34:08 +00:00
|
|
|
%import textio
|
2022-06-04 15:18:24 +00:00
|
|
|
%zeropage basicsafe
|
2022-03-13 11:52:12 +00:00
|
|
|
|
2022-06-27 19:44:52 +00:00
|
|
|
; NOTE: meant to test to virtual machine output target (use -target virtual)
|
2022-03-24 23:17:41 +00:00
|
|
|
|
2022-06-08 21:57:01 +00:00
|
|
|
main {
|
2022-06-08 19:05:03 +00:00
|
|
|
|
2022-06-06 11:21:45 +00:00
|
|
|
sub start() {
|
2022-06-12 14:15:08 +00:00
|
|
|
; a "pixelshader":
|
2022-06-27 20:26:40 +00:00
|
|
|
sys.gfx_enable(0) ; enable lo res screen
|
|
|
|
ubyte shifter
|
|
|
|
|
|
|
|
repeat {
|
|
|
|
uword xx
|
|
|
|
uword yy = 0
|
|
|
|
repeat 240 {
|
|
|
|
xx = 0
|
|
|
|
repeat 320 {
|
|
|
|
sys.gfx_plot(xx, yy, xx*yy + shifter as ubyte)
|
|
|
|
xx++
|
|
|
|
}
|
|
|
|
yy++
|
|
|
|
}
|
|
|
|
shifter+=4
|
|
|
|
}
|
2022-03-04 21:26:46 +00:00
|
|
|
}
|
2022-02-17 23:40:31 +00:00
|
|
|
}
|