Menu
Coddy logo textTech

Writing main.asm

Part of the Fundamentals section of Coddy's Assembly journey — lesson 45 of 45.

challenge icon

Challenge

Create a main.asm file that:

  • Includes data.asm using %include
  • Has the .text section and global _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 $ - msg

All lessons in Fundamentals