About

nasm is an assembler that will compile assembly code in machine instruction.

Syntax

Assembly - Grammar (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 32

Documentation / Reference