NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: Momo on April 29, 2012, 10:13:25 AM

Title: NASM error: more than one input file specified
Post by: Momo 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 ...
Title: Re: NASM error: more than one input file specified
Post by: Cyrill Gorcunov 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
Title: Re: NASM error: more than one input file specified
Post by: Momo on April 29, 2012, 02:36:57 PM
oh thanks tons !! it worked thank God .. :)