原码的一位乘法:
首先部分积为0,部分积用双符号位表示,乘数用单符号位表示,两者都是绝对值
x=-0.1101 y=-0.1011
[x*y]]原?
|x|=0.1101 |y|=0.1011
00.0000
+ 00.1101 0.1011
= 00.1101
= 00.01101
+ 00.1101 0.101
= 01.00111
=00.100111
+00.0000 0.10
= 00.100111
= 00.0100111
+ 00.1101 0.1
= 01.0001111
=00.10001111 0
补码的一位乘法:
也是部分积从0开始,用双符号位,乘数用单符号位,但是看两位
x=-0.1101 y=0.1011
[x*y]补?
注意:乘数在后面加上一个0
[x]补=11.0011 [-x]补=00.1101 [y]补=00.1011
00.0000
+00.1101 0.10110
=00.1101
=00.01101
=00.001101 0.1011
+11.0011 0.101
=11.011001
=11.1011001
+00.1101 0.10
=00.1000001
=00.01000001
+11.0011 0.1
=11.01110001
不需要移位
标签:运算,00.1101,00.0000,11.0011,0.1011,定点,0.1101,乘法 From: https://www.cnblogs.com/2-3-7/p/17448031.html