Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MIPS Project 2- Find password in MEMORY! In this project, you will have to searc

ID: 3925460 • Letter: M

Question

MIPS Project 2- Find password in MEMORY!

In this project, you will have to search for 6 consecutive digits as password in the "memory".

Note that the password should exactly have 6 digits (not 5, or 7), and does not contain any non-digit character in between.

To be simple, let suppose we only have one 6-digit as password stored in "memory", and our goal is to find this 6-digit password.

You need to:

Please use the code I provided, and "print" out the password after done searching.

You should only print out "987654" in the end.

*MIPS Code Provided*:

.data

MemoryData:
   .asciiz "this is not a password 1122^&*( this is password?987654hello world!!!!1234567"
  
.text
.globl main
main:
# Your code starts here

la $a0, MemoryData # load the head address of "MemoryData" into register $a0
li $v0, 4 # let computer know you about to print out a string
syscall # pring out the string

Explanation / Answer

data

MemoryData:
   .asciiz "this is not a password 1122^&*( this is password?987654hello world!!!!1234567"
  
.text
.globl main
main:

syscall

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote