prog8/examples/test.p8

53 lines
966 B
Plaintext
Raw Normal View History

%import textio
%import math
%import string
%import floats
2022-05-19 20:08:22 +00:00
%zeropage dontuse
2022-03-13 11:52:12 +00:00
; NOTE: meant to test to virtual machine output target (use -target vitual)
other {
ubyte value = 42
sub getter() -> ubyte {
return value
}
}
main {
2022-05-17 16:53:18 +00:00
sub start() {
ubyte @shared ix = other.getter()
ix = other.getter()
ix++
ix = other.getter()
ix++
ix = other.getter()
ix++
ix = other.getter()
ix++
ix = other.getter()
ix++
; ; 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
}