当前位置:网站首页>理解补码的要点
理解补码的要点
2022-04-23 06:18:00 【发呆的小球童】
补码是什么?
作用
简化CPU的运算,方便计算机内部用加法器(ALU)实现负数的计算。在寄存器中以补码的形式存储
表示方法
正数的补码即其本身;
负数的补码:其反码的基础上加1
取值范围:-127~127 对应(0x80~0x7f)
举例:
-1-2 =(-1)+(-2)= (0X11111111)补 +(0X11111110)补 = (0X11111101 )补 = (0X11111100)反 = (0X10000011)原 = -3
版权声明
本文为[发呆的小球童]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_44548016/article/details/110789375
边栏推荐
- javscript获取文件真实后缀名
- golang实现MD5,SHA256,bcrypt加密
- PyTorch 17. GPU concurrency
- 记录一些npm 有关的问题(杂乱记录)
- Metro wireless intercom system
- Int8 quantification and inference of onnx model using TRT
- el-date-picker中自定义快捷选项picker-options,动态设置禁用日期
- 广西电网|应急空天一体化通信系统方案
- Gather, unsqueeze and other operators when PTH is converted to onnx
- PyTorch 13. Nested functions and closures (dog head)
猜你喜欢
随机推荐
GIS实用小技巧(三)-CASS怎么添加图例?
《Attention in Natural Language Processing》翻译
可视化常见问题解决方案(九)背景颜色问题
浅谈BFC(块格式化上下文)
Typora操作技巧说明(一).md
Intelligent communication solution of Hainan Phoenix Airport
基于openmv的无人机Apriltag动态追踪降落完整项目资料(labview+openmv+apriltag+正点原子四轴)
el-table 横向滚动条固定在可视窗口底部
关于短视频技术轮廓探讨
Solution of self Networking Wireless Communication intercom system in Beifeng oil and gas field
Proteus 8.10安装问题(亲测稳定不闪退!)
Intuitive understanding of torch nn. Unfold
可视化常见问题解决方案(八)数学公式
不需要破解markdown编辑工具Typora
Systrace parsing
Patrol inspection intercom communication system in power industry
SDC intelligent communication patrol management system of Nanfang investment building
数据分析学习(一)数据分析和Numpy基础
可视化常见问题解决方案(八)共享绘图区域问题解决方案
海南凤凰机场智能通信解决方案