惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MyScale Blog
MyScale Blog
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
L
LangChain Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
L
LINUX DO - 热门话题
Project Zero
Project Zero
罗磊的独立博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MongoDB | Blog
MongoDB | Blog
Spread Privacy
Spread Privacy
S
Schneier on Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
J
Java Code Geeks
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - Franky
T
Threat Research - Cisco Blogs
D
Docker
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
Google DeepMind News
Google DeepMind News
T
The Exploit Database - CXSecurity.com
L
Lohrmann on Cybersecurity
月光博客
月光博客
V
Vulnerabilities – Threatpost
NISL@THU
NISL@THU
V
Visual Studio Blog
AWS News Blog
AWS News Blog
I
Intezer
T
The Blog of Author Tim Ferriss
P
Privacy International News Feed
T
Tor Project blog
F
Full Disclosure
P
Proofpoint News Feed
SecWiki News
SecWiki News
H
Heimdal Security Blog
Help Net Security
Help Net Security
The Hacker News
The Hacker News

博客园 - ChuckLu

英语背单词 专八词汇 中英对照 2026年07月 背单词 纯英文 2026年07月 sql exists and not exists 英语背单词 专八词汇 中英对照 2026年06月 背单词 纯英文 2026年06月 英语背单词 专八词汇 中英对照 2026年05月 背单词 纯英文 2026年05月 英语背单词 专八词汇 中英对照 2026年04月 背单词 纯英文 2026年04月 英语背单词 专八词汇 中英对照 2026年03月 背单词 纯英文 2026年03月 英语背单词 专八词汇 中英对照 2026年02月 背单词 纯英文 2026年02月 英语背单词 专八词汇 中英对照 2026年01月 背单词 纯英文 2026年01月 英语背单词 专八词汇 中英对照 2025年12月 背单词 纯英文 2025年12月 二叉树 节点的个数关系 二叉树 遍历 英语背单词 专八词汇 中英对照 2025年11月 背单词 纯英文 2025年11月 KMP算法 图 生成树 图论 Walks Trails and Paths 英语背单词 专八词汇 中英对照 2025年10月 背单词 纯英文 2025年10月
补码加减法
ChuckLu · 2025-11-03 · via 博客园 - ChuckLu

设机器字长为8位,若x和y的真值分别为:x= -10101(B),y= -01011(B),试用补码计算(x-y),并指出结果是否溢出。(要求写出详细运算步骤)。
x是-(16+4+1)=-21

y是-(8+2+1)=-11

x-y=-21+11=-10

x原=1001,0101

x反=1110,1010

x补=1110,1011

y原=1000,1011

y反=1111,0100

y补=1111,0101

-y是正数,所以下面三个是一致的

-y原=0000,1011

-y反=0000,1011

-y补=0000,1011

补码计算x-y,可以是x补-y补。 也可以是x补+(-y)补

x补-y补

  x补=1110,1011

-y补=1111,0101

         1111,0110

      x补1110,1011
+(-y)补0000,1011
        补1111,0110