delorie.com/archives/browse.cgi | search |
From: | "Matthew Smith" <matt AT the-good-stuff DOT freeserve DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Using AS (GAS) to produce COM files - is it possible? |
Date: | Sat, 25 Nov 2000 05:16:21 -0000 |
Organization: | Customer of Energis Squared |
Lines: | 43 |
Message-ID: | <8vnig9$5sl$2@newsg1.svr.pol.co.uk> |
References: | <8vn57g$rol$1 AT lust DOT ihug DOT co DOT nz> |
NNTP-Posting-Host: | modem-40.protactinium.dialup.pol.co.uk |
X-Trace: | newsg1.svr.pol.co.uk 975129929 6037 62.136.65.40 (25 Nov 2000 05:25:29 GMT) |
NNTP-Posting-Date: | 25 Nov 2000 05:25:29 GMT |
X-Complaints-To: | abuse AT theplanet DOT net |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
As far as I am aware AS/GAS is 32 bit only .COM files are 16 bit only (again AFAIK) they are similar to DOS 16 .EXE files but always run at address $100 ( at least , when dos was still cp/m ) are you compiling to DOS 16 or DOS 32 with NASM? Fairbairn Family <lgcl01 AT es DOT co DOT nz> wrote in message news:8vn57g$rol$1 AT lust DOT ihug DOT co DOT nz... > 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. > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |