已知X = 0.1011 ,Y = -0.1001,用变形补码求X + Y ,X —Y

问题描述:

已知X = 0.1011 ,Y = -0.1001,用变形补码求X + Y ,X —Y

[X+Y]补=X补+Y补=00.1011+11.0111=00.0010(无溢出)
[X-Y]补=[X]补+[-Y]补=00.1011+00.1001=01.0100(溢出,结果错误)