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
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。