当前位置:网站首页>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,信息搜集:web14
- [quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)
- Write a ten thousand word long article "CAS spin lock" to send Jay's new album to the top of the hot list
- #HPDC智能基座人才发展峰会随笔
- Ctfshow, information collection: Web3
- Oracle控制文件丢失恢复归档模式方法
- Briefly describe the working principle of kept
- Change win10 Screensaver
- 银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
猜你喜欢

HW初级流量监控,到底该怎么做

【目标检测】YOLOv5跑通VOC2007数据集

Ctfshow, information collection: web8

Change win10 Screensaver
![[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)

【OBS】RTMPSockBuf_Fill, remote host closed connection.
![[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)](/img/d3/cab8a1cba3c8d8107ce4a95f328d36.png)
[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)

Ida Pro reverse tool finds the IP and port of the socket server

如何在opensea批量发布NFT(Rinkeby测试网)

Ctfshow, information collection: web12
随机推荐
Whether runnable can be interrupted
CTFshow,信息搜集:web3
知否|两大风控最重要指标与客群好坏的关系分析
【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
【兰州大学】考研初试复试资料分享
Ctfshow, information collection: web14
Unity's ASE realizes cartoon flame
连接ftp服务器教程
Ctfshow, information collection: web8
【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
CTFshow,信息搜集:web4
Niuke real problem programming - day18
Implementation of crawling web pages and saving them to MySQL using the scrapy framework
15. Using the text editing tool VIM
How to release NFT in batches in opensea (rinkeby test network)
[deep learning] image hyperspectral experiment: srcnn/fsrcnn
使用Scrapy框架爬取网页并保存到Mysql的实现
Runnable是否可以中断
CTFshow,信息搜集:web5