- Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathprogram.s
More file actions
Latest commit
8 lines (6 loc) · 402 Bytes
/
Copy pathprogram.s
File metadata and controls
8 lines (6 loc) · 402 Bytes
1
2
3
4
5
6
7
8
BITS 32; In a flat binary program, nasm assumes the code will run in 16-bit mode.
; More advanced executable formats like ELF specify this automatically.
moveax,0xDEADBEEF ; Write a recognizable value to a register just so we know
; that this program ran.
jmp $ ; Enter infinite loop, nothing more to do.
; `$` means "beginning of line", ie. the same instruction.