News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

dword to Hex

Started by Exit, July 26, 2012, 03:54:43 AM

Previous topic - Next topic

Exit

Hello..!

include c:\masm32\include\masm32rt.inc
.data
variable  dword  3 dup(?)

.code
start:
mov eax, 7543210h
mov variable, eax

push offset variable
push eax
call dwtoa

invoke StdOut, offset variable
invoke ExitProcess,0
end start

comment!
the output is 122958352, decimal representaation of 7543210h
how do i get instead of in decimal, the output in hex ?

thank you.!

qWord

invoke dw2hex,value,ADDR sz
see \masm32\help\masmlib.chm for more details.

the corresponding macro:
mov psz,hex$(value)
see \masm32\help\hlhelp.chm
MREAL macros - when you need floating point arithmetic while assembling!