[comp.os.msdos.programmer] MASM and LINK errors, Help needed.

kr@asacsg.mh.nl (Koos Remigius) (09/20/90)

I need some help with Microsoft assembler.
I am learnig to write some small simple programs, but I have
some errors when assembling and linking.

If I enter : MASM TEST.ASM /N /T /Z, TEST ,TEST /B63;
where:
/N	Supresses tables in listing file.
/T	Supresses messages for succesfull assembly.
/Z	Displayes errors lines on the screen.
/B63	Changes the size of the file buffer to 63k.

Then I get the message: Illegal line , from MASM.

If I enter: LINK TEST.OBJ /DOSSEG,TEST.EXE,TEST.MAP 
where:
/DOSSEG	Specifies MS-DOS segment ordering.

Then I get the message, /DOSSEG , illlegal switch.

I have those commands from a magazine, and I am sure that I am
doing something wrong, but I don't know what.

I hope that one of you has an anser for me.
Thanks in advance.

Koos Remigius.

-- 
Koos Remigius			      kr@mh.nl via internet backbones
Asac Nederland B.V	              uucp: ..!{uunet,hp4nl}!mh.nl!kr
Coencoop 7, 2741 PG Waddinxveen,  The Netherlands
---------------- "Still crazy after all these years" ----------------

richgi@microsoft.UUCP (Richard GILLMANN) (09/22/90)

In article <476@asacsg.mh.nl> kr@asacsg.mh.nl (Koos Remigius) writes:
|I need some help with Microsoft assembler.
|I am learnig to write some small simple programs, but I have
|some errors when assembling and linking.
|
|If I enter : MASM TEST.ASM /N /T /Z, TEST ,TEST /B63;
|
|Then I get the message: Illegal line , from MASM.
|
|If I enter: LINK TEST.OBJ /DOSSEG,TEST.EXE,TEST.MAP 
|
|Then I get the message, /DOSSEG , illlegal switch.
|
|I have those commands from a magazine, and I am sure that I am
|doing something wrong, but I don't know what.

It matters which versions of MASM and LINK you are using, but just
as a suggestion, try

    MASM TEST;
    LINK TEST/DOSSEG;

You probably don't need the /DOSSEG.  Make sure you use the version
of LINK that came with MASM.