The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: georgek01 on July 31, 2006, 12:45:17 PM

Title: String to number conversion?
Post by: georgek01 on July 31, 2006, 12:45:17 PM
Hello!

I've seen this question posted here before, but I'm unable to find it...

How do you convert a "value" from a buffer to a value - either hex or dec?

e.g.

buffer (buffer db 5 dup (?)) contains the following string: 326
I want to convert this to a number to compare to a value eax holds.

Your assistance will be greatly appreciated!
Title: Re: String to number conversion?
Post by: Mark Jones on July 31, 2006, 01:36:53 PM
Hello George, the search box at the top of the page here is great for finding stuff like this. I found something which might be exactly what you need:

http://www.masm32.com/board/index.php?topic=2479.0

Regards,
Mark
Title: Re: String to number conversion?
Post by: georgek01 on July 31, 2006, 01:52:27 PM
Thanks Mark!!  :U