assembler
I tried nasm as a linux assembler and I created a test file to see if it works.
My test.asm looks like this:
.model small
.stack 10
.data
mesaj db 'exemplu program$'
.code
start:
mov ax, @data
mov dx, ax
mov dx, offset mesaj
mov ah, 9
int 21h
mov ax, 4c00h
int 21h
end start
unfortunately, I received errors:
[ti@localhost Desktop]$ vi test.asm
[ti@localhost Desktop]$ nasm -o test -a test.asm
test.asm:1: error: attempt to define a local label before any non-local labels
test.asm:1: error: parser: instruction expected
test.asm:2: error: attempt to define a local label before any non-local labels
test.asm:2: error: parser: instruction expected
test.asm:3: error: attempt to define a local label before any non-local labels
test.asm:9: error: comma or end of line expected
test.asm:14: error: parser: instruction expected
[ti@localhost Desktop]$
How can I fix these errors?
Thanks!
|