Re: [stella] Binary to Decimal routine (small!)

Subject: Re: [stella] Binary to Decimal routine (small!)
From: Greg Miller <gmiller@xxxxxxxxxxxxxxxxx>
Date: Fri, 09 Feb 2001 13:31:51 -0600
Andrew Davie wrote:

I needed a binary-to-decimal conversion routine, to convert my binary (2
byte) score into 5 decimal digits for use by the previously posted
double-height 6-digit score routine.  The last digit is 0 in my game.  As I
only use two bytes for my score (binary), my range is 0-65535 (ie: score is

I'm going to be lazy here... Rather than write a version of the score handling to compare it, I'm going to make a suggestion and let you do the hard part ;)

Have you tried doing all your score calcs in BCD? That may save you a few instructions.
"If you torture a ballot long enough, eventually it'll confess."
--Alan Simpson

- Archives (includes files) at Unsub & more at

Current Thread