Re: [问题] 求解几题计概题目>"<

楼主: horace50612 (哈!哈!哈!)   2013-06-21 15:12:04
※ 引述《abbyrfu (abrfu)》之铭言:
: 想请教
: 5.Assume that a computer use 2's complement
: to represent a negative integer.
: Let X and Y are two 8-bit signed integers in computer,
: where X=1111 0010 Y=0001 1011 then X-Y=?
: a 1101 0111 b 1110 1011 c 1011 0111 d 0000 1101 e None of the above.
: (这题我算是 1111 0011,可是解答好像是a?)
: 6.X and Y are two real numbers in IEEE sigle-precision floating-point format:
: X=0 00000010 01000000000000000000000
: Y=0 00000011 00011100000000000000000
: calculate and show the result of X+Y.
: a 0 00000100 11011110000000000000000
: b 0 00000100 10111100000000000000000
: c 0 00000011 10111100000000000000000
: d 0 00000101 01011100000000000000000
: e None of the above
: (这题不知道怎么算.....QQ)
: 29.Which of the following is valid?
: a {X v Y, X}├Y.
: b {X ^ Y, →Z}├Z
: c {X→Y,Y}├X
: d {X→Y,Y→Z}├Z→X
: e {X v Y,Y ^ Z}├X
: (不懂..........)
: 恳请
: 帮忙解惑O_Q
5.看到这种以2补数做减法运算的题目,一定是先对Y取2补数,又因为减正数等于加负数,所以Y取2补数00011011→11100101,接着再把它与X相加就行了。
X
作者: abbyrfu (abrfu)   2013-06-23 09:46:00
不好意思....请问反正规化都是+1吗?谢谢你的帮忙!
楼主: horace50612 (哈!哈!哈!)   2013-06-24 08:04:00
对呀!在M的前面都是多加一个1
作者: abbyrfu (abrfu)   2013-06-27 01:00:00
请问第六题尾数若overflow要怎么继续运算呢?谢谢!

Links booklink

Contact Us: admin [ a t ] ucptt.com