2022-02-22 21:07:19 +01:00
|
|
|
%import textio
|
2022-04-03 17:07:26 +02:00
|
|
|
%zeropage dontuse
|
|
|
|
|
2022-03-13 12:52:12 +01:00
|
|
|
|
2022-03-25 00:17:41 +01:00
|
|
|
; NOTE: meant to test to virtual machine output target (use -target vitual)
|
|
|
|
|
2021-10-30 15:15:11 +02:00
|
|
|
main {
|
2022-04-03 15:25:32 +02:00
|
|
|
sub start() {
|
2022-04-09 00:49:23 +02:00
|
|
|
|
2022-04-10 15:09:12 +02:00
|
|
|
txt.chrout('\x40')
|
|
|
|
txt.chrout('\x41')
|
|
|
|
txt.chrout('\x42')
|
|
|
|
txt.chrout('\n')
|
|
|
|
txt.print("Hello\n\"quotes\"\n")
|
2022-04-01 20:46:28 +02:00
|
|
|
|
2022-04-10 15:09:12 +02:00
|
|
|
; a "pixelshader":
|
|
|
|
; void syscall1(8, 0) ; enable lo res creen
|
|
|
|
; ubyte shifter
|
|
|
|
;
|
|
|
|
; shifter >>= 1
|
|
|
|
;
|
|
|
|
; repeat {
|
|
|
|
; uword xx
|
|
|
|
; uword yy = 0
|
|
|
|
; repeat 240 {
|
|
|
|
; xx = 0
|
|
|
|
; repeat 320 {
|
|
|
|
; syscall3(10, xx, yy, xx*yy + shifter) ; plot pixel
|
|
|
|
; xx++
|
|
|
|
; }
|
|
|
|
; yy++
|
|
|
|
; }
|
|
|
|
; shifter+=4
|
|
|
|
; }
|
2022-03-04 22:26:46 +01:00
|
|
|
}
|
2022-02-18 00:40:31 +01:00
|
|
|
}
|