当前位置:网站首页>The significance of XOR in embedded C language
The significance of XOR in embedded C language
2022-07-07 15:38:00 【sgmcy】
Bitwise operations are divided into : And , or , Not
But why is there an XOR ?
And : All two are 1, It's just 1, Otherwise 0.
or : As long as one is 1, Namely 1, All two are 0, Output is 0
Not :0 change 1,1 change 0
In the past, in class , The teacher told us
The role of and , To make someone bit Used to clear
The role of or , To make someone bit Set up 1
But there is no function of XOR
Exclusive or : Same as 0, Different for 1
The most classic application of XOR , It is the clearing of registers . The classic one x86 Architecture , Frequently used register zeroing
First , Read the value of this register , Then let the value and the register XOR , You can clear the entire register
Especially in X86 In assembly language programming , You often see this XOR clear operation , That's why XOR is introduced
边栏推荐
- Ctfshow, information collection: web10
- 全日制研究生和非全日制研究生的区别!
- Excerpted words
- jacoco代码覆盖率
- 【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
- Nacos conformance protocol cp/ap/jraft/distro protocol
- 连接ftp服务器教程
- Basic knowledge sorting of mongodb database
- [Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering
- Ctfshow, information collection: web4
猜你喜欢
使用cpolar建立一个商业网站(2)
#HPDC智能基座人才发展峰会随笔
从 1.5 开始搭建一个微服务框架链路追踪 traceId
【搞船日记】【Shapr3D的STL格式转Gcode】
全日制研究生和非全日制研究生的区别!
CTFshow,信息搜集:web2
Niuke real problem programming - Day17
Change win10 Screensaver
[quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
【數字IC驗證快速入門】26、SystemVerilog項目實踐之AHB-SRAMC(6)(APB協議基本要點)
随机推荐
HW初级流量监控,到底该怎么做
Ctfshow, information collection: web12
[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
TypeScript 发布 4.8 beta 版本
全日制研究生和非全日制研究生的区别!
Ctfshow, information collection: web13
[quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)
With 8 modules and 40 thinking models, you can break the shackles of thinking and meet the thinking needs of different stages and scenes of your work. Collect it quickly and learn it slowly
What are PV and UV? pv、uv
Integer learning
2.Golang基础知识
CTFshow,信息搜集:web4
【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类
[机缘参悟-40]:方向、规则、选择、努力、公平、认知、能力、行动,读3GPP 6G白皮书的五层感悟
【兰州大学】考研初试复试资料分享
Oracle control file loss recovery archive mode method
【搞船日记】【Shapr3D的STL格式转Gcode】
Share the technical details of super signature system construction
最安全的证券交易app都有哪些
微信小程序 01