.section .data hwmessage: .asciz "Hello World\n" .section .text .globl _start _start: movl $0, %edi top_of_loop: cmpl $3, %edi je done_with_loop inc %edi // Prints hello world movl $4, %eax movl $1, %ebx movl $hwmessage, %ecx movl $12, %edx int $0x80 // Done printing hello world jmp top_of_loop done_with_loop: movl $27, %ebx movl $1, %eax int $0x80