Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment examine your basic understanding of Arithmetic for Computers. To cover these concepts, answer the bellow questions ( Q 1 - Q 3 )

This assignment examine your basic understanding of Arithmetic for Computers. To cover these concepts, answer the bellow questions (Q1-Q3):
Q1. Perform the following arithmetic (showing all the steps used): (25 points)
a) Multiplication : 1001 X 0011( unsigned integer )[ Note. this is equal to 9 x 3)
b) Multiplications: 1001 x 0011(twos complement integers-signed number)[ Note. this is equal to -7X3]
c) Division : 10010011/1011
d) Addition : 110111+1100
e) Subtraction: 3925(in binary). Remember. Subtraction in Binary is addition of the twos complement.
Q2. Consider the following Floating-points in decimal: (40 pints)
a =125 x 10-3, b =2.2 x 103, c =0.000625 x 102
a) Fill the following table by computing the required floating-point operations.
a + b b - c a x b a/c
b) Fill the following table by converting the resulting floating-point into binary:
a + b b - c a x b a/c
c) For the following floating-point instruction: add.s $f1, $f2, $f3. Assume that the values of $f2, $f3 are and . What are the values (in binary) in $f2, $f3 and $f1 after executing this instruction?
d) Consider a floating-point addition instruction add.d in MIPS assembly language, specifically focusing on the registers $f2, $f4, and $f6. The task involves adding two double-precision floating-point values stored in registers $f4 and $f6, then storing the result in register $f2.
Given the following decimal values for variables a and b:
a =125\times 10-3
b =2.2\times 103
Instructions:
1. Convert the decimal values of a and b into their IEEE 754 standard binary representation for double-precision floating-point format.
2. Execute the addition operation using the instruction add.d $f2, $f4, $f6, where:
o Register $f4 contains the value of a.
o Register $f6 contains the value of b.
3. After performing the addition, provide the binary representation of the result stored in register $f2 according to the IEEE 754 standard for double-precision floating-point numbers.
Q3. In Floating Point representations, answer the following questions showing all the steps: (Use the IEEE 754 standard for all)(showing all the steps used): (35 points)
a) Write down the binary representation of the decimal number 31.625
b) Write down the binary representation of the decimal number 31.625 assuming the IEEE 754 double precision format.
c) Write down the binary representation of the decimal number 45.45.
d) Write down the binary representation of the decimal number -19.625.
e) What decimal number does the bit pattern 0\times 0C000000 represent if it is a floating-point number?
f) What number is represented by the following single precision float (single Precision) : 11000000101000...0000
g) What number is represented by the following single precision float (single Precision) :11000001110000000000

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

It would have become a big deal.

Answered: 1 week ago