Hello guys !
I've just started to learn Assembler and I needed an assembler. My choice was nasm, because of the same syntax as masm and tasm (at least that's what i heard ^^)
I used apt-get to install nasm, everything ok until here.
I wrote my first script (copied it from a book)
Then i wanted to use nasm to assemble (?) it, but it didn't work that well.
This is what the terminal told me
# nasm asm1.asm
asm1.asm:1: error: parser: instruction expected
asm1.asm:6: error: symbol `DATEN' redefined
asm1.asm:6: error: parser: instruction expected
asm1.asm:8: error: parser: instruction expected
asm1.asm:10: error: parser: instruction expected
asm1.asm:15: error: comma or end of line expected
asm1.asm:25: error: symbol `CODE' redefined
asm1.asm:25: error: parser: instruction expected
asm1.asm:27: error: parser: instruction expected
alright, doesn't look too good
this is my script:
DATEN SEGMENT
Meldung db "Assemler blablabla"
db "$"
DATEN ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATEN
Anfang: mov ax,DATEN
mov ds,ax
mov dx,offset Meldung
mov ah,9
int 21h
mov ah,4Ch
int 21h
CODE ENDS
END Anfang
Can anybody tell me, what was wrong ?