Objective
Write a basic x86 assembly program that prints "Hello, World!" to the console.
Background
The "Hello, World!" program is a classic introductory program in programming. It's often used to introduce the basic syntax of a programming language.
Task
Your task is to write an x86 assembly program that uses system calls to print "Hello, World!" to the standard output (console).
Requirements
- The program must compile and run on an x86 Linux system.
- Only use system calls; do not use external libraries like
printf from libc. - The program should exit cleanly returning zero.
Solution
Assembly and Execution
- Write and save your solution in
student_solutions directory. - Name the file
hello.asm . - From the parent directory, test it with
docker run --rm -v $(pwd)/student_solutions:/asmcode abhinavmir/asmgarden 001 hello.asm