LoginSignup
0
0

More than 3 years have passed since last update.

[Ubuntu 20.04 LTS]アセンブリ(NASM)スターターキット

Last updated at Posted at 2020-06-22

環境

  • Ubuntu 20.04 LTS

はじめに

これからアセンブリを始める方へ。

Sublime Text

インストール方法は、公式にaptでのやり方が書いてあります。
パッケージはNASM x86 Assemblyを入れましょう。
fig1.png
図1 NASM x86 Assemblyを入れたSublime Text 3

NASM

アセンブラです。
sudo apt install nasm
の1行です。

GNU ld

リンカです。上のNASMと一緒に使います。
恐らくUbuntu 20.04 LTSには最初から入っています。

gdb

デバッガです。
恐らく最初から入っています。
layout asmすると逆アセンブルされたものが
layout regsするとレジスタが
それぞれ表示されます。
Intelシンタックスが好みならば、set disassembly-flavor intelをしましょう。
fig2-2.png

図2 gdb

書籍(個人的なお薦め)

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