2020-12-27 01:22:18 +00:00
|
|
|
%import textio
|
2021-01-07 19:01:11 +00:00
|
|
|
%import string
|
2021-01-03 01:45:25 +00:00
|
|
|
%zeropage basicsafe
|
2020-12-08 00:02:38 +00:00
|
|
|
%option no_sysinit
|
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2021-01-10 15:00:22 +00:00
|
|
|
|
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-15 17:46:23 +00:00
|
|
|
|
2021-01-19 18:25:23 +00:00
|
|
|
|
|
|
|
ubyte ix = 0
|
2021-01-19 23:28:54 +00:00
|
|
|
ubyte cc = 0
|
|
|
|
|
2021-01-20 00:57:40 +00:00
|
|
|
repeat 20 {
|
|
|
|
cc++
|
|
|
|
}
|
|
|
|
|
2021-01-19 23:28:54 +00:00
|
|
|
@(screen) = 1
|
|
|
|
@(screen+1) = 2
|
|
|
|
swap(@(screen), @(screen+1))
|
2021-01-15 17:46:23 +00:00
|
|
|
|
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
|
|
|
}
|
2021-01-05 22:19:37 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|