From Chris Neale · 1996-03-30 05:46 · #73518 in EMULATE
Hi, Hope somone can help. I've just ploughed halfway through a few chapters in DOS Programmers Reference 2 only to hit a metaphorical stone. It describes the intricasies of memory addressing, allowing the 8086 to address 20 bits (1M) of memory using only the 16 register pins. It says that on its own the 16 register pins can only address 65535 bytes of memory, so segmented memory is needed in order to fit 20 bits of an address into 16 bits of a register. True, I think. It's logical. Anyway, the quibbles I have is that - how does it all work. I get what I have said above. I see the problem. I don't understand the solution, segmented addressing, it suggests and am lost as to how the segment:offset system works. The other thing is that - is this really a problem with todays 32/64 bit CPUS. Nevertheless I've still seen the system used in assembler. I'd be grateful if someone could explain how it works and whether knowing how it works would ever be of use to me in the futur, in the light of faster processors with wider registers and more addressing capabilities. Maybe I should upgrade my book. It was, I have to admit, published in 1989, a long time ago in computing terms, giving DOS and BIOS routines for DOS 4.1-. Nevertheless, still very useful, written by a guy who must be in his sixties now, who claims to spend his free time disassembling operating systems for kicks. Grateful for some help on this topic. Many thanks, Chris --- * OLX 2.1 TD * Man who fights with wife all day gets no piece at night --- WILDMAIL!/WC v4.12 * Origin: Ooh! LONDON [LiveChat-MultiLines] 0181-395-3108 (2:254/233.0)