News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

String to number conversion?

Started by georgek01, July 31, 2006, 12:45:17 PM

Previous topic - Next topic

georgek01

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!
What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)

Mark Jones

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
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

georgek01

What we have to learn to do, we learn by doing.

- ARISTOTLE (384-322 BC)