RE: [stella] Stack pointer. Some questions

Subject: RE: [stella] Stack pointer. Some questions
From: "Sean M." <sigma_zk@xxxxxxxxx>
Date: Mon, 10 May 2004 13:07:45 -0700 (PDT)
The magic word is "amortize":

STX $ZP
LDX $ZP  ; 6 cycles
. . .
STX $ZP
LDX $ZP  ; 12 cycles
. . .
STX $ZP
LDX $ZP  ; 18 cycles


TSX
STX $ZP  ; 5 cycles
. . .
TXS
TSX      ; 9 cycles
. . .
TXS
TSX      ; 13 cycles
. . .
LDX $ZP
TXS      ; 18 cycles

We have already broken even on cycles, and are even ahead by two bytes.
If you are just loading X and not also storing it, the divergence is
slower but still present.


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 
----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread