打印
[共享空间]

贴一个m0的指令集

[复制链接]
6421|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 phoenixmy 于 2011-4-16 14:10 编辑

也不知道有人贴过没有,先占上位子吧


先上M0与M3的指令集比较图,一目了然



命令列表,详细请看下面附件文档的chapter3

Table 3.1. Cortex-M0 instructions

MnemonicOperandsBrief descriptionFlagsSee
ADCS{Rd,} Rn, RmAdd with CarryN,Z,C,VADC, ADD, RSB, SBC, and SUB
ADD{S}{Rd,} Rn, <Rm|#imm>Add N,Z,C,VADC, ADD, RSB, SBC, and SUB
ADRRd, labelPC-relative Address to Register-ADR
ANDS{Rd,} Rn, RmBitwise ANDN,ZADC, ADD, RSB, SBC, and SUB
ASRS{Rd,} Rm, <Rs|#imm>Arithmetic Shift RightN,Z,CASR, LSL, LSR, and ROR
B{cc}labelBranch {conditionally}-B, BL, BX, and BLX
BICS{Rd,} Rn, RmBit ClearN,ZAND, ORR, EOR, and BIC
BKPT#immBreakpoint-BKPT
BLlabelBranch with Link-B, BL, BX, and BLX
BLXRmBranch indirect with Link-B, BL, BX, and BLX
BXRmBranch indirect-B, BL, BX, and BLX
CMNRn, RmCompare NegativeN,Z,C,VCMP and CMN
CMPRn, <Rm|#imm>CompareN,Z,C,VCMP and CMN
CPSIDiChange Processor State, Disable Interrupts-CPS
CPSIEiChange Processor State, Enable Interrupts-CPS
DMB-Data Memory Barrier-DMB
DSB-Data Synchronization Barrier-DSB
EORS{Rd,} Rn, RmExclusive ORN,ZAND, ORR, EOR, and BIC
ISB-Instruction Synchronization Barrier-ISB
LDMRn{!}, reglistLoad Multiple registers, increment after-LDM and STM
LDRRt, labelLoad Register from PC-relative address-Memory access instructions
LDRRt, [Rn, <Rm|#imm>]Load Register with word-Memory access instructions
LDRBRt, [Rn, <Rm|#imm>]Load Register with byte-Memory access instructions
LDRHRt, [Rn, <Rm|#imm>]Load Register with halfword-Memory access instructions
LDRSBRt, [Rn, <Rm|#imm>]Load Register with signed byte-Memory access instructions
LDRSHRt, [Rn, <Rm|#imm>]Load Register with signed halfword-Memory access instructions
LSLS{Rd,} Rn, <Rs|#imm>Logical Shift LeftN,Z,CASR, LSL, LSR, and ROR
LSRS{Rd,} Rn, <Rs|#imm>Logical Shift RightN,Z,CASR, LSL, LSR, and ROR
MOV{S}Rd, RmMoveN,ZMOV and MVN
MRSRd, spec_regMove to general register from special register-MRS
MSRspec_reg, RmMove to special register from general registerN,Z,C,VMSR
MULSRd,Rn, RmMultiply, 32-bit resultN,ZMULS
MVNSRd, RmBitwise NOTN,ZMOV and MVN
NOP-No Operation-NOP
ORRS{Rd,}Rn, RmLogical ORN,ZAND, ORR, EOR, and BIC
POPreglistPop registers from stack-PUSH and POP
PUSHreglistPush registers onto stack-PUSH and POP
REVRd, RmByte-Reverse word-REV, REV16, and REVSH
REV16Rd, RmByte-Reverse packed halfwords-REV, REV16, and REVSH
REVSHRd, RmByte-Reverse signed halfword-REV, REV16, and REVSH
RORS{Rd,} Rn, RsRotate RightN,Z,CASR, LSL, LSR, and ROR
RSBS{Rd,}Rn, #0Reverse SubtractN,Z,C,VADC, ADD, RSB, SBC, and SUB
SBCS{Rd,}Rn, RmSubtract with CarryN,Z,C,VADC, ADD, RSB, SBC, and SUB
SEV-Send Event-SEV
STMRn!, reglistStore Multiple registers, increment after-LDM and STM
STRRt, [Rn, <Rm|#imm>]Store Register as word-Memory access instructions
STRBRt, [Rn, <Rm|#imm>]Store Register as byte-Memory access instructions
STRHRt, [Rn, <Rm|#imm>]Store Register as halfword-Memory access instructions
SUB{S}{Rd,}Rn, <Rm|#imm>SubtractN,Z,C,VADC, ADD, RSB, SBC, and SUB
SVC#immSupervisor Call-SVC
SXTBRd, Rm Sign extend byte-SXT and UXT
SXTHRd, RmSign extend halfword-SXT and UXT
TSTRn, RmLogical AND based testN,ZTST
UXTBRd, RmZero extend a byte-SXT and UXT
UXTHRd, RmZero extend a halfword-SXT and UXT
WFE-Wait For Event-WFE
WFI-Wait For Interrupt-WFI


DUI0497A_cortex_m0_r0p0_generic_ug.pdf (931.2 KB)

相关帖子

沙发
hotpower| | 2011-4-16 18:19 | 只看该作者
手机看不见,像个计算器

使用特权

评论回复
板凳
renyuedong| | 2011-10-28 10:23 | 只看该作者
关于M0和M3的汇编指令集在哪找的啊,我一个老师说M0和M3的汇编指令集一样   ARM7和ARM9的一样
想跟楼主学习一下

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:http://www.hotpage.net.cn 新浪微博:电子工程师的收藏夹

188

主题

3955

帖子

0

粉丝