Hutch,,,

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
; EXAMPLE:
; 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

zero:
mov word ptr ,30h
ret
Posted on 2002-06-29 21:10:52 by muzidowa
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.

Regards,

hutch@movsd.com
Posted on 2002-06-29 23:56:58 by hutch--