GARTHWILSON wrote:
The worst areas were approximately $4E-$6D where adding one count to all these would generally improve accuracy, and $99-$DC where adding two counts would generally improve accuracy.
Well, eight more bytes and eight more cycles isn't so bad, if you squint a little:
Code:
...
cmp #$4E
adc #0
cmp #$99
adc #0
rts
... although, that's gonna push $DD and above a bit higher than you want (I didn't actually run your code, so I don't know for sure).
@Chromatix: does your algorithm provide similar results to Garth's (sorry, feeling a bit lazy here tonight)?
_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some
VTL02C on it and see how it grows on you!
Mike B.
(about me) (learning how to github)