Re:A 6502 lisp compiler, sprite animation and the NES/Famicom
by vidarh on Sunday May 22, 2016 @05:08AM
(#11747875)
D'oh... On looking at this again today I immediately spotted one pointless thing: "outerloop". Of course you don't need to jump there to set X to 0, because if you fall through the "BNE $innerloop", it's because X has wrapped to 0. Wasted cycles. The LDX #$0 must stay unless you know X is 0 on entering the routine, but the BNE $outerloop should be BNE $innerloop (and so you might as well rename it to just loop).
[ Parent
| on HN ]
There are no comments on this comment yet.