delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/24/20:51:33

From: "Fairbairn Family" <lgcl01 AT es DOT co DOT nz>
Newsgroups: comp.os.msdos.djgpp
Subject: Using AS (GAS) to produce COM files - is it possible?
Date: Sat, 25 Nov 2000 14:31:56 +1300
Organization: ihug ( New Zealand )
Lines: 26
Message-ID: <8vn57g$rol$1@lust.ihug.co.nz>
NNTP-Posting-Host: p32-max2.inv.ihug.co.nz
X-Trace: lust.ihug.co.nz 975116337 28437 203.173.222.224 (25 Nov 2000 01:38:57 GMT)
X-Complaints-To: abuse AT ihug DOT co DOT nz
NNTP-Posting-Date: Sat, 25 Nov 2000 01:38:57 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

The subject heading says it all.

I use AS as an assembler for Linux, and I am now creating a port of my
program to DOS and need to assemble some asm code into a MSDOS Com file. All
I can figure out is how to output into coff/a.out formats.

At the moment I can't even get a simple "hello world" asm program working
under DOS.

I have rewritten the code into Intel format and it assembles/executes fine
when assembled via NASM (so the code should work - ie the system calls are
available and they do what they are supposed to do) but I would like to use
AS if possible to keep all the ports similiar in their requirements.

I've tried various LD / Objcopy commands etc with out success. Could I use
objcopy with a the "binary" output target to do what I want somehow?

Failing that can someone give me an example asm project which will assemble
with AS under DOS?

Thanks,
Christopher Fairbairn.


- Raw text -


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