有人能给我一个没有进位就溢出的签名二进制文件的例子吗?
Can someone give me an example of a signed binary that overflows without a carry?
我在网上搜索过,但我找到的所有例子都使用了进位。我很好奇,有没有一个例子可以告诉我签名的二进制文件在哪里溢出而没有进位?
这是我正在处理的具体问题:
Write two 8-bit signed numbers that, if added, produce an overflow, but not a carry. (Write the same numbers in decimal as well as binary - truncate the binary to 8 bits, write the translation of
the binary answer in decimal.)
为了澄清我的理解,carrying 就是当你有这样的东西时:1 + 1 对吗?
取最大可能的正值(符号位=0)加1;这将导致符号位改变,但不会有进位。
我在网上搜索过,但我找到的所有例子都使用了进位。我很好奇,有没有一个例子可以告诉我签名的二进制文件在哪里溢出而没有进位?
这是我正在处理的具体问题:
Write two 8-bit signed numbers that, if added, produce an overflow, but not a carry. (Write the same numbers in decimal as well as binary - truncate the binary to 8 bits, write the translation of
the binary answer in decimal.)
为了澄清我的理解,carrying 就是当你有这样的东西时:1 + 1 对吗?
取最大可能的正值(符号位=0)加1;这将导致符号位改变,但不会有进位。