GitHub_collection_hello-world/a/Assembler NASM Linux.asm
2021-05-09 02:57:36 +12:00

20 lines
225 B
NASM

section .text
global _start
_start:
xor ebx,ebx
mov ecx,msg
lea edx,[ebx+len]
lea eax,[ebx+4]
inc ebx
int 0x80
xor eax, eax
inc eax
int 0x80
section .rodata
msg db 'Hello World',0xa
len equ $ - msg