Mail Archives: djgpp/1999/02/23/22:41:04
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 -