[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nasm and ld and the question: how to make TASM-code work and how to link correctly
- To: email@example.com
- Subject: nasm and ld and the question: how to make TASM-code work and how to link correctly
- From: Rembrandt <firstname.lastname@example.org>
- Date: Sat, 21 Feb 2004 01:48:29 +0100
I would learn ASM (again) and so I wrote a little testprogram wich works well with my MASM.
mov ah,01h ;read keyboard and took it to
int21h ;ah and print it to the screen
This is an example ASM-Programm of my MASM-Book and so I used nasm in this way:
nasm -t test.asm
test.asm:1: error: attemp to define a local label before any non-local labels
test.asm:1: error: parser: instruction exspected
test.asm:2: error: attemp to define a local labe before any non-local labels
The complete segment-defination (and co) is declared in chapter 24 in my book.
But the programs there are too complicated for me now.
So what could I do to tell nasm what .code means and what .model small is?
And how do I link correctly after nasm accept the file?
Just ld test.o ?
[demime 0.98d removed an attachment of type application/pgp-signature]