论文部分内容阅读
在一般运算器设计中,将数进行算术加或者减的运算时,其数可采用补码或反码表示,这样就可全部归结为加法运算.并且可根据数值的正负,设立符号位,符号位也参加运算,就可获得正确的结果.在此情况下,加或者减的运算方式仅取决于输入两个数的符号.当符号相同时,进行加法运算;当符号相异时,则进行减法运算.只是在进行加法运算时,必须考虑和的最高位进位可能侵占符号位,从而使结果发生错误的问题.
In the general computing device design, the number of arithmetic addition or subtraction operations, the number can be used complement or anti-code, so that can be attributed to the addition and can be based on the positive and negative values, the establishment of the sign bit, In this case, the operation of adding or subtracting only depends on the sign of entering two numbers. When the sign is the same, the addition is performed; when the sign is different, then the sign is the same, For subtraction, but only when the addition is done, it is necessary to consider the fact that the most significant bit of the sum may encroach on the sign bit, causing the result to be erroneous.