1. Determine the type of the following MIPS instructions: a) xor $t0, $t1, $t2 b) addu...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Determine the type of the following MIPS instructions: a) xor $t0, $t1, $t2 b) addu $t0, $t1, $t2 c) addiu $t0, $s1, 0xA2C0 d) subu $t0, $t1, $t2 e) sll $s1, $s2, 8 f) srlv $s1, $s2, $s3 g) sra $s1, $s2, 4 h) add $50, $s1, $s2 i) and $t0, $s1, $s2 j) andi $t0, $s1, 25 2. Translate the following MIPS instructions to binary code: instruction Binary code Xor addu addiu sll srlv add andi $t0, $t1, $t2 $to, $t1, $t2 $t0, $s1, 0xA2C0 $s1, $s2, 8 $s1, $s2, $s3 $50, $s1, $s2 St0, $s1, 25 Code in Hexa 3. Carry out resulting from addition of unsigned numbers can be used to check if the result of addition is incorrect. Write the shortest sequence of MIPS instructions to determine if there is a carry out from the addition of two registers St1 and St2. Place the carry out (0 or 1) in register $10. 4. Write a MIPS assembly program that asks the user to enter an integer, reads the integer and then displays the integer representation in both binary and hexadecimal, assuming 32-bit representation. A sample execution of the program is given below: Example: Enter an integer: -5 Number representation in binary is: 1111111|||||||||||||||||||1111011 Number representation in hexadecimal is: FFFFFFFB 1. Determine the type of the following MIPS instructions: a) xor $t0, $t1, $t2 b) addu $t0, $t1, $t2 c) addiu $t0, $s1, 0xA2C0 d) subu $t0, $t1, $t2 e) sll $s1, $s2, 8 f) srlv $s1, $s2, $s3 g) sra $s1, $s2, 4 h) add $50, $s1, $s2 i) and $t0, $s1, $s2 j) andi $t0, $s1, 25 2. Translate the following MIPS instructions to binary code: instruction Binary code Xor addu addiu sll srlv add andi $t0, $t1, $t2 $to, $t1, $t2 $t0, $s1, 0xA2C0 $s1, $s2, 8 $s1, $s2, $s3 $50, $s1, $s2 St0, $s1, 25 Code in Hexa 3. Carry out resulting from addition of unsigned numbers can be used to check if the result of addition is incorrect. Write the shortest sequence of MIPS instructions to determine if there is a carry out from the addition of two registers St1 and St2. Place the carry out (0 or 1) in register $10. 4. Write a MIPS assembly program that asks the user to enter an integer, reads the integer and then displays the integer representation in both binary and hexadecimal, assuming 32-bit representation. A sample execution of the program is given below: Example: Enter an integer: -5 Number representation in binary is: 1111111|||||||||||||||||||1111011 Number representation in hexadecimal is: FFFFFFFB
Expert Answer:
Answer rating: 100% (QA)
The image you have provided shows a computer science assignment relating to MIPS Microprocessor without Interlocked Pipelined Stages assembly language instructions Below are the tasks as listed in the ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family. The Incisors own a rental beach house in Hawaii. The beach house was rented for the full year during 2012...
-
8. Explain how electric forces are like gravitation forces and how they differ.
-
Take a look at Wendy's (www.wendys.com). How is this company attempting to set itself apart from its primary competitors of McDonald's (www.mcdonalds.com) and Burger King (www.burgerking.com)? What...
-
Why are transfer-pricing systems needed?
-
Repeat Example 8.3, but for a collector located in Washington, DC. Example 8.3 Find the thermal energy delivery of a polar-mounted parabolic trough collector oper- ated for 8 h per day (At = 8)...
-
Dillon, Jones, and Kline, Ltd. is studying the acquisition of two electrical component insertion systems for producing its sole product, the universal gismo. Data relevant to the systems follow....
-
Based on above link need to Comment on why independent board members aren't really independent....
-
Champ Manufacturing produces a variety of high-precision manufacturing equipment. The company is considering purchasing one component part from an outside supplier instead of making it in-house. The...
-
You have just taken the position of controller for Solo, Inc., a large transportation company. The CFO has questions for you concerning an investment in equity securities of Bacca Company. Solo used...
-
31. For which values of the constants a, b, and c is the fol- lowing matrix invertible? 32. Find all matrices 0 -b a b 0 C 0 such that ad-be = 1 and 33. Consider the matrices of the form A = where a...
-
Horizontal analysis refers to changes in financial statement numbers across two or more years. Vertical analysis refers to financial amounts for each year expressed as proportions of a base such as...
-
5 Lt/s water enters a disc-shaped rotor axially as shown in the figure. 8=300 with tangential direction from 3 radial channels in the disc at the angle comes out. Cross section of channels 18 mm2 is....
-
1. Insert a module and create a subroutine named Receipt(). Excel 2. Place a button with the name "Generate Receipt" that would link to this subroutine when clicked. Do the following parts from 3 to...
-
Thompson Brothers Inc. is a distributor of men's, women's, and children's shoes. The company imports shoes primarily from Europe and sells them to specialty clothing and shoe stores around the...
-
Find the center, and the information needed to find the location of the foci and vertices of the ellipse. Graph the equation. (x-6) (y + 1) + 4 9 =1 The coordinates of the center of the ellipse are...
-
Burberrys competitive advantage is through its differentiation strategy. What risk should Burberry remain aware of?
-
Evaluate 1 + tan x - 1 + sin x/x3. lim
-
What can you say about the series (an in each of the following cases? (a) (b) (c) an+1 lim an+1 amt, I = 0.8 lim a 11-08 ina an+1 itan
-
Use a graph to find approximate -coordinates of the points of intersection of the given curves. Then find (approximately) the area of the region bounded by the curves. y = arcsin (1/2x)...
-
An electronic instrument is to be isolated from a panel that vibrates at frequencies ranging from \(25 \mathrm{~Hz}\) to \(35 \mathrm{~Hz}\). It is estimated that at least 80 percent vibration...
-
An exhaust fan, having a small unbalance, weights \(800 \mathrm{~N}\) and operates at a speed of \(600 \mathrm{rpm}\). It is desired to limit the response to a transmissibility of 2.5 as the fan...
-
The armature of a variable-speed electric motor, of mass \(200 \mathrm{~kg}\), has an unbalance due to manufacturing errors. The motor is mounted on an isolator having a stiffness of \(10 \mathrm{kN}...
Study smarter with the SolutionInn App