NASM Forum > Using NASM
Linux - nasm return no message , no output file . nothing
(1/1)
rospo2008:
Hi,
I can't create the output file from NASM or get help from nasm -h command ( nasm -h return no message)
When I run nasm -f elf hello.asm -o hello.o , nothing happens. No message or error
The code works in windows 7
any idea pls ?
--- Code: ---section .text
global main ; Il programma inizia da main
main:
mov edx,len ; contiene la lunghezza del messaggio
mov ecx,msg ; contiene il messaggio
mov ebx,1 ; รจ il nostro stdout
mov eax,4 ; numero di chiamata (sys_write) Voglio scrivere !
int 0x80 ; chiamiamo quindi il Kernel
mov eax,1 ; altro numero di chiamata. In questo caso usciamo dal programma
int 0x80 ; quindi chiamiamo il kernel
section .data ; Ecco la sezione di data inizializzati come accennato sopra
msg db 'Hello, world!', 0xa ; contiene la stringa
len equ $ - msg ; calcola la lunghezza della stringa
--- End code ---
OS linux mint 18.2
rospo2008:
Question updated
Frank Kotler:
Welcome to the Forum.
Works for me. Try it again.
Best,
Frank
rospo2008:
--- Quote from: Frank Kotler on October 31, 2018, 06:28:13 PM ---Welcome to the Forum.
--- End quote ---
Thanks
--- Quote from: Frank Kotler on October 31, 2018, 06:28:13 PM ---Works for me. Try it again.
Best,
Frank
--- End quote ---
an user from DevDungeon-com helped me.
It was my fault. I messed up the nasm's installation.
Thanks
Navigation
[0] Message Index
Go to full version