Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 (Rs <= Rt) 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(Rs <= Constant) then Rd = 1, else Rd = 0.

4. bgeo Rs, Label

Branch on greater than or equal to one;

If(Rs >= 1) then branch to label

5. swapr Rs, Rt

Swaps the contents of registers Rs and Rt

Rs <-- Rt || Rt <-- Rs

6. swapm (Rs), (Rt)

Swaps the contents of the memory locations pointed to by registers Rs and Rt

M[Rs] <-- M[Rt] || M[Rt] <-- M[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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions