Converting ASCII HEX digits to decimal...


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Re: Converting ASCII HEX digits to decimal...

    Or this might be one option and you can make it easily scalable beyond 8 bit input string...
    Code:
    Hex_input       var byte
    ASCII_Array     VAR BYTE [8]
    i               var byte
    
    for i = 0 to 7
        DEBUGIN [HEX1 Hex_input]
        ASCII_Dec_Array[i] = Hex_input
    next i

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Converting ASCII HEX digits to decimal...

    Thank you. That will work.

    John

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts