CS代写 COIS 2300H Computer Organization

COIS 2300H Computer Organization
Department of Computer Science
Assignment 2, Winter 2022
Due: Friday, Feb 25, 2022

Copyright By PowCoder代写 加微信 powcoder

In this assignment, you will answer the following questions. Write your answer in the exact place:

Your Information:

First Name:

Last Name:

Student ID:

1- Write MIPS assembly program to perform the following:
IF X[i]< Y[i] then Z[i] = X[i] + Y [i]} i=0,1,2,….N Assume that each element of the arrays is 4-byte words and the base addresses of the arrays Z, X, and Y are assigned to registers $s0, $s1, and $s2 respectively. Integer N is assigned to register $3. 2- Show how each of the following MIPS instructions is converted into machine code. Assume the memory address of the first instruction is 100 hex. addi $t0, $Zero, -50 andi $t1, $t0, 7 Loop:and $t1,$t0,$t1 Sw $t0, 40 ($t1) Bne $t1,$ zero, Loop 3- What is the MIPS assembly instruction for the following machine code? 0x8C220004 Grading Policy: The assignment score is out of 100 points. Here are some aspects that may lead to points deduction: · The answers are missing. · Missing steps. · Inappropriate data to answer your question. · Do your best to include exhaustive details, the final answer alone is not enough to get points. · Collaborate on the individual assignment. 程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com