www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/02/12:48:46

Message-Id: <199911021527.RAA14458@ankara.Foo.COM>
From: "S. M. Halloran" <mitch AT duzen DOT com DOT tr>
Organization: User RFC 822- and 1123-compliant
To: Nassim Bouayad <nbouayad AT wanadoo DOT fr>, djgpp AT delorie DOT com
Date: Tue, 2 Nov 1999 18:31:52 +0200
MIME-Version: 1.0
Subject: Re: Problems again with Djgpp and Nasm
In-reply-to: <3819924C.5D2A@wanadoo.fr>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 29 Oct 99, Nassim Bouayad was found to have commented thusly:

[assembly code snipped]

> The problem:
> When I compile the source,there is errors that are the same :
> COFF format doesn't support non 32 bits relocation.
> Ok,but what register must I use to give the offset of RCD to the DOS
> function?EDX instead of DX?Please help me again,

You probably don't want to produce an object in the COFF (.o) format, but 
rather in the OMF (.obj) format?  See Sections 2.1.1 and 6.2 of the NASM 
manual for how to force NASM to produce a certain object format based on 
either the command line (it recognizes default file naming extensions) or 
through assembler directives.  Also you may want to read section 5.1.  
Decide how it is you are going to link this, whether you may be switching 
from protected to real mode, and so on.

> Thanks,


- Raw text -


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