delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/2003/12/08/23:20:34

X-Authentication-Warning: delorie.com: mail set sender to opendos-bounces using -f
X-Authentication-Warning: piglet.mos.ru: uubelous set sender to belous!belous.munic.msk.su!ark using -f
>Received: by belous.munic.msk.su (dMail for DOS v2.7.10, 24Jul03);
Tue, 9 Dec 2003 07:18:27 +0300
To: opendos AT delorie DOT com
X-Comment-To: Jacob Brewer <Jacob DOT Brewer AT oasisgamingusa DOT com>
References: <213B4DD669E9D31198660090277565633D9C58 AT EXCHANGE>
Message-Id: <2.7.10.AQNL.HPM1AP@belous.munic.msk.su>
From: "Arkady V.Belousov" <ark AT belous DOT munic DOT msk DOT su>
Date: Tue, 9 Dec 2003 07:18:25 +0300 (MSK)
X-Mailer: dMail [Demos Mail for DOS v2.7.10]
Subject: RE: DR Dos on a P4
MIME-Version: 1.0
X-MIME-Autoconverted: from 8bit to quoted-printable by box.mos.ru id hB94Jco22940
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id hB94JgJl019720
Reply-To: opendos AT delorie DOT com

Hi!

8-δΕΛ-2003 16:46 _Jacob DOT Brewer AT oasisgamingusa DOT com (Jacob Brewer) wrote to
"'opendos AT delorie DOT com'" <opendos AT delorie DOT com>:

JB> Please bear with me, this is my first pure assembler program (and hopefully
JB> my last!)
JB> now I am running the commands as follows:
JB> bin\ml /AT /coff /c clrvdisk.asm
----------------^^^^
JB> link -subsystem:console /entry:START  -out:clrvdisk.com clrvdisk.obj
----------^^^^^^^^^^^^^^^^^

     This should make Win32-related program, whereas clrvdisk.asm is a .com
file 16-bit for 16-bit DOS mode. I don't know option of MASM, nor MS LINK,
because myself use TASM/TLINK. Instead changing (adapring for MASM) source,
you may download (free, GPL), NASM - http://nasm.sf.net/.

JB> and receiving the folowing output
JB> C:\COPYOF~1>link -subsystem:console /entry:START -out:clrvdisk.com clrvdisk.obj
JB> Microsoft (R) Incremental Linker Version 6.00.8447
JB> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
JB> LINK : error LNK2001: unresolved external symbol _START
JB> clrvdisk.com : fatal error LNK1120: 1 unresolved externals

     In MASM/TASM main program module should be ended by END directive with
following starting name. In source, which was present, there was no END with
following name (especially "START", as you point for linker). This is
because NASM for .COM programs assumes starting point at ORG 100h without
extra lables. Again: change source or use NASM.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019