Debug_Convert_Hex_Binary

include vmm.inc

mov     al, Number              ; number to convert
VMMCall Debug_Convert_Hex_Binary

mov     [BinNum], eax           ; binary number
 

Converts an 8-bit value to a 32-bit value representing a binary number. The new value consists of eight 4-bit values, each of which is either 0 or 1. Uses EAX.

Number
Value to convert.

This service is typically used in conjunction with the Trace_Out macro to display values in binary notation.

The following example prints, "The converted value is 01011001".

mov     al, 01011001b 
VMMCall Debug_Convert_Hex_Binary
Trace_Out 'Converted value is #EAX'
 

See Also

Debug_Convert_Hex_Decimal, Trace_Out