Systems & hardware
x86 Assembly
x86 assembly language is a family of backward-compatible assembly languages, which provide some level of compatibility all the way back to the Intel 8008 introduced in April 1972. x86 assembly languages are used to produce object code for the x86 class of processors.
Share this starting point
code.study/x86-assembly
- Created by
- Intel
- First appeared
- 1978
- Official resource
- Visit the main website
Your first program
Hello, World!
section .data
hello db 'Hello, World!',0
section .text
global _start
_start:
mov edx, 13 ; message length
mov ecx, hello ; message to write
mov ebx, 1 ; file descriptor (stdout)
mov eax, 4 ; system call number (sys_write)
int 0x80 ; call kernel
; Exit
mov eax, 1 ; system call number (sys_exit)
xor ebx, ebx ; exit code 0
int 0x80 ; call kernel