This commit is contained in:
Irmen de Jong 2020-08-25 01:48:23 +02:00
parent 0f9e167df3
commit 60a9209a14
3 changed files with 4 additions and 6 deletions

View File

@ -2,6 +2,7 @@
TODO
====
- allocate sub params in zeropage as well (it already allows @zp tag on them!)
- optimize assignment codegeneration
- get rid of all TODO's ;-)
- make it possible to use cpu opcodes such as 'nop' as variable names by prefixing all asm vars with something such as '_'

View File

@ -74,9 +74,7 @@ main {
uword @zp scrptr = screen
for y in 24 downto 0 {
for x in 39 downto 0 {
@(scrptr) = xbuf[x]
@(scrptr) += ybuf[y]
;@(scrptr) = xbuf[x] + ybuf[y]
@(scrptr) = xbuf[x] + ybuf[y]
; %asm {{
; ldy x
; lda xbuf,y

View File

@ -4,10 +4,9 @@
main {
sub start() {
ubyte bb = 1
uword addr=$d020
@(addr) = bb
bb = @(addr)
ubyte q =2
@(addr) += q
}
}