prog8/examples/test.p8

37 lines
764 B
Plaintext
Raw Normal View History

%import textio
2022-04-03 17:07:26 +02:00
%zeropage dontuse
2022-03-13 12:52:12 +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
txt.chrout('\x40')
txt.chrout('\x41')
txt.chrout('\x42')
txt.chrout('\n')
txt.print("Hello\n\"quotes\"\n")
; 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
}