mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
correction
This commit is contained in:
parent
9256f910f0
commit
cafab98d10
@ -77,16 +77,15 @@ main {
|
|||||||
for y in 24 downto 0 {
|
for y in 24 downto 0 {
|
||||||
for x in 39 downto 0 {
|
for x in 39 downto 0 {
|
||||||
; using a temp var here to enable expression optimization that can't be done on a 'problematic' ROM/RAM memory location
|
; using a temp var here to enable expression optimization that can't be done on a 'problematic' ROM/RAM memory location
|
||||||
ubyte cc = xbuf[x] + ybuf[y]
|
ubyte @zp cc = xbuf[x] + ybuf[y]
|
||||||
@(screen+x) = cc
|
@(screen+x) = cc
|
||||||
; this is the fastest way to do this inner part:
|
; this is the fastest way to do this inner part:
|
||||||
; %asm {{
|
; %asm {{
|
||||||
; ldy i
|
; ldy y
|
||||||
; lda xbuf,y
|
; lda ybuf,y
|
||||||
; ldy ii
|
; ldy x
|
||||||
; clc
|
; clc
|
||||||
; adc ybuf,y
|
; adc xbuf,y
|
||||||
; ldy #0
|
|
||||||
; sta (screen),y
|
; sta (screen),y
|
||||||
; }}
|
; }}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user