On MARS, write a MIPS assembly program that emulates an integer
calculator. The numbers and symbols are entered from the console, and
one for each line. For example. if vou enter “14 / + / 6 / * / 3 / = 1”
(symbol “/” indicates next line), the calculator will output “32” on the
Copyright By PowCoder代写 加微信 powcoder
console. Another example: “14 / % / 4 /= /” will generate «3 . …
Other than the «, -, *, %’ (add, subtract, multiply, divide) at least, you
can provide more operators in your calculator, such as sqrt, etc. The more
sophisticated your calculator is, the higher your score will be.e
Display how to use the calculator on the console right after the program
starts, including the syntax and operators. Note that the end of the
sequence is indicated by a =”. Verify that the program is correct by
simulation. Provide your comments in the beginning of the text file.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com