delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/11/11/04:00:08

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Str|mberg <ams AT sister DOT ludd DOT ltu DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GAS ".code16" and DJASM quirks ...
Date: Wed, 11 Nov 2009 08:48:36 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 22
Message-ID: <hddtp4$g9r$1@aioe.org>
References: <0008cd2e-63c9-43cb-82d4-11aece7c209f AT c3g2000yqd DOT googlegroups DOT com>
NNTP-Posting-Host: qaUouysPpK6BiNgOdUVuCg.user.aioe.org
X-Complaints-To: abuse AT aioe DOT org
X-Notice: Filtered by postfilter v. 0.8.0
Cancel-Lock: sha1:6T6uye840suUTFGw5GPUuggibYM=
User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (SunOS/5.9 (sun4u))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Rugxulo <rugxulo AT gmail DOT com> wrote:
> 3). ".org 0x100" doesn't seem to do anything useful (adds a bunch of
> zero bytes at the beginning), nor does ".data" (adds bunch of crud to
> end)

How do you link? If you use GNU ld you need to mess with linker scripts.
I've written small .com files using gas and ld. I've also recoded
FDXMS using gas and ld.

I remember it was hard to get rid of the extra zeroes before the real
code. (Bug in ld, perhaps?) I think I just skipped .org 0x100 and
instead used nothing or .org 0 and let ld with the correct script deal
with it.


If you wait and are lucky I might dig up some of what I've written.


--

MartinS

- Raw text -


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