More Assembley
Scott Lanning
slanning at buphy.bu.edu
Mon Jan 31 21:58:37 EST 2000
On Mon, 31 Jan 2000, Anthony J. Gabrielson wrote:
> I have copied a nice small program out of my assembly book that
>won't compile. I was wondering if somebody might know why?
You have to read the NASM docs. You can't just copy a source
written for, say, MASM, and expect it to work for NASM.
(immediately I see for example: NASM doesn't support memory
models (sec. 2.2.5 of docs, e.g.), .DATA should be SECTION .data,
INCLUDE should be %include...) That's why you're getting "instruction
expected", because you're not using instructions that it's expecting.
Also, this looks like a .com program, which I don't think will
work on Linux.
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list