GitHub_collection_hello-world/a/Assembler NASM Linux.asm

20 lines
225 B
NASM
Raw Normal View History

section .text
2021-05-08 09:57:36 -05:00
global _start
2021-05-08 09:57:36 -05:00
_start:
2021-05-08 09:57:36 -05:00
xor ebx,ebx
mov ecx,msg
lea edx,[ebx+len]
lea eax,[ebx+4]
inc ebx
int 0x80
2021-05-08 09:57:36 -05:00
xor eax, eax
inc eax
int 0x80
2015-12-22 02:15:15 +01:00
section .rodata
2021-05-08 09:57:36 -05:00
msg db 'Hello World',0xa
len equ $ - msg