博客
关于我
南京晓庄学院计组期末复习限时训练15(第六章计算机的计算方法)
阅读量:336 次
发布时间:2019-03-04

本文共 417 字,大约阅读时间需要 1 分钟。

补码运算过程如下:

  • 计算X的补码:

    • X = -0.10110
    • 绝对值0.10110的补码为1.011011
    • 补1后得到1.0111000
  • 计算Y的补码:

    • Y = 0.10010
    • 补码为0.10010(前导零不影响)
  • 计算[-Y]的补码:

    • Y = 0.10010
    • -Y = -0.10010
    • 绝对值0.10010的补码为1.011011
    • 补1后得到1.0111000
  • 计算[X+Y]的补码:

    • X的补码1.0111000与Y的补码0.10010相加:
    • 结果为11.1110000,符号位未变,无溢出。
  • 计算[X-Y]的补码:

    • X的补码1.0111000与Y的补码0.10010相减:
    • 结果为10.1100000,符号位未变,无溢出。
  • 最终答案:

    (1)1.0111000

    (2)0.10010
    (3)1.0111000
    (4)11.1110000,无溢出
    (5)无
    (6)10.1100000,无溢出

    注:补码运算时,符号位未变则无溢出。

    转载地址:http://nyrq.baihongyu.com/

    你可能感兴趣的文章
    NO 157 去掉禅道访问地址中的zentao
    查看>>
    no available service ‘default‘ found, please make sure registry config corre seata
    查看>>
    no connection could be made because the target machine actively refused it.问题解决
    查看>>
    No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
    查看>>
    No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
    查看>>
    No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
    查看>>
    No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
    查看>>
    No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
    查看>>
    No module named 'crispy_forms'等使用pycharm开发
    查看>>
    No module named cv2
    查看>>
    No module named tensorboard.main在安装tensorboardX的时候遇到的问题
    查看>>
    No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
    查看>>
    No new migrations found. Your system is up-to-date.
    查看>>
    No qualifying bean of type XXX found for dependency XXX.
    查看>>
    No resource identifier found for attribute 'srcCompat' in package的解决办法
    查看>>
    no session found for current thread
    查看>>
    No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
    查看>>
    NO.23 ZenTaoPHP目录结构
    查看>>
    no1
    查看>>
    NO32 网络层次及OSI7层模型--TCP三次握手四次断开--子网划分
    查看>>