From 1d2cbd0f07a475ef70aefe2ea1c166e943127574 Mon Sep 17 00:00:00 2001 From: Gabriel Totev Date: Fri, 9 Jun 2017 16:03:16 -0700 Subject: [PATCH] nasm: add page (#1401) --- pages/common/nasm.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/nasm.md diff --git a/pages/common/nasm.md b/pages/common/nasm.md new file mode 100644 index 0000000000..8be1682d71 --- /dev/null +++ b/pages/common/nasm.md @@ -0,0 +1,23 @@ +# nasm + +> The Netwide Assembler, a portable 80x86 assembler. + +- 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}}`