Subject: Re: [stella] Re: Help with efficient code From: Greg Miller <gmiller@xxxxxxxx> Date: Tue, 30 Sep 1997 06:03:14 -0500 |
> > lda blocks,x ;I'm still a little fuzzy on what exactly > > sta TEMP ;this part here is doing and how > > lda blocks+1,x ;it's doing it, but I guess it'll be in > > sta TEMP+1 ;my 6502 book. > > All you are doing is getting the full 16 bit address of the particular > "block" of data you want into a 16 bit variable (low order byte/high > order byte) in the zero page. Once the address is loaded, you then read > the data using this variable address, rather than having to hardcode > each of the addresses somehow... BTW: Another tactic is to push them on the stack and RTS instead of using the STAs and JMP. -- Video games and CCGS: http://www.angelfire.com/tn/squirrels TW (online game): http://www.geocities.com/SiliconValley/Bay/1367 Magic cards: http://www.angelfire.com/tn/squirrels/magic.html ***** ATTENTION NEWBIES: Limit signatures to four lines! ***** -- Archives updated once/day at http://www.biglist.com/lists/stella/archives/ Unsubscribing and other info at http://www.biglist.com/lists/stella/stella.html
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Re: Help with efficien, Greg Troutman | Thread | Re: [stella] Re: Help with efficien, Greg Miller |
Re: [stella] Re: Help with efficien, Greg Miller | Date | [stella] 6507 vs. 6502, Jim Nitchals |
Month |