This is my first time ever hearing or even (trying to) code Assembly so all help would be appreciated...
I'm supposed to convert a string of numbers into a decimal value... So I'm assuming that I should convert the hexidecimal values into an integer string and then after that, the integer string to a decimal string.
How am I supposed to get the first hexidecimal value ONLY and then how would I make that into an Integer? For example, "123" will be [31h][32h][33h][0h] in memory. So how would I just get the [31h] and what would I need to do to make that into an integer?
I'm assuming I could just loop it to convert the next hexidecimal value after and then store the integer value after.
This is what I think/tried so far...
Can I just move the String into EAX? And then use the edp to pick the memory addresses? For example, to get to [31h]... edp + 8, and then [42h]... edp + 16, and so on? And then even after getting to the hexidecimal values, how the hell would I convert it to an integer? sub? add? mul? div? shl? I'm clueless in this category.
All I know for sure is that I have to move the string into some location memory.. be it eax, ax, bx, etc. Where I have no clue, how to access it once in there I have no clue again, and to make the conversion I have no clue also. :disgust:😱
Pleae don't write out the code for me. 😛 Don't want to get kicked out of school and all for plagarism, nor will I learn anything. Few snippets will be okay if it'll explain.
Once again, I'm brand new to this. Thanks in advance.😎
<~~~ Hopeless. Furstrated. Tired. Has until Tuesday till 5 to finish this.
I'm supposed to convert a string of numbers into a decimal value... So I'm assuming that I should convert the hexidecimal values into an integer string and then after that, the integer string to a decimal string.
How am I supposed to get the first hexidecimal value ONLY and then how would I make that into an Integer? For example, "123" will be [31h][32h][33h][0h] in memory. So how would I just get the [31h] and what would I need to do to make that into an integer?
I'm assuming I could just loop it to convert the next hexidecimal value after and then store the integer value after.
This is what I think/tried so far...
Can I just move the String into EAX? And then use the edp to pick the memory addresses? For example, to get to [31h]... edp + 8, and then [42h]... edp + 16, and so on? And then even after getting to the hexidecimal values, how the hell would I convert it to an integer? sub? add? mul? div? shl? I'm clueless in this category.
All I know for sure is that I have to move the string into some location memory.. be it eax, ax, bx, etc. Where I have no clue, how to access it once in there I have no clue again, and to make the conversion I have no clue also. :disgust:😱
Pleae don't write out the code for me. 😛 Don't want to get kicked out of school and all for plagarism, nor will I learn anything. Few snippets will be okay if it'll explain.
Once again, I'm brand new to this. Thanks in advance.😎
<~~~ Hopeless. Furstrated. Tired. Has until Tuesday till 5 to finish this.