2012-04-29 09:11:36 -04:00
|
|
|
section .text
|
2021-05-08 09:57:36 -05:00
|
|
|
global _start
|
2012-04-29 09:11:36 -04:00
|
|
|
|
|
|
|
_syscall:
|
2021-05-08 09:57:36 -05:00
|
|
|
int 0x80
|
2012-04-29 09:11:36 -04:00
|
|
|
ret
|
|
|
|
|
2021-05-08 09:57:36 -05:00
|
|
|
_start:
|
2012-04-29 09:11:36 -04:00
|
|
|
|
2021-05-08 09:57:36 -05:00
|
|
|
push dword len
|
|
|
|
push dword msg
|
|
|
|
push dword 1
|
|
|
|
mov eax,0x4
|
|
|
|
call _syscall
|
2012-04-29 09:11:36 -04:00
|
|
|
|
|
|
|
|
2021-05-08 09:57:36 -05:00
|
|
|
add esp,12
|
2012-04-29 09:11:36 -04:00
|
|
|
|
2021-05-08 09:57:36 -05:00
|
|
|
push dword 0
|
|
|
|
mov eax,0x1
|
|
|
|
call _syscall
|
2012-04-29 09:11:36 -04:00
|
|
|
|
|
|
|
section .data
|
|
|
|
|
2021-05-08 09:57:36 -05:00
|
|
|
msg db "Hello World",0xa
|
|
|
|
len equ $ - msg
|