Convert_Decimal_String


include vmm.inc

mov     edx, OFFSET32 String  ; address of decimal string
VMMcall Convert_Decimal_String

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

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

String

Address of the null-terminated string to convert. The string can be any combination of decimal digits and may preceded by a plus sign (+) or minus sign (-) to indicate a positive or negative value.

If the string is empty or does not contain a valid decimal integer, the service returns zero in the EAX register and the address of the first character in the EDX register.

See also Convert_Boolean_String, Convert_Fixed_Point_String, Convert_Hex_String