当前位置:网站首页>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
边栏推荐
猜你喜欢

Write a ten thousand word long article "CAS spin lock" to send Jay's new album to the top of the hot list

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
![Super signature principle (fully automated super signature) [Yun Xiaoduo]](/img/b8/5bafbada054b335568e64c7e1ac6bb.jpg)
Super signature principle (fully automated super signature) [Yun Xiaoduo]

【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
![[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)](/img/78/29eb8581e9a8fb4c6c7e1e35ad7adc.png)
[quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
![[quick start of Digital IC Verification] 29. Ahb-sramc (9) (ahb-sramc svtb overview) of SystemVerilog project practice](/img/f7/03975d08912afd8daee936799e8951.png)
[quick start of Digital IC Verification] 29. Ahb-sramc (9) (ahb-sramc svtb overview) of SystemVerilog project practice

2022年5月互联网医疗领域月度观察

CTFshow,信息搜集:web10
![[quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)](/img/d3/cab8a1cba3c8d8107ce4a95f328d36.png)
[quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)

15. Using the text editing tool VIM
随机推荐
写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
Do you know the relationship between the most important indicators of two strong wind control and the quality of the customer base
【原创】一切不谈考核的管理都是扯淡!
【數據挖掘】視覺模式挖掘:Hog特征+餘弦相似度/k-means聚類
[data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
[quick start of Digital IC Verification] 23. AHB sramc of SystemVerilog project practice (3) (basic points of AHB protocol)
【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
HW初级流量监控,到底该怎么做
Ctfshow, information collection: web8
Use cpolar to build a business website (2)
Mathematical modeling -- what is mathematical modeling
What are the safest securities trading apps
leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
Excerpted words
Configure mongodb database in window environment
2.Golang基础知识
[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering
2022年5月互联网医疗领域月度观察
【深度学习】图像超分实验:SRCNN/FSRCNN
Niuke real problem programming - Day17