include vmm.inc mov eax, Number ; number to convert VMMcall Debug_Convert_Hex_Decimal mov [BinNum], eax ; binary number
Converts an 8-bit value to a 32-bit value representing a decimal number. The new value consists of eight 4-bit values, each in the range 0 through 9. Uses EAX.
Number
Specifies the number to convert.
This service is typically used in conjunction with the Trace_Out macro to display values in decimal notation.
The following example prints, "The converted value is 00003141".
mov eax, 3141 VMMcall Debug_Convert_Hex_Decimal Trace_Out 'Converted value is #EAX'
See also Debug_Convert_Hex_Binary, Trace_Out