Convert_Hex_String

include vmm.inc

mov     edx, OFFSET32 String  ; address of hexadecimal string
VMMCall Convert_Hex_String

mov     [Value], eax          ; value of string
mov     [TermChar], edx       ; address of terminating character
 

Converts a string representing a hexadecimal number into a value. The service also returns a pointer to the character in the string that marked the end of the hexadecimal number. This service is only valid during initialization. Uses Flags.

String
Address of the null-terminated string to convert. The string can be any combination of hexadecimal digits (0–9, A-F), and may terminated with an uppercase or lowercase letter H.

See Also

Convert_Boolean_String, Convert_Decimal_String, Convert_Fixed_Point_String