easy? Hex to decimal
-
ElEctric_EyE
- Posts: 3260
- Joined: 02 Mar 2009
- Location: OH, USA
easy? Hex to decimal
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.
- BitWise
- In Memoriam
- Posts: 996
- Joined: 02 Mar 2004
- Location: Berkshire, UK
- Contact:
Try one of these:
http://6502.org/source/integers/hex2dec.htm
http://6502.org/source/integers/hex2dec-more.htm
http://6502.org/source/integers/hex2dec.htm
http://6502.org/source/integers/hex2dec-more.htm
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
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