From 7b41a4b5faacdc968af5a22f971dee9f5624b00f Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Mon, 31 Dec 2018 04:53:50 +0100 Subject: [PATCH] direct memory access and sprite fixes --- compiler/examples/sprites.p8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/examples/sprites.p8 b/compiler/examples/sprites.p8 index 28c5f37b6..5af33d6a2 100644 --- a/compiler/examples/sprites.p8 +++ b/compiler/examples/sprites.p8 @@ -64,20 +64,20 @@ ~ irq { ; @todo no longer auto-set this as irq handler. instead, add builtins functions activate_irqvec() / restore_irqvec() sub irq() { - ;return ; @todo return statements in the irqhandler should not do rts, but instead jmp c64.IRQDFRT + ;return ; @todo return statements in the irqhandler should not do rts, but instead jmp c64.IRQDFRT (RETURNFROMIRQ) ; @todo also when including this return, the jmp c64.IRQDFRT at the end gets omitted.....:( c64.EXTCOL++ for ubyte i in 0 to 7 { - @(main.SP0Y+i+i)-- ; float up + @(main.SP0Y+i*2)-- ; float up ; horizontal wobble effect ubyte r = rnd() if r>208 - @(main.SP0X+i+i)++ + @(main.SP0X+i*2)++ else { ; @todo if-else if -else syntax without curly braces if r<48 - @(main.SP0X+i+i)-- + @(main.SP0X+i*2)-- } } c64.EXTCOL--