Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Submission Instructions: Translate the following MIPS pseudo instructions into real MIPS instructions. That is, show the mapping of the pseudo instructions to MIPS instructions. Note

Submission Instructions: Translate the following MIPS pseudo instructions into real MIPS instructions. That is, show the mapping of the pseudo instructions to MIPS instructions. Note that the only register you can use as temporary is register $at ($1). (the meaning of the symbol || is that the order of the operations does not change the result of the operations.

1. ble Rs, Rt, Label ?Branch on less than or equal; If (???? ? ????) then branch to label 2. abs Rd, Rs ?Absolute; Rd = absolute-value (Rs)

3. slei Rd, Rs, Constant ?Set less than or equal immediate; If (???? ? ????????????????) then ???? = 1, else ???? = 0.

4. bgeo Rs, Label ?Branch on greater than or equal to one; If (???? ? 1) then branch to label

5. swapr Rs, Rt ?Swaps the contents of registers Rs and Rt image text in transcribed

6. swapm (Rs), (Rt) ?Swaps the contents of the memory locations pointed to by registers Rs and Rt . image text in transcribed image text in transcribed image text in transcribed

Rs - RtR - Rs

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

Students also viewed these Databases questions