www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/23/22:41:04

From: Dave Bird <dave AT xemu DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I just wanted to assemble this old program under NASM....
Date: Wed, 24 Feb 1999 01:46:16 +0000
Organization: very little
Message-ID: <kCW7FICon102Ew0P@xemu.demon.co.uk>
References: <j6g6rFAyDt02Ew2R AT xemu DOT demon DOT co DOT uk>
<fpoFvDAT+u02Ewgm AT xemu DOT demon DOT co DOT uk> <199902231841 DOT NAA15033 AT envy DOT delorie DOT com>
NNTP-Posting-Host: xemu.demon.co.uk
X-NNTP-Posting-Host: xemu.demon.co.uk:158.152.196.209
X-Trace: news.demon.co.uk 919826823 nnrp-04:10874 NO-IDENT xemu.demon.co.uk:158.152.196.209
X-Complaints-To: abuse AT demon DOT net
MIME-Version: 1.0
X-Newsreader: Turnpike (32) Version 4.01 <dQumtnY$x4rJ2u5tL5fS$n2vuP>
Lines: 50
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <199902231841 DOT NAA15033 AT envy DOT delorie DOT com>, DJ Delorie writes:
>>
>>  But mostly it carps on about not supporting
>>  non-32bit-relocations.  Does this mean I can't assemble
>>  and debug such a program under DJGPP at all :-<  ??
>
>DJGPP programs *start* in 32-bit mode.  You can't switch to/from real
>mode the way you're thinking in a djgpp program.
 You mean "no program which does so can be defined in assembler, 
 assembled and linked, then fed to GDB......" :-?
 All I'm trying to do is work with ASM code that does its own PMode
 start-up, in whatever way is necessary  for debugging it under GDB
 as a PMode debugger (because other debuggers won't work: CV is 
 real-mode only and TD interferes with memory allocation).

 Maybe I have the wrong idea here.  I know linking a 'C' program
 from the compiler is set-up to produce a "stub" loader plus the
 code effectively in separate overlay,  containing what is already
 a 32bit segment running in a DMPI client, and has a transfer
 buffer for DPMI calls that e.g. read into a block of memory 
 under 640K. 

 But I thought that assemble + link + debug setup could just....
 assemble and debug a program.  Any program, doing anything, if
 you write it yourself in assembler.  Am I wrong to assume this?
>
>>  Here is the program, only 150 lines in all, 
>>  as MIME: [please set margin to 7ins before reading]
>
>Inches?  What are those?  Sorry, my display doesn't support inches.
 about 90 characters I guess

>Also, it wasn't mime.
 this will surprise the authors of my newsreader.
 The reason for attachment was width, not length:  
 assembler source is usually too wide for direct usenet posting.
>
>> begin 644 Xx1.s
>Please - never send attachments!

 Sorry; I won't do so again. I can always web examples instead.



-- 
   ^-^-^-@@-^-;-^   http://www.xemu.demon.co.uk/
        (..)__u     news:alt.smoking.mooses

       happy as a clam at high tide -. <_" .-._.-.

- Raw text -


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