【发布时间】:2015-03-04 16:53:41
【问题描述】:
如何知道字中的字节代表的是 16 位指令还是 32 位指令?
我提到了 ARM ARMv7M,我不清楚如何区分它是 16 位指令还是 32 位指令。
它说If bits [15:11] of the halfword being decoded take any of the following values, the halfword is the first halfword of a 32-bit instruction:
• 0b11101
• 0b11110
• 0b11111.
Otherwise, the halfword is a 16-bit instruction
这是否意味着处理器总是获取半字,检查它们并决定它是 16 位还是 32 位?
第一个半字是什么意思?位[31-16] 或位[15-0] 在一个字中?
如果我有 32 位,那么我能知道它是 32 位指令还是 16 位指令?
谢谢。
【问题讨论】:
标签: arm decoding armv7 cortex-m3 opcodes