Author Topic: Linux - nasm return no message , no output file . nothing  (Read 15084 times)

Offline rospo2008

  • Jr. Member
  • *
  • Posts: 3
Linux - nasm return no message , no output file . nothing
« 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
« Last Edit: October 31, 2018, 05:16:24 PM by rospo2008 »

Offline rospo2008

  • Jr. Member
  • *
  • Posts: 3
Re: Linux - nasm return no message , no output file . nothing
« Reply #1 on: October 31, 2018, 05:09:48 PM »
Question updated

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Linux - nasm return no message , no output file . nothing
« Reply #2 on: October 31, 2018, 06:28:13 PM »
Welcome to the Forum.

Works for me. Try it again.

Best,
Frank


Offline rospo2008

  • Jr. Member
  • *
  • Posts: 3
Re: Linux - nasm return no message , no output file . nothing
« Reply #3 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