djgpp memory addressing...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
J. Weeks

djgpp memory addressing...

Post 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
Chase

RE:djgpp memory addressing...

Post 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.
Post Reply