Subject: [stella] some little 6502 questions From: Piero Cavina <p.cavina@xxxxxxxxxxxxx> Date: Fri, 28 Mar 1997 18:13:24 +0100 (MET) |
Thought my 6502 is good enough for what I'm doing, I'm not a guru and there are some things that I would like to do in a more efficient way, if possible. So, if you can help me... Is there a faster way than this to get the absolute value of the accumulator? (...) BPL plus EOR #$FF CLC ADC #1 plus: (...) ...and a better way to check when A is between two values (#amin <= A < #amax): (...) CMP #amin BCC outrange ; I don't like... CMP #amax BCS outrange ; ...all this jumping... (..do what is needed when A is in range..) JMP done ; ...isn't there an alternative? outrange: (..things to do when A is out of range..) done: (...) Grazie, Piero -- Archives available at http://www.biglist.com/lists/stella/archives/ E-mail UNSUBSCRIBE in the body to stella-request@xxxxxxxxxxx to be removed.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] another demo (don't sa, Piero Cavina | Thread | Re: [stella] some little 6502 quest, Nick S Bensema |
Re: [stella] another demo (don't sa, Lee Seitz | Date | Re: [stella] another demo (don't sa, Piero Cavina |
Month |