Hi Peter,
you can either download the reference manual from Intel (
http://www.intel.com/design/pentium4/ma ... ex_new.htm) or browse though it in this online version (my.tele2.ee/mtx/i386/manual.htm - pretty usefull if you want to quote something on a message board). Anyway, the reference manual might be usefull to look thinks up but it can't replace a good tutorial or a messageboard.
When I make a segment model in PMODE, The maximum amount of one segment model is the maximum of the LIMIT, that is 16MB.
A segment in pmode can span the whole 4GB address-space. First of all it should be said that 20bits are used to describe the limit (my.tele2.ee/mtx/i386/chp06-03.htm#06-03 - have a look at the ASCII art). These 20bits can, of course, only descibe 1MB. In order to support limits larger than 1MB a small trick is used. If a special attribute bit in the descriptor is set (I think it's the 'G'-bit) the value in the limit-field is in 4kb (2^12) pages. The imit is basically multiplied with 4096.
20bits + 12bits = 32 bits
examples:
G-bit = 0
limit = 0x100
-> segment limit is 0x100 (=245bytes - sorry)
G-bit = 1
limit 0x100
-> segment limit is 0x100*0x1000 = 0x100000 (=1MB)
regards,
gaf