0

我试图理解 PowerPC 指令并最终反汇编它们。我找到了http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=/com.ibm.aix.aixassem/doc/alangref/ppc_instr.htm我已经很困惑了- addic 和 si 如何拥有相同的操作码?

4

2 回答 2

1

它们是相同的指令。不同之处在于,在 si 的情况下,汇编程序会更改您提供的立即数的符号。

于 2012-09-29T18:04:16.337 回答
1

显然,它是汇编程序的某种语法糖。它们都执行加法,但si使用负数:

The si instruction subtracts the 16-bit signed integer specified by the
SINT parameter from the contents of general-purpose register (GPR) RA and
stores the result in the target GPR RT. This instruction has the same
effect as the ai instruction used with a negative SINT value. The
assembler negates SINT and places this value (SI) in the machine
instruction:

    ai RT,RA,-SINT

来源:si(立即减法)指令

于 2012-09-29T18:05:54.913 回答