Page 1 of 1

x86/MASM hexadecimal string to numeric conversion

Posted: Tue Jan 30, 2024 3:43 pm
by rhyde
In post viewtopic.php?t=700 I uploaded some ARM code that efficiently converts a string of hexadecimal characters to a 32-bit integer. I translated that ARM code to 64-bit x86 assembly as well (attached). This code converted about 1.5 billion hex strings (of various lengths) in about 10 seconds.
Cheers,
Randy Hyde