Re: 8bit binary to ASCII

From: Robin Harbron (
Date: 2001-09-26 05:20:12 wrote:
> Does any one have a short assembly routine for converting an 8bit unsigned
> binary number (0-255) to ASCII?
> The BASIC ROM only seems to have floating to ASCII conversion...

There's this one...

lda highbyte (or in your case, #0)
ldx lowbyte
jsr $bdcd

It prints out the string as well - not sure if you want that,
and not sure how to get around it if you don't :)
Robin Harbron

Listen to my band at:

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.1.