mirror of
https://github.com/irmen/prog8.git
synced 2024-11-20 03:32:05 +00:00
42 lines
670 B
Lua
42 lines
670 B
Lua
%import textio
|
|
%import string
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
|
|
|
|
sub start() {
|
|
uword screen=$0400
|
|
ubyte[256] xbuf = 1
|
|
ubyte[256] ybuf = 3
|
|
|
|
|
|
ubyte ix = 0
|
|
ubyte cc = 0
|
|
|
|
repeat 20 {
|
|
cc++
|
|
}
|
|
|
|
@(screen) = 1
|
|
@(screen+1) = 2
|
|
swap(@(screen), @(screen+1))
|
|
|
|
; 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
|
|
; }
|
|
}
|
|
|
|
}
|