From Mike Bilow · 1996-04-05 15:41 · #73604 in EMULATE
In reply to Segemented Mem Addressing by Chris Neale
Chris Neale wrote in a message to All: CN> Anyway, the quibbles I have is that - how does it all work. I CN> get what I have said above. I see the problem. I don't CN> understand the solution, segmented addressing, it suggests and CN> am lost as to how the segment:offset system works. The other CN> thing is that - is this really a problem with todays 32/64 bit CN> CPUS. Nevertheless I've still seen the system used in assembler. There are two basic situations: real mode and protected mode. In real mode, all addresses reside in the 20-bit address space of 1 MB. The 20-bit address is constructed by shifting the 16-bit segment register contents by 4 bits to the left and then OR'ing it with the 16-bit general register. In protected mode, the segment register just contains a magic number that is an index into a table maintained by the operating system, which keeps track of where the memory corresponding to that segment is stored. -- Mike --- * Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)