nasm segment directive
- From: Timo Schneider <timo.schneider@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 11 Oct 2005 12:08:41 +0000 (UTC)
Hello,
If I try to assemble to following code with nasm, I get the errors:
u2.asm:5: error: symbol `.data' undefined
u2.asm:16: error: phase error detected at end of assembly.
I read the nasm manual but I still have no clue what I am doing wrong. I
would be pleased if someone could give me a hint how to make the code
work.
Code:
SEGMENT .data
text db 'Hello world$'
SEGMENT .code
mov ax, .data
mov ds, ax
mov dx, [text]
mov ah, 09h
int 21h
mov ah, 08h
keyin: int 21h
cmp al, 27
jne keyin
mov ah, 04ch
mov al, 0h
int 21h
Regards,
Timo
.
- Follow-Ups:
- Re: nasm segment directive
- From: emu8086
- Re: nasm segment directive
- From: emu8086
- Re: nasm segment directive
- From: Frank Kotler
- Re: nasm segment directive
- Prev by Date: Re: Assembly Language - Mathematics WITHOUT maths coprocessor
- Next by Date: Re: nasm segment directive
- Previous by thread: Newbie question (please help me, I'm desperate!)
- Next by thread: Re: nasm segment directive
- Index(es):
Relevant Pages
|