Page 1 of 1

djgpp memory addressing...

Posted: Tue Apr 24, 2001 11:00 pm
by J. Weeks
I'm curious... when DJGPP see something like this:

memmory[a] = 0;

How does djgpp form the asm for that?

I'm asking, 'cuz certain code that's worked before
isn't working in my new OS, and I'm wondering if
DJGPP is _assuming_ a certain environment.

I mean, I've created my own IDT and GDT, but I'm wondering
if DJGPP is creating code based on what it _thinks_ the
IDT and GDT are... is this possible?

If so, how can I fix this? How can I let DJGPP
know _this_ is what my IDT looks like, _this_ is what
my GDT looks like.

OR, does anybody know what kind of a setup DGJPP
expects?

Thanks,
Jeff

RE:djgpp memory addressing...

Posted: Wed Apr 25, 2001 11:00 pm
by Chase
>On 2001-04-25 21:53:23, J. Weeks wrote:

>OR, does anybody know what kind of a setup DGJPP
>expects?

32 bit flat mode, in other words it doesn't use selectors.
And your code and data should point to the same mem area.
You can always output asm with DJGPP, it'll be att syntax but
it shouldn't be too hard to figure out what's going on.