当前位置:网站首页>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: web5
- Connecting FTP server tutorial
- Share the technical details of super signature system construction
- 2.Golang基础知识
- Super simple and fully automated generation super signature system (cloud Xiaoduo minclouds.com cloud service instance), free application in-house test app distribution and hosting platform, maintenan
- CTFshow,信息搜集:web14
- Starting from 1.5, build a microservice framework link tracking traceid
- [data mining] visual pattern mining: hog feature + cosine similarity /k-means clustering
- 2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
- Guangzhou Development Zone enables geographical indication products to help rural revitalization
猜你喜欢
[follow Jiangke University STM32] stm32f103c8t6_ PWM controlled DC motor_ code
【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
Qu'est - ce qu'une violation de données
Use cpolar to build a business website (2)
Win10 or win11 taskbar, automatically hidden and transparent
[understanding of opportunity -40]: direction, rules, choice, effort, fairness, cognition, ability, action, read the five layers of perception of 3GPP 6G white paper
CTFshow,信息搜集:web5
【深度学习】语义分割实验:Unet网络/MSRC2数据集
"Baidu Cup" CTF competition 2017 February, web:include
随机推荐
【數據挖掘】視覺模式挖掘:Hog特征+餘弦相似度/k-means聚類
Ctfshow, information collection: web4
【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类
MongoD管理数据库的方法介绍
Stm32f103c8t6 PWM drive steering gear (sg90)
Wechat applet 01
Runnable是否可以中断
HPDC smart base Talent Development Summit essay
2022 all open source enterprise card issuing network repair short website and other bugs_ 2022 enterprise level multi merchant card issuing platform source code
如何在opensea批量发布NFT(Rinkeby测试网)
2. 堆排序『较难理解的排序』
【数字IC验证快速入门】20、SystemVerilog学习之基本语法7(覆盖率驱动...内含实践练习)
写一篇万字长文《CAS自旋锁》送杰伦的新专辑登顶热榜
【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例
Ctfshow, information collection: web5
什么是数据泄露
Bye, Dachang! I'm going to the factory today
【数字IC验证快速入门】24、SystemVerilog项目实践之AHB-SRAMC(4)(AHB继续深入)
什麼是數據泄露