easy? Hex to decimal

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

easy? Hex to decimal

Post by ElEctric_EyE »

Hey 6502 programmers. I am in need of a routine to convert 8 bit hex to decimal, like $0a=10, $ff=255, etc. Do I have to use a lookup table? or is there a better way? working on a project in the hardware section here on 6502.org... Thanks for your inputs.
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Post by BitWise »

Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Post by ElEctric_EyE »

Excellante. Thanks for finding that, I missed it.

-EyE
Post Reply