Newbie asm question
From: Johann Strauss (jhatapata_at_hotmail.com)
Date: 03/24/04
- Next message: Frank Kotler: "Re: lcm"
- Previous message: THAW: "Re: Hey Mr. Hyde!"
- Next in thread: Bx.C: "Re: Newbie asm question"
- Reply: Bx.C: "Re: Newbie asm question"
- Reply: Eric: "Re: Newbie asm question"
- Reply: _at_(none): "Re: Newbie asm question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Mar 2004 21:39:46 -0500
Hello all,
I'm new to the whole assembly thing, having done other languages for many
years I decided I wanted to learn something with a bit more control, so to
speak.
I've been working on assembly for a little while with Motorola
microcontrollers without any real problems, yet I'm having some trouble
compiling on the x86 platform. I've downloaded the win32 port of nasm
(simply because I like it on my linux box) yet on either platform, I get
similar compile errors.
The code I'm trying is:
#make_COM#
ORG 100h
.model small
.stack
.data
Message db "hi$"
mov dx,OFFSET Message
mov ah,9
int 21h
mov ax,4c00h
int 21h
END start
I got the code from a tutorial (specifically Gavin's Guide to 80x86
Assembly) and when compiled, I get the errors:
prog.asm:1: label or instruction expected at start of line
prog.asm:4: parser: instruction expected
prog.asm:4: attempt to define a local label before any non-local label
prog.asm:5: attempt to define a local label before any non-local label
prog.asm:6: attempt to define a local label before any non-local label
prog.asm::10: comma or end of line expected
prog.asm::16 parser: instruction expected.
Needless to say, I'm confused. It won't compile with nasm or masm, but will
with the Emu8086 emulator, which seemed odd to me. Am I dealing with a bad
tutorial?
Any help would be appreciated, and if any of you have suggestions regarding
books, ebooks or tutorials that you feel would be helpful to a beginner
would be appreciated as well
Thanks
- Next message: Frank Kotler: "Re: lcm"
- Previous message: THAW: "Re: Hey Mr. Hyde!"
- Next in thread: Bx.C: "Re: Newbie asm question"
- Reply: Bx.C: "Re: Newbie asm question"
- Reply: Eric: "Re: Newbie asm question"
- Reply: _at_(none): "Re: Newbie asm question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|