Hi, I'm struggling with some code involving adding strings of ASCII integers.

I have the code put together to get input from the keyboard to store integers in the form "xxxxx000000" where the zeros are null characters and the x's are the integers that the user enters.

I'm storing that data in memory, and I need to know how to move that data so that it can look like "000000xxxxx".

Im basically trying to take 2 long numbers from the keyboard, store them as strings, line them up (which is the part Im working on and struggling with here), and add them together in ASCII then display the result.

Could anyone help?

I'm trying the String Primitive commands such as rep movsb and the like, but I'm just not sure how to set this up.
Posted on 2006-12-05 00:18:51 by Toymaker4
sounds like homework... is it?
Posted on 2006-12-05 02:36:01 by evlncrn8
Looks like it.

Toymaker4, please show us what you have done so far. We can help you, but no one is going to do your homework for you.
Posted on 2006-12-05 02:56:44 by ti_mo_n
After you work out the code to set up your input in memory, you can have a look at the following to help you add them up.


Posted on 2006-12-05 15:31:05 by Raymond