The MASM Forum

Projects => MASM32 => Topic started by: Dubby on January 20, 2013, 04:34:49 AM

Title: the masmlib a2dw not correctly working as expected
Post by: Dubby on January 20, 2013, 04:34:49 AM
well at last in my windows 7 64 bit. haven't test it another machine.
The call to lstrlen  destroy the previously zeroed ECX register.

the solution is move the
xor ecx, ecx

after invoke lstrlen, String

hth.
Title: Re: the masmlib a2dw not correctly working as expected
Post by: jj2007 on January 20, 2013, 04:49:32 AM
Looks familiar (http://www.masmforum.com/board/index.php?topic=12429.0) ;-)
Title: Re: the masmlib a2dw not correctly working as expected
Post by: hutch-- on January 20, 2013, 10:13:10 AM
Use "atodw_ex", it does not do things like that. Its one of Iczelion's old ones dated before 2000 and I* loath to touch them, the "atodw_ex" version is one I did myself and it seems to work OK.
Title: Re: the masmlib a2dw not correctly working as expected
Post by: Dubby on January 20, 2013, 02:54:55 PM
ok then.. just in case there is a new comer which come and use the function then got frustrated with the result... oops no offense though...
Title: Re: the masmlib a2dw not correctly working as expected
Post by: hutch-- on January 20, 2013, 03:44:38 PM
Not at all and its appreciated that you have bothered.  :icon14: