Assembly - The Netwide Assembler (nasm)
Table of Contents
About
nasm is an assembler that will compile assembly code in machine instruction.
Articles Related
Syntax
; Instruction Destination, Source
; example
mov ax, 9
; move/load the decimal value 9 into the ax register
More see https://en.wikibooks.org/wiki/X86_Assembly/NASM_Syntax
Utility
nasm -f format script.asm -o script
where:
- -f option specifies the file format of the final output file. The value can be:
- bin: pure machine code without any metadata such as in ELF
Script
- bits (by default 16-bit mode).
bits 32