Given the following simple calculator written in MIPS-QtSpim. The program works well. Now user can enter quot;7+8quot; and return result…

Given the following simple calculator written in MIPS-QtSpim. The program works well. Now user can enter “7+8” and return result “15” . Similarly user can get divide, sub, and multiply calculation result.

How do I modify the following code such that user can enter “total=7+8” and return “total=15”? That means the program omit “total=” part and only read “7+8” even though I enter “total=7+8”. Please make sure the program compilers in QtSpim.

.globlmain

Leave a Reply