我是靠谱客的博主 土豪嚓茶,这篇文章主要介绍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.
 

最后

以上就是土豪嚓茶最近收集整理的关于ARM 学习笔记之4: 常用指令6) MCR and MCR2的全部内容,更多相关ARM内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(132)

评论列表共有 0 条评论

立即
投稿
返回
顶部