18 lines
235 B
NASM
18 lines
235 B
NASM
section .text
|
|
global _start
|
|
_start:
|
|
mov eax, ecx
|
|
push rdx
|
|
mov eax, 1
|
|
mov edi, hello_world
|
|
mov esi, 14
|
|
int 42h
|
|
nop
|
|
|
|
section .rodata
|
|
hello_world:
|
|
db 'Hello, world!', 0xa, 0
|
|
|
|
section .bss
|
|
array:
|
|
resb 10 |