当前位置:网站首页>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
边栏推荐
- PAT 甲级 1103 Integer Factorizatio
- [quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)
- Nacos conformance protocol cp/ap/jraft/distro protocol
- Do you know the relationship between the most important indicators of two strong wind control and the quality of the customer base
- [deep learning] image hyperspectral experiment: srcnn/fsrcnn
- [target detection] yolov5 Runtong voc2007 data set
- [quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
- Niuke real problem programming - day16
- The bank needs to build the middle office capability of the intelligent customer service module to drive the upgrade of the whole scene intelligent customer service
- 众昂矿业:萤石继续引领新能源市场增长
猜你喜欢
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
2. 堆排序『较难理解的排序』
Ctfshow, information collection: web14
【服务器数据恢复】戴尔某型号服务器raid故障的数据恢复案例
居然从408改考自命题!211华北电力大学(北京)
从 1.5 开始搭建一个微服务框架链路追踪 traceId
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
MongoD管理数据库的方法介绍
[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering
CTFshow,信息搜集:web4
随机推荐
【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
Guangzhou Development Zone enables geographical indication products to help rural revitalization
[make a boat diary] [shapr3d STL format to gcode]
Ctfshow, information collection: web9
CTFshow,信息搜集:web2
Mathematical modeling -- what is mathematical modeling
2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
众昂矿业:萤石继续引领新能源市场增长
[deep learning] image hyperspectral experiment: srcnn/fsrcnn
Excerpted words
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
Basic knowledge sorting of mongodb database
CTFshow,信息搜集:web6
Ctfshow, information collection: web5
Super signature principle (fully automated super signature) [Yun Xiaoduo]
【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)
[quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
Ctfshow, information collection: web6
CTFshow,信息搜集:web5