关键词 > IntroductiontoComputerSystems

Homework #1: Introduction to Computer Systems - 18x13: Summer 2024

发布时间:2024-06-14

Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Homework #1: Introduction to Computer Systems - 18x13: Summer 2024

Question 1               5 / 5 pts

                                                                     Machine 1: 4-bit w/2s complement signed                 Machine 2: 6-bit w/2s complement signed

Binary representation of -6 decimal                            1010

Binary representation of 10 decimal                           Unable                                                            001010

Binary representation of Tmax                                  0111

Integer (Decimal) value resulting from (7 + 3)           -6

Question 2              5 / 5 pts

Floats (5 points, 1 point per blank)

Please consider floating point numbers based upon an IEEE- like floating point format as described below.

Format:

There are 8 bits

There is 1 sign bit

There are 4 fraction bits

Fill in the empty boxes as instructed.

                                                                                                                          Answer

Total Number of Bits (Decimal)                                                                                  8

Number of Sign Bits (Decimal)                                                                                   1

Number of Fraction Bits (Decimal)                                                                              4

Number of Exponent Bits (Decimal)                                                                            3

Bias (Decimal)                                                                                                          3

Value of bit pattern (Decimal or NaN): 11111111                                                        NaN

Value of bit pattern (Decimal or NaN): 00011000                                                       0.375

Value of bit pattern (Simplified Decimal Fraction or NaN): 10001000                           -0.125