From cafab98d1034dcc9b295cd5fd2e1054b38abad5b Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sun, 28 Nov 2021 18:59:36 +0100 Subject: [PATCH] correction --- examples/plasma.p8 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/plasma.p8 b/examples/plasma.p8 index 094765a82..dd145d2ca 100644 --- a/examples/plasma.p8 +++ b/examples/plasma.p8 @@ -77,16 +77,15 @@ main { for y in 24 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 - ubyte cc = xbuf[x] + ybuf[y] + ubyte @zp cc = xbuf[x] + ybuf[y] @(screen+x) = cc ; this is the fastest way to do this inner part: ; %asm {{ -; ldy i -; lda xbuf,y -; ldy ii +; ldy y +; lda ybuf,y +; ldy x ; clc -; adc ybuf,y -; ldy #0 +; adc xbuf,y ; sta (screen),y ; }} }