[stella] Very BASIC ASM Info needed...

Subject: [stella] Very BASIC ASM Info needed...
From: Manuel Polik <manuel.polik@xxxxxxxxxxx>
Date: Wed, 07 Mar 2001 12:02:04 +0100

Supposed I want to have a counter which does 0/1/2 and then repeats.
Straightforward everybody will come up with something like this:

INC frameCounter
LDA frameCounter
CMP #$03
BNE CounterOk
LDA #$00
STA frameCounter

Now, I'm almost 100% certain, that there must be a more elegant EOR
trick here.

Can someone please find _and_ explain it to me? :-)


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

Current Thread