Everything on PDF

PDF

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

CSE/EEE 230 – Assignment 4
Important: This is an individual assignment. Please do not collaborate.
Make sure to follow the academic integrity policies. Using work done by someone else will be
considered a violation of the academic integrity and will result in a report to the Dean’s office.
Your work should not match with anything found online.
Copying any part of this assignment, and providing them to another person or posting them on
the Internet without a permission of the instructor will be a violation of its copyright.
http://www.asu.edu/copyright/
No late submissions will be accepted.
Show all the steps to receive full credit.
There are 2 questions. The score will be scaled down to a total of 3 points.
Question 1: Show the steps in the implementation of the algorithms to obtain the result of the
following instructions. (5 points each)
(a) Show the steps in the (shift and add) binary multiplication algorithm to multiply two 6-bit
signed (two’s complement) numbers. Write the resultant register in hexadecimal.
mult $s0, $s1
mflo $s2
# $s0 = 0xFFFFFFE4 and $s1 = 0x19
(b) Show the steps in the (shift and subtract) binary division algorithm to compute the quotient
and remainder when two 6-bit signed (two’s complement) numbers are divided. Write the
resultant registers in hexadecimal.
div $s0, $s1
mflo $s2
mfhi $s3
# $s0 = 0xFFFFFFE4 and $s1 = 0x19
Question 2: Consider all floating-point registers have the following default values: $f0 to $f15 =
0xFFFFFFFF and $f16 to $f31 = 0x0. Modifications in some register values are specified for each
of the subparts. (10 points each)
(a) Show the steps to subtract the following double precision floating point numbers. Write the
resultant registers in hexadecimal.
sub.d $f4, $f8, $f12
# $f8 = 0xBF5FFFFF and $f12 = 0xC02FFFFF
(b) Show the steps to multiply the following double precision floating point numbers. Write the
resultant registers in hexadecimal. (10 points)
mul.d $f16, $f20, $f24
# $f20 = 0xABC30000 and $f24 = 0x73D50000

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER