Question: Create a MIPS assembler program with MARS simulator to work with complex numbers. It should include functions to: Get a complex number from the user
Create a MIPS assembler program with MARS simulator to work with complex numbers. It should include functions to:
Get a complex number from the user and return it to the main program
Print a complex number that the main program passes to it
Add two complex numbers and return the sum
Subtract two complex numbers and return the difference
All values going to/from a function should follow the calling conventions with jal
Make sure to include plenty of comments.
Example output:
Enter an integer for i: 3
You entered: 3
Now enter an integer: 4
The sum is: 4 + 3i
The difference is: 4 3i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
