global _start
section .data
msg db 'Hello World!', 0xa ; a message.
len equ $ - msg ; length of a message.
section .text
_start:
; your code goes here
mov edx, len ; message length
mov ecx, msg ; message to write
mov ebx, 01h ; file descriptor (stdout)
mov eax, 04h ; system call number (sys_write)
int 0x80 ; call kernel
jmp exit
exit:
mov eax, 01h ; exit()
xor ebx, ebx ; errno
int 80h
Z2xvYmFsIF9zdGFydAoKc2VjdGlvbiAuZGF0YQoJbXNnIGRiICdIZWxsbyBXb3JsZCEnLCAweGEJOyBhIG1lc3NhZ2UuCglsZW4gZXF1ICQgLSBtc2cJCQkJOyBsZW5ndGggb2YgYSBtZXNzYWdlLgoJCnNlY3Rpb24gLnRleHQKCl9zdGFydDoKCTsgeW91ciBjb2RlIGdvZXMgaGVyZQoJbW92CQllZHgsIGxlbgkJOyBtZXNzYWdlIGxlbmd0aAoJbW92CQllY3gsIG1zZwkJOyBtZXNzYWdlIHRvIHdyaXRlCgltb3YgCWVieCwgMDFoCQk7IGZpbGUgZGVzY3JpcHRvciAoc3Rkb3V0KQoJbW92IAllYXgsIDA0aAkJOyBzeXN0ZW0gY2FsbCBudW1iZXIgKHN5c193cml0ZSkKCWludCAJMHg4MAkJCTsgY2FsbCBrZXJuZWwKCQoJam1wCQlleGl0CgpleGl0OgoJbW92CQllYXgsIDAxaAkJOyBleGl0KCkKCXhvcgkJZWJ4LCBlYngJCTsgZXJybm8KCWludAkJODBoCg==