As I told u before...In masm32v7.dwtoa
In case of "zero"
there is no stack restore routine....

dwtoa proc dwValue:DWORD, lpBuffer:DWORD

; -------------------------------------------------------------
; convert DWORD to ascii string
; dwValue is value to be converted
; lpBuffer is the address of the receiving buffer
; invoke dwtoa,edx,ADDR buffer
; Uses: eax, ecx, edx.
; -------------------------------------------------------------

push ebx
push esi
push edi

mov eax, dwValue
mov edi,

or eax,eax
jnz sign

mov word ptr ,30h
Posted on 2002-06-29 21:10:52 by muzidowa

Thanks, I got your comment the first time but there have been no later releases of MASM32 so there has been no later versions.

I did not write this procedure myself but it is no problem to change, the preferred method is to put a label at the end of the proc before the stack is restored and jump to it if the parameter is zero.

Posted on 2002-06-29 23:56:58 by hutch--