text #beginning of the text string
.global _start #loader
_start:
movl len, %edx #puts the number of bytes into edx
movl $msg, %ecx #puts the address of the message in ecx
movl $1,%ebx #
movl $4, %eax #Syscal number 4 (write)
int $0x80 #kernel call
movl $0,%ebx #sets the exit code to 0
movl $1, %eax #sets the sycal number 1 (exit)
int $0x80 #kernel call
ret
data
msg:
.ascii "Hello, world!\n"
len = . - msg