Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のように初期化されたポインタを保存しようとしています:
int* x;
として初期化された通常の変数に
int y;
したがって:
y = *x;
mipsではそれは同じくらい簡単です
$s1 = ($a0);?
およびその逆?
アセンブリ言語には通常、演算子がありません。おそらく次のlwような命令が必要です。
lw
lw $s1, 0($a0)
$s1andの使用$a0は、もちろんコンテキストに依存します。これらのレジスタが、使用している残りのコードと一致する場合は、問題ありません。
$s1
$a0