HEX to Decimal Conversion - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

HEX to Decimal Conversion

Hi all. I've been programming something to count certain things in a string of ASCII characters and it outputs the results on the screen once it's done. But not everyone reads HEX so i need to find out a way to convert HEX to ASCII and i've been wondering if there's an instruction to do so. I've looked into the x86 instruction set and the only thing that i could think that could do this is with AAA and the likes. Any suggestions would be appreciated as i would like to avoid a hole bunch of code for the conversion. Thanks!

~V

Comments

  • VezrilVezril Posts: 2Member
    : Hi all. I've been programming something to count certain things in a
    : string of ASCII characters and it outputs the results on the screen
    : once it's done. But not everyone reads HEX so i need to find out a
    : way to convert HEX to ASCII and i've been wondering if there's an
    : instruction to do so. I've looked into the x86 instruction set and
    : the only thing that i could think that could do this is with AAA and
    : the likes. Any suggestions would be appreciated as i would like to
    : avoid a hole bunch of code for the conversion. Thanks!
    :
    : ~V
    :

    All right all good. I figured it out.

    Thanks anyways!
Sign In or Register to comment.