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(Subtract Immediate)命令

于 2012-09-29T18:05:54.913 に答える