Writing main.asm
Part of the Fundamentals section of Coddy's Assembly journey — lesson 45 of 45.
Challenge
Create a main.asm file that:
- Includes
data.asmusing%include - Has the
.textsection andglobal _start - Uses the write syscall to print the message
- Uses the exit syscall to exit cleanly with code 0
Try it yourself
section .data
msg db 'Hello, World!', 0x0a
msgLen equ $ - msgAll lessons in Fundamentals
1The Machine
What is CPUMemoryRegisters vs MemoryHow instructions workTwo-File PatternThe x86-64 Architecture