Re: [stella] Newbie Cycle Counting Question

Subject: Re: [stella] Newbie Cycle Counting Question
From: Jason G Gruetzmacher <jggruetz@xxxxxxxx>
Date: Mon, 14 Apr 2003 16:56:41 -0400 (EDT)
Thanks guys!  You're both absolutely right about the
ZP stuff.  I knew about ZP taking one cycle less, but
for some reason I counted them otherwise.  Which is
why I was asking. :)

And double thanks for the link below.  Awsome stuff.

 --- Dennis Debro <ddebro@xxxxxxxxxxxxx> wrote:
> You have the right idea but some of your opcode
> timing values are off. Look at
> http://www.6502.org/tutorials/6502opcodes.htm for a
> list of opcodes and the time it takes to execute
> them.
> >         LDA PF0Data,X           ;[10] 5
> The above instruction will take 4 cycles if the
> table look up doesn't cross a page boundary.
> 
> >         CPY LanderYPos          ;[29] 4
> This is ZP, right? Then it will take 3 cycles
> 
> >         LDA LanderHeight        ;[35] 4
> >         STA LanderVisible       ;[39] 4
> These would take 3 cycles
> 
> >         LDX LanderVisible       ;[36] or [43] 4
> 3 cycles here
> 
> >         DEC LanderVisible       ;[54] or [62] 6
> 5 cycles here
> 
> I hope this helps.
> 
> Take care,
> Dennis

=====
Time will be when the broadest river dries
And the great cities wane and last descend
Into the dust, for all things have an end.
- Chaucer

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread