Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.01 KB

README.md

File metadata and controls

18 lines (15 loc) · 1.01 KB

x86_64-NASM

This project contains NASM table codes for macOS, Linux and Win, some examples for the OSs.

Nasm manual: nasm.

Your First Few Instructions There are hundreds of instructions. You can’t learn them all at once. Just start with these:

mov x, y        x ← y
and x, y         x ← x and y
or x, y            x ← x or y
xor x, y         x ← x xor y
add x, y            x ← x + y
sub x, y            x ← x – y
inc x            x ← x + 1
dec x            x ← x – 1
syscall Invoke an operating system routine
db A pseudo-instruction that declares bytes that will be in memory when the program runs.