打印
[Cortex-M0技术交流]

cortex-m0 有没有空指令?

[复制链接]
1835|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
robotouch|  楼主 | 2014-4-2 20:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
john_lee| | 2014-4-3 12:45 | 只看该作者
没有专门的“空指令”,一般是用源寄存器和目的寄存器相同的 mov 指令代替,比如:mov r8, r8 等等。

使用特权

评论回复
板凳
amwrdfe| | 2014-4-3 12:59 | 只看该作者


Cortex-M0 instruction

3.7.8 NOP
No operation.
Syntax
NOP
Operation
NOP does nothing. NOP is not necessarily a time-consuming NOP. The processor might
remove it from the pipeline before it reaches the execution stage.
Use NOP for padding, for example to place the following instruction on a 64-bit boundary.
Restrictions
None
Condition flags
This instruction does not change the flags.
Examples
NOP ; No operation

使用特权

评论回复
地板
robotouch|  楼主 | 2014-4-4 14:18 | 只看该作者
john_lee 发表于 2014-4-3 12:45
没有专门的“空指令”,一般是用源寄存器和目的寄存器相同的 mov 指令代替,比如:mov r8, r8 等等。 ...

谢谢前辈

使用特权

评论回复
5
robotouch|  楼主 | 2014-4-4 14:19 | 只看该作者
amwrdfe 发表于 2014-4-3 12:59


Cortex-M0 instruction

谢谢前辈

使用特权

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

本版积分规则

58

主题

313

帖子

2

粉丝