NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started 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 ,,
; 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 ...
-
I guess you need something like
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
-
oh thanks tons !! it worked thank God .. :)