【发布时间】:2012-08-12 11:27:54
【问题描述】:
我应该回答这个问题。经过一些研究,它说 add 和 sub 具有相同的操作码,并且仅在功能领域有所不同。这是答案还是别的什么?
更新
可在 Nios II CPU 手册中找到:
subi
subtract immediate
Operation: rB ← rA – σ (IMMED)
Assembler Syntax: subi rB, rA, IMMED
Example: subi r8, r8, 4
Description: Sign-extends the immediate value IMMED to 32 bits, subtracts it from the value of rA and then
stores the result in rB.
Usage: The maximum allowed value of IMMED is 32768. The minimum allowed value is
–32767.
Pseudo-instruction:
© March 2009
subi is implemented as addi rB, rA, -IMMED
【问题讨论】: