[go: up one dir, main page]

0% found this document useful (0 votes)
3 views1 page

CSE340 - Computer Architecture

This document is an assignment for a Computer Architecture course, focusing on MIPS instruction encoding and branch target address calculations. It includes tasks related to translating C code to MIPS assembly and a binary multiplication problem. Students are required to demonstrate their understanding of MIPS architecture concepts and perform specific calculations.

Uploaded by

Tanjim Mostafa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

CSE340 - Computer Architecture

This document is an assignment for a Computer Architecture course, focusing on MIPS instruction encoding and branch target address calculations. It includes tasks related to translating C code to MIPS assembly and a binary multiplication problem. Students are required to demonstrate their understanding of MIPS architecture concepts and perform specific calculations.

Uploaded by

Tanjim Mostafa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CSE340: Computer Architecture

Spring 2020, Assignment-2

Name:_____________________________ ID:______________ Section____

1. Encode the following MIPS instructions and identify their types?

a. MULT $8,$9
b. SLT $10, $5, $6
c. ADDI $10, $11, -5

2. Let’s assume $PC 0x1444000 for bne $10,$11,100. Calculate the branch target address using the given data. Show all
your calculation steps.

3. The following problems deal with translating from C to MIPS. Assume that the base address for arrays f, g and
A are assigned to registers $s0 and $s1, $s6 respectively.

a. f[5]= g[2]+f[A[7]];

b. g[A[f[5]]] = g[5]-A[3]*f[2];

4. Multiply -0.123 * 1.57 in Binary.

You might also like