Message-Id: <199911021527.RAA14458@ankara.Foo.COM> From: "S. M. Halloran" Organization: User RFC 822- and 1123-compliant To: Nassim Bouayad , djgpp AT delorie DOT com Date: Tue, 2 Nov 1999 18:31:52 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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 Precedence: bulk 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,