Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP!! I AM STUCK ON NUMBER 7 PART D AND I CANT FIGURE OUT WHAT IM DOING WRONG. PLEASE NOO PSEUDO INSTRUCTIONS!! THANKS IN

PLEASE HELP!! I AM STUCK ON NUMBER 7 PART D AND I CANT FIGURE OUT WHAT IM DOING WRONG. PLEASE NOO PSEUDO INSTRUCTIONS!! THANKS IN ADVANCE!

image text in transcribed

THIS IS WHAT I HAVE FOR 7d, PLEASE CORRECT MY MISTAKE. THANK YOUU!!!!

image text in transcribed

a. Open the text editor and type in the following. Then save your work as assign1.asm .data val1: .word 0 val2: .word 0 val3: .word 0 .text globl main main b. Add the following zero terminated ascii strings to the data segment after the three words 1. Your name 2. "Enter a number" 3. A new line ("In") c. Add the MIPS assembly language instructions after the main for the following steps. You must show each step in the order given. Each step may require multiple instructions. Note that the variables val1, val2, and val3 represent addresses or locations in memory in the data segment. Use other registers as needed Steps: 1. Initialize the register $s0 to 19 2. Prompt the user to enter an integer and then read the integer into register $s1 3. Prompt the user to enter an integer and read the number into register $s2 4. Store the value in $s1 into the memory labeled "val1" 5. Store the value in $s2 into the memory labeled "val2" 6. Calculate the value of $s0 - $s1 + $s2 and store the result in the memory labeled "val3" 7. Print the following output each on its own line a. Your name b. The value in val1 c. The value in val2 he value in va 8. Exchange or swap the values in $s1 and $s2 9. Set the value in $s0 to -$s0 10. Print the values finally in $s0, $s1 and $s2

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

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

Answered: 1 week ago