Question: hello, I need help on MIPS assembly language, I have to run this program on MARS but I'm getting errors. so please help me with

hello, I need help on MIPS assembly language, I have to run this program on MARS but I'm getting errors. so please help me with the correct codes that will work on MARS thank you

hello, I need help on MIPS assembly language, I have to run

EE344: Digital Computer Systems Fall 2018 t your program by running them on MARS. Assignment is due to 12:00 am midnight) (online submission), Thursday, Oct. 18. You can work in a group of two. Write a program in MIPS assembly language to convert ASCIl number string containing an integer decimal string to an integer. You can use pseudo instructions Your program should expect register Sa0 to hold the address of a null-terminated string containing some combination of the digits 0 through 9. Your program should compute the integer value equivalent to this string of digits, then place the number in register vo. If a non-digit character appears anywhere in the string, your program should stop with the value -1 in register $vo. For example, if register $a0 points to a sequence of three bytes 50ten, 52ten, Oten (the null terminated string "24"), then when the program stops, register v0 should contain the value 24en EE344: Digital Computer Systems Fall 2018 t your program by running them on MARS. Assignment is due to 12:00 am midnight) (online submission), Thursday, Oct. 18. You can work in a group of two. Write a program in MIPS assembly language to convert ASCIl number string containing an integer decimal string to an integer. You can use pseudo instructions Your program should expect register Sa0 to hold the address of a null-terminated string containing some combination of the digits 0 through 9. Your program should compute the integer value equivalent to this string of digits, then place the number in register vo. If a non-digit character appears anywhere in the string, your program should stop with the value -1 in register $vo. For example, if register $a0 points to a sequence of three bytes 50ten, 52ten, Oten (the null terminated string "24"), then when the program stops, register v0 should contain the value 24en

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!