Is there a way, in Assembly, to convert a string to an int (number)?

Recommended Answers

All 4 Replies

The code could do with being in the assembly equivlent to a function.
eg
###################
.string_to_int
more code here
###################

Sure, what have you tried so far?

For instance, can you do the same in C (or any other high level language) without resorting to some library function?

Start with "123" on paper, and think about how you might get say 3 from "3".

I'm afraid I don't know how to program in assembly or C very well!

What about little snippets of info like

'3' - '0' = 3
?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.