LoginSignup
0
0

More than 1 year has passed since last update.

アセンブリ Intel記法 まとめ

Last updated at Posted at 2023-01-15

■レジスタ
・関数で使用する場合、、
EAX・・・関数の戻り値
EBX・・・第一引数
ECX・・・第二引数
EDX・・・第三引数

■代入
・eaxに0x1を代入
mov eax, 0x1

■stackに対し…
・valueを追加
push value

・トップ(先頭)の値をvalueに移動
pop value

■四則演算(a○b)
add a, b
sub a, b

■条件分岐
・if ○
if FLG
 〜
end

・if not ○
if not FLG
 〜
end

■ジャンプ
※ジャンプ後、そのまま一行ずつ実行される
→処理終了時には、末尾のexit:に飛ばす

…更新中…

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0