ARM指令及功能描述文档格式.doc
- 文档编号:13027910
- 上传时间:2022-10-02
- 格式:DOC
- 页数:5
- 大小:185KB
ARM指令及功能描述文档格式.doc
《ARM指令及功能描述文档格式.doc》由会员分享,可在线阅读,更多相关《ARM指令及功能描述文档格式.doc(5页珍藏版)》请在冰豆网上搜索。
immediatelyondo"
drop"
weakbirdfirstfly"
andtheinNanpingresearchstudyproposedof"
gravityXiamoved"
and"
innovationmechanism"
importantthought,Masterandstrengthenthepartyspirit,fulfillsthepurposeideas,moralcharacter,conservationrelatedtothebasicrequirements.Mainunderstandmasterfollowingaspectscontent:
(1)idealfaithisCommunistsspiritShangof"
calcium"
setrightofworldview,andOutlookonlife,andvalues;
(2)Chinadreamisnationalofdream,andnationalofdream,andpeopleofdream,isChinesemodernyilaimostgreatofdream,coreEssentialsisnationalprosperity,andnationalrevitalization,andpeoplehappiness;
(3)ChinafeaturesSocialistisachievedChinesegreatrevivalofway,enhancedroadconfidence,andtheoryconfidence,andsystemconfidence;
(4)"
fourafull"
StrategylayoutisnewofhistoryconditionsXiapartyrulingactingpoliticaltotalstrategy,consciouslywith"
ledthework;
(5)insistedinnovation,andcoordination,andgreen,andopen,andshareddevelopmentisrelationshipChinadevelopmentglobalofonedeepchange,accordingtonewdevelopmentconceptdojob;
(6)practicelineSocialistcorevalues,promoteSocialistthoughtmoralandChinesetraditionalvirtue
指令格式:
指令{条件}{S}{目的Register},{OP1},{OP2}
"
{}"
中的内容可选。
即,可以不带条件只有目的寄存器,或
只有目的寄存器和操作数1,也可以同时包含所有选项。
“S”决定指令的操作是否影响CPSR中条件标志位的值,当没有S时指令不更新CPSR中条件标志位的值
助记符
英文全称
示例、功能
跳
转
指
令
B
Branch
BLabel ;
程序无条件跳转到标号Label处执行
BL
BranchwithLink
BLLabel;
当程序无条件跳转到标号Label处执行时,同时将当前的PC值保存到R14中
BLX
BranchwithLinkandexchange
BLXLabel;
从ARM指令集跳转到指令中所指定的目标地址,并将处理器的工作状态有ARM状态切换到Thumb状态,该指令同时将PC的当前内容保存到寄存器R14中
BX
Branchandexchange
BXLabel;
跳转到指令中所指定的目标地址,目标地址处的指令既可以是ARM指令,也可以是Thumb指令
数
据
处
理
MOV
Move
MOVR1,R0,LSL#3;
将寄存器R0的值左移3位后传送到R1
MVN
MoveNOT
MVNR0,#0;
将立即数0取反传送到寄存器R0中,完成后R0=-1
CMP
Compare
CMPR1,R0 ;
将寄存器R1的值与寄存器R0的值相减,并根据结果设置CPSR的标志位
CMN
Comparenegative
CMNR1,R0 ;
将寄存器R1的值与寄存器R0的值相加,并根据结果设置CPSR的标志位
TST
Test
TST R1,#0xffe ;
将寄存器R1的值与立即数0xffe按位与,并根据结果设置CPSR的标志位
TEQ
Testequivalence
TEQ R1,R2 ;
将寄存器R1的值与寄存器R2的值按位异或,并根据结果设置CPSR的标志位
ADD
Add
ADDR0,R2,R3,LSL#1 ;
R0=R2+(R3<
<
1)
ADC
Addwithcarry
ADCS R2,R6,R10;
R2=R6+R10+!
C,且更新CPSR的进位标志位
SUB
Subtract
SUBR0,R1,#256 ;
R0=R1–256
SBC
Subtractwithcarry
SUBSR0,R1,R2;
R0=R1-R2-!
C,并根据结果设置CPSR的进位标志位
RSB
Reversesubtract
RSBR0,R1,R2;
R0=R2–R1
RSC
Reversesubtractwithcarry
RSCR0,R1,R2 ;
R0=R2–R1-!
C
AND
And
ANDR0,R0,#3;
该指令保持R0的0、1位,其余位清零。
ORR
OR
ORRR0,R0,#3;
该指令设置R0的0、1位,其余位保持不变。
EOR
ExclusiveOR
EORR0,R0,#3;
该指令反转R0的0、1位,其余位保持不变。
BIC
Bitclear
BICR0
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ARM 指令 功能 描述