NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: rospo2008 on October 31, 2018, 01:35:51 AM

Title: Linux - nasm return no message , no output file . nothing
Post by: rospo2008 on October 31, 2018, 01:35:51 AM
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: [Select]
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


OS linux mint 18.2
Title: Re: Linux - nasm return no message , no output file . nothing
Post by: rospo2008 on October 31, 2018, 05:09:48 PM
Question updated
Title: Re: Linux - nasm return no message , no output file . nothing
Post by: Frank Kotler on October 31, 2018, 06:28:13 PM
Welcome to the Forum.

Works for me. Try it again.

Best,
Frank

Title: Re: Linux - nasm return no message , no output file . nothing
Post by: rospo2008 on October 31, 2018, 10:32:45 PM
Welcome to the Forum.

Thanks
Works for me. Try it again.

Best,
Frank

an user from DevDungeon-com helped me.
It was my fault. I messed up the nasm's installation.

Thanks