Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

could you please help me COMPUTER ARCHITECTURE CCCN 221 -Architecture Lab 6-MIPS Loops In MIPS Statement Purposet The purpose of this Lab. is to familiarize

could you please help me
COMPUTER ARCHITECTURE
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
CCCN 221 -Architecture Lab 6-MIPS Loops In MIPS Statement Purposet The purpose of this Lab. is to familiarize student with control instructions and how to deal with looping. This lab will explain how to control the sequence of instructions execution, depending on the value of an registers using the branching instructions and also how to repeat some instructions for many times. Activity Outcomes: Student will learn how to write MIPS programs that make decisions, execute different parts and repeat some instructions depending on registers values. Student will solve different problem that will help them to choose appropriate Logical and branching statement for a given task. There are some exercises, through which they will understand the concept leam in this chapter. Integer Arithmetic and movement Instructions - Most of them use three operands - All operands are registers; no RAM or indirect addressing - Operand size is word (4 bytes) - add 5t0.5t1,St2 \# $St0=5t1+52; add as a signed integers - sab.5t2,5t3,5t4 H 5125135t4 - addi St2.5t3,5 \#St2 5t3+5; (no sub immediate) - addu St1.St6,St7 e5tl-5t6 + 5t7: add as unsigned integers - subu 5t1.5t6,5t7 m 5t15t65t7; sub as unsigned integers - mult Si3.5e4 It multiply 32 bit quantities in St3 and Si4, and store 64-bit result in special registers MLo and Iti: (11i,1.0)5.35:4 - Lo 5t/Si6 (integer quoticnt) and li515mod5tb (remainder) ff move quantity in special register the to 5 ro \#7 move quantity in spccial register Lo to Stl an used to get at result of product or quotient movest2.5B Es+25+3 Rrnmplelt how te map values between twe reintern Comparison Instructions Set on Lers than 5rt=0 -. altu 5t1,5t2,5t3 it St2 and St3 contain unsigned integers Brunch and Jamp Instructions - Branches beq 540,5t1, target of branch to carect af 500 - St] bne St0.StI,target otranch to target if 500 in St ble siestizarzet In branch to target if 5 to

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

More Books

Students also viewed these Databases questions

Question

Stages of a Relationship?

Answered: 1 week ago