Re: [stella] Optimizing Qb (was: Horizontal Positioning once more...)

Subject: Re: [stella] Optimizing Qb (was: Horizontal Positioning once more...)
From: "Thomas Jentzsch" <tjentzsch@xxxxxx>
Date: Wed, 8 Aug 2001 13:50:31 +0200
Manuel Polik wrote:
> > You might have a look at this:
> > ----------------------------------------
> >         sta HMP0,x
> >         sta WSYNC
> > 
> >         iny             ; waste 7 cylces, 1 byte
> >         iny             ; waste 7 cylces, 1 byte
> > 
> > Jiggle  dey
> >         bpl Jiggle
> >         sta.w RESP0,x   ; waste 1 cylce, 1 byte
> >                         ; sum = 15 cylces, 3 bytes
> > ----------------------------------------
> > One more byte saved and the WSYNC problem is gone too :)
> 
> For some reasons this causes complete chaos... Maybe the .w cycle is
> gained right _after_ it was needed?

No, the w.cycle is "wasted" when the address is generated, and that happens before the write.
The only thing I can think of, are different page-misses somewhere, due to the saved byte. You can ty to use a nop after RESP0 to check, if that's the reason.

Have fun!
Thomas
_______________________________________________________
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |


_______________________________________________________________________
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
IhrName@xxxxxx, 8MB Speicher, Verschluesselung - http://freemail.web.de



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

Current Thread