This post shows how to convert int (DWORD) to string using MASM library dwtoa. There seems to be a bug in dwtoa as it can only handle 2147483647 instead of 4294967295 which is the maximum size of DWORD (32-bit). The code for dwtoa checks for a negative number which is not needed for DWORD. Note that DWORD is defined as 32-bit unsigned.
Pre-requisite:
To assemble:
To link:
Pre-requisite:
- Install MASM
To assemble:
\masm32\bin\ml /c /Zd /coff int2string.asm
To link:
\masm32\bin\Link /SUBSYSTEM:CONSOLE int2string.obj
Comments