I have MIPS/MARS program for sum up two unsigned numbers as string input.
For example "123" + "123" = 246
It works well with one problem.
If input is long number bigger than 2^32 (MIPS is 32bits only) it overflows.
I dont know how to improve it. This is the task where I need your help.
Extend my script to accept long numbers.
- store input number in 2 registers lo,hi
- add them correctly (add64)
- print the correct result ("9999999999" + "9999999999" = 19999999998)
My code attached.
I'm an electronic engineer with experience on MIPS programming on assembly language, also can design programs for pic microcontrollers and x86 processors on tasm and nasm. If you wish write to me via chat to determine if I can complete your task. Regards.