RE: [stella] My demo...

Subject: RE: [stella] My demo...
From: "Gonzalo" <horcas@xxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Apr 2001 02:03:21 -0300
> The code could look like this:
>
>          dec banda               ;5
>          beq f2                  ;2³
>          bpl f1                  ;2³
>          lda #$0f                ;2
>          sta banda               ;3
>          jmp f2                  ;3
>
> f1       "do something useful here:"
>          lda colorBk1            ;3
>          sta COLUBK              ;3
>          "or just wait"
>          jmp f3                  ;3
>
> f2       lda #%00000010          ;2
>          eor colorBk1            ;3
>          sta colorBk1            ;3
> f3
>
> This code needs a maximum of 17 cycles (12 cycles
> saved). And I'm quite sure, we could find one or two
> more extra cycles here, if they are really needed ;)

Oh, thanks a lot Thomas for your help. The code works very well and fast. I
had to change jmp f2 to jmp f3 in the 6th line, but the rest is fine. Great
use for bpl! The only problem is that COLUBK is updated in the middle of the
screen (producing broken lines) but I'll fix it later...


> > The missile in StellaX doesn't work, why?
>
> I didn't see it in z26 too, but I haven't checked your
> code there.

The missile works in z26 1.35, doesn't work in z26 1.45... I'm reading the
fire button on INPT4, is this right? INPT5 is for joystick #2?

G.


-
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread