Assembly language is made up of two main things: instructions that tell the CPU what to do, and directives that guide the assembler on how to process your code.
mov destination, source
β Moves data from one place to anotheradd destination, source
β Adds a value to a registersub destination, source
β Subtracts a valueint 0x80
β Performs a Linux system calljmp label
β Jumps to a label in codesection .data
β Holds initialized datasection .bss
β Holds uninitialized datasection .text
β Contains the code/instructionsglobal _start
β Marks the program's entry pointdb
, dw
, dd
β Define byte, word, doubleword;
) on every line of Assembly code when youβre starting out β itβll save you pain later.