Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

oWen

64K Segments

This topic is 5941 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Programs running in 16 bit real and protected mode are divided into segments that can not be larger than 64K. What exactly does that mean? I understand the modes, but I don''t understand what part of the program can''t be larger than 64K. Is it the program itself, or is its stack split into 64k segments? Could someone elaborate for me?

Share this post


Link to post
Share on other sites
Advertisement
If I remember correctly, the memory models tell you what this means. For example, the small memory model only allows you to have one segment, 64k in size, for both your instructions and your data. The medium memory model allows for multiple code and data segments, i.e., you can have a few segments for your instructions, and a few segments for data. Hope this helps.

-------------------
"Pointer?????"
-Anonymous

-=Xelius=-

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!