prog8/examples/test.p8

28 lines
572 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2022-03-13 11:52:12 +00:00
; NOTE: meant to test to virtual machine output target (use -target virtual)
main {
2022-06-08 19:05:03 +00:00
sub start() {
2022-06-12 14:15:08 +00:00
; a "pixelshader":
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
}