prog8/examples/test.p8

42 lines
670 B
Plaintext
Raw Normal View History

%import textio
%import string
%zeropage basicsafe
2020-12-08 00:02:38 +00:00
%option no_sysinit
main {
2021-01-13 21:32:17 +00:00
sub start() {
2021-01-19 18:25:23 +00:00
uword screen=$0400
ubyte[256] xbuf = 1
ubyte[256] ybuf = 3
2021-01-19 18:25:23 +00:00
ubyte ix = 0
ubyte cc = 0
2021-01-20 00:57:40 +00:00
repeat 20 {
cc++
}
@(screen) = 1
@(screen+1) = 2
swap(@(screen), @(screen+1))
2021-01-19 18:25:23 +00:00
; cc = @(screen+2)
; cc++
; @(screen+2) = cc
; cc = @(screen+ix)
; cc++
; @(screen+ix) = cc
; for ii in 24 downto 0 {
; for i in 39 downto 0 {
; @(screen+i) = xbuf[i] + ybuf[ii]
; }
; screen+=40
; }
2021-01-10 14:15:00 +00:00
}
2020-08-27 17:47:50 +00:00
}