Assembly language for low-level system and embedded programming. Use for .asm files.
Low-level language with a very strong correspondence between the instruction in the language and the architecture's machine code instructions.
section .data
msg db "Hello, World!", 0xa
len equ $ - msg
section .text
global _start
_start:
mov rax, 1 ; write syscall
mov rdi, 1 ; stdout
mov rsi, msg ; buffer
mov rdx, len ; length
syscall
mov rax, 60 ; exit syscall
xor rdi, rdi ; exit code 0
syscall
Small, fast storage locations directly in the CPU (e.g., RAX, RBX, RIP).
Commands executed by the CPU (MOV, ADD, SUB, JMP).
Region of memory for storing local variables and return addresses (USH, POP).
Do:
Don't: