The MASM Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
MASM32 Downloads
Home
Help
Search
Login
Register
The MASM Forum
»
Projects
»
MASM32
»
the masmlib a2dw not correctly working as expected
« previous
next »
Print
Pages: [
1
]
Author
Topic: the masmlib a2dw not correctly working as expected (Read 5206 times)
Dubby
Member
Posts: 60
the masmlib a2dw not correctly working as expected
«
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
Code:
[Select]
xor ecx, ecx
after
Code:
[Select]
invoke lstrlen, String
hth.
Logged
jj2007
Member
Posts: 13957
Assembly is fun ;-)
Re: the masmlib a2dw not correctly working as expected
«
Reply #1 on:
January 20, 2013, 04:49:32 AM »
Looks familiar
;-)
Logged
Masm32 Tips, Tricks and Traps
hutch--
Administrator
Member
Posts: 10583
Mnemonic Driven API Grinder
Re: the masmlib a2dw not correctly working as expected
«
Reply #2 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.
Logged
hutch at movsd dot com
http://www.masm32.com
Dubby
Member
Posts: 60
Re: the masmlib a2dw not correctly working as expected
«
Reply #3 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...
Logged
hutch--
Administrator
Member
Posts: 10583
Mnemonic Driven API Grinder
Re: the masmlib a2dw not correctly working as expected
«
Reply #4 on:
January 20, 2013, 03:44:38 PM »
Not at all and its appreciated that you have bothered. :icon14:
Logged
hutch at movsd dot com
http://www.masm32.com
Print
Pages: [
1
]
« previous
next »
The MASM Forum
»
Projects
»
MASM32
»
the masmlib a2dw not correctly working as expected