mmruzek
Experienced Member
Hi, I am hoping someone can help with this... I seem to recall that there are some coding shortcuts for converting the ASCII character representation of a number to the actual number. For example the ASCII character Hx39 "Character for 9" represents the number decimal 9, and the ASCII character Hx41 "Character for A" represents the number decimal 10. Does anyone have a trick or method for doing that conversion? I am coding in an assembly language that I wrote myself called LALU, but some examples in x86 or a method description would get me going to understand the approach. Right now I am subtracting Hx30 and then doing a compare and branch, depending on the result. Thanks! Michael