软硬件系统编程PPT (11).pdf

上传人:奉*** 文档编号:67736697 上传时间:2022-12-26 格式:PDF 页数:8 大小:480.47KB
返回 下载 相关 举报
软硬件系统编程PPT (11).pdf_第1页
第1页 / 共8页
软硬件系统编程PPT (11).pdf_第2页
第2页 / 共8页
点击查看更多>>
资源描述

《软硬件系统编程PPT (11).pdf》由会员分享,可在线阅读,更多相关《软硬件系统编程PPT (11).pdf(8页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、二进制数的算术运算二进制数的算术运算Arithmetic Operations of Binary NumbersArithmetic Operations of Binary Numbers2DivisionAdditionSubtractionMultiplication31.Addition and subtraction of binary numbersAddition:Addition uses a form of carrying.Adding two 1 digits produces a digit 0,while 1 will have to be added to the

2、 next column0+0=0 0+1=1 1+0=1 1+1=0(carry 1)Subtraction:Subtraction uses a form of borrowing.Subtracting a 1 digit from a 0 digit produces the digit 1,while 1 will have to be subtracted from the next column.0-0=0 1-0=1 1-1=0 0-1=1(borrow 1)1 0 1 0 1 1 0 11 0 1 0 1 1 0 10 1 0 1 1 0 1 00 1 0 1 1 0 1 0

3、+)+)11 11 1 0 01 1 0 00 1 0 10 1 0 1-)1.011.1100000Multiplication00=0 01=0 10=0 11=1E.G.11001001=110110042.Multiplication of binary numbers1 1 0 01 1 0 01 0 0 11 0 0 1 )01010000000011001101100Partial ProductsMultiplication of binary numbersRule 1Multiplication can be converted into Addition and Shif

4、t5E.g.000010110100Rule 2 Every time the multiplier multiplied by 2,the multiplicand will shift one digit to the left in the product(Here 2 is the 10 in binary).=00101100BDivision00=0 01=0 11=1E.g.10011111063.Division of binary numbers110100111110110.10111110001101100=110.17DivisionRule 1Division can

5、 be converted into subtraction and shift operationsIn the computer,the subtraction operation can be converted into an addition operationE.g.000010110100=00000010BQuotient Reminder=11 BRule 2:Every time the dividend is divided by 2,the dividend will shift one digit to the right in the final result.(Here 2 is the 10 in binary)Summary1 1 1 1 1 1 1 11 1 1 1 1 1 1 10000000100000001+)+)1 100000000Computers use the binary number system for arithmetic operationsThe range of numbers that computers can represent is limitedOverflow

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com