W -W ww (with ffset) w (with offset) ddi add -ub mul nult nflo lw $a, O($b) sw $a, O($b) lw $a, C($b) sw $a, C($b) addi $a, $b, C add $a, $b, $c sub $a, $b, $c mul $a, $b. $c mult $a, $b mflo $a ben Sa Load word: Copies data from memory at address $b to register $a. Store word: Copies data from register $a to memory at address $b. Load word: Copies data from memory at address $b + C to register $a. Store word: Copies data from register $a to memory at address $b+ C. Add: Computes the sum of registers $b and $c, and writes the sum into register $a. Subtract: Subtracts $c from $b, and writes the difference into register $a. Multiply: Multiplies register $b and $c, and writes the lower 32-bits of the product into register $a. mul is a pseudoinstruction implemented using mult and milo. Add immediate: Adds register $b and the immediate value C, and writes the sum into addi $13, $12, 7 register $a. Multiply: Multiplies register $a and $b, writing the 64-bit result to special register $LO and $HI. Move from LO register: Copies value held in special register $LO to register $a. lw $13, 0($16) Branch on equal: Branches to the instruction sw $t1, 0($13) lw $13, 20($16) sw $t1,-4($13) add $14, $t1, $12 sub $13. $12, $15 mul $t3, $12, $t1 mult $t3, $t5 mflo $t2

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Instruction Format Description
lw
SW
Iw (with
offset)
sw (with
offset)
addi
add
sub
mul
mult
mflo
beq
bne
slt
j
jal
jr
Iw $a,
O($b)
sw $a,
O($b)
Iw $a,
C($b)
sw $a,
C($b)
addi $a,
$b. C
add $a,
$b. $c
sub $a,
$b, $c
mul $a,
$b, $c
mult $a,
$b
mflo $a
beq $a,
$b.
BLabel
bne $a,
$b.
BLabel
slt $a, $b,
$c
j JLabel
Load word: Copies data from memory at
address $b to register $a.
jr $a
Store word: Copies data from register $a to
memory at address $b.
Load word: Copies data from memory at
address $b + C to register $a.
Store word: Copies data from register $a to
memory at address $b + C.
Add: Computes the sum of registers $b and
$c, and writes the sum into register $a.
Subtract: Subtracts $c from $b, and writes
the difference into register $a.
Multiply: Multiplies register $b and $c, and
writes the lower 32-bits of the product into
register $a. mul is a pseudoinstruction
implemented using mult and mflo.
Multiply: Multiplies register $a and $b.
writing the 64-bit result to special register
$LO and $HI.
Add immediate: Adds register $b and the
immediate value C, and writes the sum into addi $13, $t2,7
register $a.
Move from LO register: Copies value held in
special register $LO to register $a.
Branch on equal: Branches to the instruction
at BLabel if the values held in $a and $b are
equal. Otherwise, instruction immediately
after beq is executed.
Branch on not equal: Branches to the
instruction at BLabel if the values held in $a
and $b are not equal. Otherwise, instruction
immediately after bne is executed.
Set on less than: Write 1 to register $a if
value held in register $b is less than value
held in register $c, and otherwise writes 0.
Jump: Causes execution to continue with the
instruction at JLabel.
Jump and link: Stores the address of the next
jal JLabel instruction to register $ra, but continues
execution with the instruction at JLabel.
Example
Jump register: Causes execution to continue
with the instruction at address $a.
lw $13, 0($16)
sw $t1, 0($13)
lw $13, 20($16)
sw $t1,-4($13)
add $14, $t1, $12
sub $13, $12, $15
mul $t3, $12, $t1
mult $13, $15
mflo $t2
beq $13, $12,
SumEq5
bne $14, $15,
GuessNeqCorrect
sit $t1, $15, $16
j CalcTip
jal CalcTip
ir $13
Transcribed Image Text:Instruction Format Description lw SW Iw (with offset) sw (with offset) addi add sub mul mult mflo beq bne slt j jal jr Iw $a, O($b) sw $a, O($b) Iw $a, C($b) sw $a, C($b) addi $a, $b. C add $a, $b. $c sub $a, $b, $c mul $a, $b, $c mult $a, $b mflo $a beq $a, $b. BLabel bne $a, $b. BLabel slt $a, $b, $c j JLabel Load word: Copies data from memory at address $b to register $a. jr $a Store word: Copies data from register $a to memory at address $b. Load word: Copies data from memory at address $b + C to register $a. Store word: Copies data from register $a to memory at address $b + C. Add: Computes the sum of registers $b and $c, and writes the sum into register $a. Subtract: Subtracts $c from $b, and writes the difference into register $a. Multiply: Multiplies register $b and $c, and writes the lower 32-bits of the product into register $a. mul is a pseudoinstruction implemented using mult and mflo. Multiply: Multiplies register $a and $b. writing the 64-bit result to special register $LO and $HI. Add immediate: Adds register $b and the immediate value C, and writes the sum into addi $13, $t2,7 register $a. Move from LO register: Copies value held in special register $LO to register $a. Branch on equal: Branches to the instruction at BLabel if the values held in $a and $b are equal. Otherwise, instruction immediately after beq is executed. Branch on not equal: Branches to the instruction at BLabel if the values held in $a and $b are not equal. Otherwise, instruction immediately after bne is executed. Set on less than: Write 1 to register $a if value held in register $b is less than value held in register $c, and otherwise writes 0. Jump: Causes execution to continue with the instruction at JLabel. Jump and link: Stores the address of the next jal JLabel instruction to register $ra, but continues execution with the instruction at JLabel. Example Jump register: Causes execution to continue with the instruction at address $a. lw $13, 0($16) sw $t1, 0($13) lw $13, 20($16) sw $t1,-4($13) add $14, $t1, $12 sub $13, $12, $15 mul $t3, $12, $t1 mult $13, $15 mflo $t2 beq $13, $12, SumEq5 bne $14, $15, GuessNeqCorrect sit $t1, $15, $16 j CalcTip jal CalcTip ir $13
Assignment 2 Directions
Please choose Option 1 or Option 2. You do not need to do both.
Option 1:
Please write a short paper based on Module 2 Hardware Components. Anything in the module can be a topic.
Write a summary paper as follows:
• Prepare a Word document with a minimum of 3 pages (not including title and references pages) and a minimum of 3
solid references.
Be sure to use APA Guidelines for references.
• Make sure to save the file in the following format: FirstName_LastName_Paper.doc(x)
• Upload the completed file as an attachment to this assignment.
.
Option 2:
1. Create an algorithm to add two integer numbers.
2. Implement the program in a high level language like C or Java. It does not need to run for me, but the code should
be included in a text document called FirstnameLastnameHLA2.txt in your assignment submission.
3. Implement the program in MIPSzy Assembly language. Use the high level code as comments to the right of the
Assembly code as the textbook does.
4. If you write that MIPSzy program in a text editor, you can then paste it into the simulator box in 11.1.1 of Chapter
11 in the ZYBook. You can run the simulation there to test the code.
1. The input values should be read from memory locations 5000 and 5004.
2. Include a comment at the top of the program with your name and Panther id.
3. Place the result in register $t0 and in memory location 5008.
1. Export the file by clicking the "More Options" button and then Export on the right side. That will paste your program
into a small box on the right. Copy and paste that into a text document. Call that document
FirstnameLastnameMIPSzyA2.txt.
2. Zip up FirstnameLastnameMIPszA2.txt and FirstnameLastnameHLA2.txt into a zip file called
FirstnameLastnameA2.zip. Do not use any other kind of zip file formats.
Transcribed Image Text:Assignment 2 Directions Please choose Option 1 or Option 2. You do not need to do both. Option 1: Please write a short paper based on Module 2 Hardware Components. Anything in the module can be a topic. Write a summary paper as follows: • Prepare a Word document with a minimum of 3 pages (not including title and references pages) and a minimum of 3 solid references. Be sure to use APA Guidelines for references. • Make sure to save the file in the following format: FirstName_LastName_Paper.doc(x) • Upload the completed file as an attachment to this assignment. . Option 2: 1. Create an algorithm to add two integer numbers. 2. Implement the program in a high level language like C or Java. It does not need to run for me, but the code should be included in a text document called FirstnameLastnameHLA2.txt in your assignment submission. 3. Implement the program in MIPSzy Assembly language. Use the high level code as comments to the right of the Assembly code as the textbook does. 4. If you write that MIPSzy program in a text editor, you can then paste it into the simulator box in 11.1.1 of Chapter 11 in the ZYBook. You can run the simulation there to test the code. 1. The input values should be read from memory locations 5000 and 5004. 2. Include a comment at the top of the program with your name and Panther id. 3. Place the result in register $t0 and in memory location 5008. 1. Export the file by clicking the "More Options" button and then Export on the right side. That will paste your program into a small box on the right. Copy and paste that into a text document. Call that document FirstnameLastnameMIPSzyA2.txt. 2. Zip up FirstnameLastnameMIPszA2.txt and FirstnameLastnameHLA2.txt into a zip file called FirstnameLastnameA2.zip. Do not use any other kind of zip file formats.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY