Archived

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

oWen

64K Segments

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