64K Segments

Started by
0 comments, last by oWen 22 years, 1 month ago
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?
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=-
-------------------"Pointer?" -Anonymous-=Xelius=-

This topic is closed to new replies.

Advertisement