Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GIVEN CODE .data enterMsg1: .asciiz Please enter the last four digits of your student id enterMsg2: .asciiz Press enter between each digit enterMsg3:

image text in transcribed

image text in transcribed

image text in transcribed

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 complete

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago