Question: Q1 Write a MIPS code to perform the following basic input/output >>Screen: Welcome, May I have your name? >>Keyboard: Jeff (Enter) >>Screen: Hello! Jeff (You

 Q1 Write a MIPS code to perform the following basic input/output

Q1 Write a MIPS code to perform the following basic input/output >>Screen: Welcome, May I have your name? >>Keyboard: Jeff (Enter) >>Screen: Hello! Jeff (You can assume that the maximum length of name is 20 characters) Q2 Given the following MIPS program: .data h: .word 2 4 6 8 S: .word 5 .text .globl_start ___start: # Write your program code here la $so, h lw $51,4($80) la $s2, s lw $s3,-8($s2) add $84, $s3, $s1 li $v0, 10 syscall Assume that the starting address of the data segment is 0x00000010, what will be the values of $50, $S1, $s2, $s3 and $84 (in decimal) after the program is executed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!