原码、反码、补码小程序的设计与实现  

Design and Implementation of Small Program of Original Code,Inverse Code and Complement Code

在线阅读下载全文

作  者:赵煜[1] 马萌[1] ZHAO Yu;MA Meng(The 54th Research Institute of CETC,Shijiazhuang 050081,China)

机构地区:[1]中国电子科技集团公司第五十四研究所,河北石家庄050081

出  处:《计算机与网络》2020年第13期56-59,共4页Computer & Network

摘  要:从机器码出发,介绍了原码、反码、补码的定义以及三者之间的内在联系,由于原码在加减运算中的不足引入了补码,为了方便求得补码又引入了反码,从而清晰地展示了三者编码之间的联系,使用VEE可视化语言实现了三者之间的转化,通过2种方法介绍了负数原码、反码、补码之间的程序设计过程,并且介绍了机器数之间的加减运算方法,以及具体运算过程,使用人工算法验证了该程序设计的正确性。Aiming at machine code,the definition of original code,inverse code and complement code and the internal and external relations among them are described.Due to the deficiency of the original code in addition and subtraction operations,the complement code is introduced,and the inverse code is introduced in order to obtain the complement code conveniently,thus clearly showing the connection between the three codes.The VEE visual language is used to realize the conversion between the three.The two methods are used to introduce the program design process among the negative original code,inverse code and complement code.The addition and subtraction operation method between the machine numbers and the specific operation process are described.The correctness of the programis verified by using artificial algorithm.

关 键 词:原码 反码 补码 运算过程 

分 类 号:TP316[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象