ARM 学习笔记之4: 常用指令6) MCR and MCR2

Move to Coprocessor from general-purpose register. Depending on the coprocessor, you might be able to
specify various additional operations.
-------------- Note ----------------
MCR2 is not supported in Armv8.

--------------------------------------
Syntax
        MCR{cond} coproc, #opcode1, Rt, CRn, CRm{, #opcode2}
        MCR2{cond} coproc, #opcode1, Rt, CRn, CRm{, #opcode2}

where:
cond
        is an optional condition code.
        In A32 code, cond is not permitted for MCR2.
coproc
        is the name of the coprocessor the instruction is for. The standard name is pn, where n is an integer whose value must be:
        • In the range 0-15 in Armv7 and earlier.
        • 14 or 15 in Armv8.
opcode1
        is a 3-bit coprocessor-specific opcode.
opcode2
        is an optional 3-bit coprocessor-specific opcode.
Rt
        is a general-purpose register. Rt must not be PC.
CRn, CRm
        are coprocessor registers.
Usage
The use of these instructions depends on the coprocessor. See the coprocessor documentation for details.
Architectures
These 32-bit instructions are available in A32 and T32.
There are no 16-bit versions of these instructions in T32.
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值