OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 11:27 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: djgpp memory addressing...
PostPosted: Tue Apr 24, 2001 11:00 pm 
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


Top
  
 
 Post subject: RE:djgpp memory addressing...
PostPosted: Wed Apr 25, 2001 11:00 pm 
>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.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 122 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group