Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 869 Bytes

File metadata and controls

31 lines (22 loc) · 869 Bytes

Setting Up The Environment For Assembly Programming

Before we start coding in Assembly, we need to set up our enviromnent. This section will guide you through the process of installing the neccesary tools required to write and assemble a assembly program. We will use 'NASM', short for 'Netwide Assembler' and 'GNU LD' linker to link it.

The Netwide Assembler (NASM) is a popular and widely used assembler for x86 and x86_64 assembly programming. To install it, you need to open Bash which is usually opened with ctrl-alt-c on Linux distros.

sudo apt install nasm binutils

After you've installed it, you can verify it with:

nasm -v

Installing a Debugger

To install a assembly debugger, you can download 'GNU gdb', to install it:

sudo apt install gdb

After you've installed it, you can verify it with:

gdb -v