Question
GIVEN CODE .data enterMsg1: .asciiz Please enter the last four digits of your student id enterMsg2: .asciiz Press enter between each digit enterMsg3:
GIVEN CODE
.data
enterMsg1: .asciiz "Please enter the last four digits of your student id " enterMsg2: .asciiz "Press enter between each digit " enterMsg3: .asciiz "Enter next digit " .text
# output the initial instruction text to the console addi $v0, $zero, 4 la $a0, enterMsg1 syscall
##
# read an integer from keyboard input and store the input in $s0 for the total addi $v0, $zero, 5 syscall add $s0, $zero, $v0
# output the text asking for the next digit to the console # then receive the input, add to total ($s0) addi $v0, $zero, 4 la $a0, enterMsg3 syscall
addi $v0, $zero, 5 syscall add $s0, $s0, $v0
addi $v0, $zero, 4 la $a0, enterMsg3 syscall
addi $v0, $zero, 5 syscall add $s0, $s0, $v0
addi $v0, $zero, 4 la $a0, enterMsg3 syscall
addi $v0, $zero, 5 syscall add $s0, $s0, $v0
##
add $a0, $s0, $zero addi $v0, $zero, 1 syscall
addi $v0, $zero, 10 syscall
MIPS Assembly Language Programming Testing the existing program Paste your image showing the Run I/O from the MARS MIPS simulator showing the digits entered and total This task is not complete. Amendments to the program Improvements to messages output Paste your image showing the Run I/O from the MARS MIPS simulator showing the digits entered and total The improved messages task is not complete. Using a subroutine Paste your screenshot from the MARS MIPS simulator showing the subroutine in the code and the full Run 1/0 from one run of the program. Adding functionality Paste your screenshot from the MARS MIPS simulator showing the code that outputs the result of the multiplication and the full Run 1/O from one run of the program. Paste a screenshot from another test, showing the Run 1/0 only. The multiplication functionality task is not complete. Adding a loop Paste your screenshot from the MARS MIPS simulator showing the code for the loop and the full Run 1/0 from one run of the program The loop task is not complete. Using an array Remember that this is a more open-ended task and requires you to explain your approach as well as showing evidence of testing, will need to decide what evidence and text to include. The text should be up to 200 words for this part and should use references appropriately for any resources you have used. The array task is not completeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started