Люди добрые ПАМАГИТЕ!
Необходимо в NASM скомпилить испольняемый файл для Linux.
Как это сделать?
Или я не программер?
Заранее спасибо
nasm -f elf hello.asm
ld -s -o hello hello.o
hello.asm ___________________________
section .data
hello: db 'Hello world!',10
helloLen: equ $-hello
section .text
global _start
_start:
mov eax,4
mov ebx,1
mov ecx,hello
mov edx,helloLen
int 80h ; Call the kernel
mov eax,1 ; The system call for exit (sys_exit)
mov ebx,0 ; Exit with return code of 0 (no error)
int 80h