当前位置:网站首页>arm汇编—bic ,orr
arm汇编—bic ,orr
2022-07-19 16:57:00 【微嵌电子】
BIC指令的格式为:
BIC{条件}{S} 目的寄存器,操作数1,操作数2
BIC指令用于清除操作数1的某些位,并把结果放置到目的寄存器中。操作数1应是一个寄存器,
操作数2可以是一个寄存器、被移位的寄存器、或一个立即数。操作数2为32位的掩码,如果在
掩码中置了某一位1,则清除这一位。未设置的掩码位保持不变。
bic r0,r0,#0x1f
0x1f=11111b
其含义:清除r0的bit[4:0]位。
2,orr
ORR指令的格式为:
ORR{条件}{S} 目的寄存器,操作数1,操作数2
ORR指令用于在两个操作数上进行逻辑戒运算,并把结果放置到目的寄存器中。操作数1应该是一
个寄存器,操作数2可以是一个寄存器,被移位的寄存器,或一个立即数。该指令常用于设置操
作数1的某些位。
指令示例:
ORR R0,R0,#3 ; 该指令设置R0的0、1位,其余位保持不变。
orr r0,r0,#0xd3
0xd3=1101 0111
将r0与0xd3作算数或运算,然后将结果返还给r0,即把r0的bit[7:6]和bit[4]和bit[2:0]置为1。
边栏推荐
- 新建STM32工程并配置——基于寄存器
- Geoscience academic resources (common data and their download addresses)
- “蔚来杯“2022牛客暑期多校训练营1 补题题解(未完成)
- 线程/进程/协程的区别以及多线程状态/多线程的统一异常处理
- 2D动画的一个场景应用
- 百度贴吧爬虫获取网页
- "Error in enabling windows function netfx3" (error cause, detailed analysis and solution) and installation on windows server2012 occur during the installation of SQL Server 2012 NET Framework 3
- 银行理财收益越来越低,现在哪些理财产品收益高?
- 第七章:集合
- 简单工厂 工厂方法 抽象工厂 了解一下
猜你喜欢
MCU debugging - the use of event recorder
Download method of European Meteorological Center data (ERA)
动态内存管理
Drawing circular scale map with MATLAB
Map和Set
Batch download data -- Take TRMM data as an example
[problem solving] uncaught typeerror: cannot read property 'addListener' of undefined when wechat developer tools introduce components
Large screen: the display adaptation and font of the page on different scale screens change with the screen change (the font changes adaptively with the screen resolution)
单片机调试 — Event Recorder 的使用
WPF MVVM mouse double click event
随机推荐
Matlab数据写入文件常用函数
Extend MySQL under Orthanc windows
MATLAB realizes the distance method of superior and inferior solution (TOPSIS method)
Concurrence pour les langues de traitement des données sur JVM: kotlin, Scala et SPL
[problem solving] load balancing
MLX90640 红外热成像仪测温模块简要介绍说明
C# linq查询集合后 返回var 转换成实体类集合
Build yourself an extremely simple but easy-to-use shame map station
ES6语法扩展与新特性
ES6 syntax extensions and new features
LiDAR数据下载步骤
Detailed explanation of common response status codes in the development process
Matlab TRMM_3B42数据格式转换(nc转tif,附代码)
WPF DataGrid two lines with one color
WPF DataGrid MVVM binding selectedcells
云上机器CLOSE_WAIT过多的原因和解决办法
math.random()随机函数实例演示
Batch download data -- Take TRMM data as an example
Arcgis/arcpy convert floating-point grid to integer grid
150. 逆波兰表达式求值