nasm
The Netwide Assembler, a portable 80x86 assembler. More information: <https://nasm.us>.
Install
- All systems
-
curl cmd.cat/nasm.sh
- Debian
-
apt-get install nasm - Ubuntu
-
apt-get install nasm -
Alpine
-
apk add nasm - Arch Linux
-
pacman -S nasm - Kali Linux
-
apt-get install nasm - CentOS
-
yum install nasm - Fedora
-
dnf install nasm - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install nasm - OS X
-
brew install nasm - Raspbian
-
apt-get install nasm - Docker
-
docker run cmd.cat/nasm nasmpowered by Commando
The Netwide Assembler, a portable 80x86 assembler. More information: <https://nasm.us>.
-
Assemble `source.asm` into a binary file `source`, in the (default) raw binary format:
nasm source.asm -
Assemble `source.asm` into a binary file `output_file`, in the specified format:
nasm -f format source.asm -o output_file -
List valid output formats (along with basic nasm help):
nasm -hf -
Assemble and generate an assembly listing file:
nasm -l list_file source.asm -
Add a directory (must be written with trailing slash) to the include file search path before assembling:
nasm -i path/to/include_dir/ source.asm
© tl;dr; authors and contributors