NASM(1) The Netwide Assembler Project NASM(1) (NAME) nasm - Netwide 80x86 (SYNOPSIS) nasm [-@ response file] [-f format] [-o outfile] [-l listfile] [options...] filename (DESCRIPTION) nasm filename outfile . outfile nasm <<.o>> <<.obj>> . <> . (OPTIONS) -@ filename nasm filename . -a nasm . -D|-d macro[=value] . -E|-e nasm stdout ( ) . -f format . -hf . -F format () . -y ( -felf -y). -g nasm . -gformat -g -F format . -h nasm . -hf -h . -I|-i directory (include) . . -l listfile ( ) . -M nasm Makefile . -MG file -M Makefile . -MF file Makefile . -MD file -M -MF . -MT file . -o . -MQ file -MT Makefile . Make . -MP (phony target) . -O number (branch offsets). o -O0: o -O1: o -Ox: () -o outfile nasm . -P|-p file . -s nasm / stderr stdout . -t nasm SciTech TASM . -U|-u macro . -v nasm . *-W[no-]foo' nasm gcc -Wlabel-orphan -Wno-orphan-labels. -w[+-]foo nasm -w+label-orphan -w-macro-params. -X format (gnu vc). -y nasm . -Z filename nasm filename . stderr . --prefix, --postfix ( ) (global) (extern) . (SYNTAX) nasm . gas () <<%>> st0 st1 . . TO : fadd st0,st1 fadd st1,st0 : fadd st1 fadd to st1 RESB RESW RESD RESQ REST RESO (words) . DOS DUP TIMES : message: times 3 db 'abc' times 64-$+message db 0 abcabcabc . ( ) () . : mov ax,wordvar wordvar AX : mov ax,[wordvar] mov ax,[wordvar+1] mov ax,[es:wordvar+bx] . : mov ax,es:wordvar[bx] es mov ax,wordvar[1] LODSB . : H Q B (octal) () <<0x>> <<$>> . . (escape) . (little-endian) 'abcd' 0x64636261 0x61626364. << >> . <<.loop>> <