Author Topic: NASM error: more than one input file specified  (Read 6549 times)

Offline Momo

  • Jr. Member
  • *
  • Posts: 2
NASM error: more than one input file specified
« on: April 29, 2012, 10:13:25 AM »
hey i am a new learner of nasm ,,can any body please help me out ,,

Code: [Select]
; a program to add three numbers using registers
[org 0x100]

mov ax,5 ; load first number in ax
mov bx,10 ; laod second number in bx
add ax,bx ; accumulate sum in ax
mov bx,15 ; load third number in bx
add ax,bx ; accumulates sum in ax

mov ax,0x4c00 ; terminates program
int 0x21

when i type nasm ex02.asm-l ex02.lst-o ex02.com 
it gives me the same error i.e.;  NASM error: more than one input file specified ..
please help ...
« Last Edit: April 29, 2012, 03:32:50 PM by Frank Kotler »

Offline Cyrill Gorcunov

  • NASM Developer
  • Full Member
  • *****
  • Posts: 179
  • Country: 00
Re: NASM error: more than one input file specified
« Reply #1 on: April 29, 2012, 12:48:18 PM »
I guess you need something like
Code: [Select]
nasm  -fbin ex02.asm -l ex02.lst -o ex02.com

Also I guess you need to check out http://www.nasm.us/xdoc/2.10/html/nasmdo12.html#section-12.1.3

Offline Momo

  • Jr. Member
  • *
  • Posts: 2
Re: NASM error: more than one input file specified
« Reply #2 on: April 29, 2012, 02:36:57 PM »
oh thanks tons !! it worked thank God .. :)