2022-05-22 15:34:08 +00:00
|
|
|
%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
|
|
|
|
2022-05-22 15:34:08 +00:00
|
|
|
|
2022-03-24 23:17:41 +00:00
|
|
|
; NOTE: meant to test to virtual machine output target (use -target vitual)
|
|
|
|
|
2022-05-22 18:22:09 +00:00
|
|
|
other {
|
2022-05-22 15:34:08 +00:00
|
|
|
ubyte value = 42
|
|
|
|
|
2022-05-22 18:22:09 +00:00
|
|
|
sub getter() -> ubyte {
|
|
|
|
return value
|
2022-05-22 15:34:08 +00:00
|
|
|
}
|
2022-05-22 18:22:09 +00:00
|
|
|
}
|
2022-05-22 15:34:08 +00:00
|
|
|
|
2022-05-22 18:22:09 +00:00
|
|
|
main {
|
2022-05-22 15:34:08 +00:00
|
|
|
|
|
|
|
|
2022-05-17 16:53:18 +00:00
|
|
|
sub start() {
|
2022-05-22 18:22:09 +00:00
|
|
|
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++
|
2022-05-22 15:34: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
|
|
|
}
|