mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 22:17:57 +01:00
636 B
636 B
nasm
The Netwide Assembler, a portable 80x86 assembler.
- Assemble
source.asm
into a binary filesource
, in the (default) raw binary format:
nasm {{source.asm}}
- Assemble
source.asm
into a binary fileoutput_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}}