MIPS Project 2 Find password in MEMORY In this project you w

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

Solution

data

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

syscall

MIPS Project 2- Find password in MEMORY! In this project, you will have to search for 6 consecutive digits as password in the \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site