home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / misc / 6597 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.2 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!rutgers!news.cs.indiana.edu!nstn.ns.ca!ac.dal.ca!francis
  2. From: francis@ac.dal.ca
  3. Newsgroups: comp.os.msdos.misc
  4. Subject: Re: Real mode / Protected mode definition?
  5. Message-ID: <1992Dec16.223822.9641@ac.dal.ca>
  6. Date: 17 Dec 92 02:38:22 GMT
  7. References: <1go1kjINN986@mizar.usc.edu>
  8. Organization: Dalhousie University, Halifax, Nova Scotia, Canada
  9. Lines: 26
  10.  
  11. > I'd appreciate someone providing a definition of real mode and
  12. > protected mode.  I thought I understood the difference - until I
  13. > needed to explain it someone.  I looked in the MS-DOS 5.0 manual and
  14. > found nothing.  Is this something that usually involves Windows only?
  15. > The question came to me from someone who just bought a new compiler
  16. > that said he could compile either for real or protected mode.
  17.  
  18. The number of address lines the microprocessor can use depends on the mode the 
  19. PC is running in.  The 8086 only had one mode, and in it all 20 address lines 
  20. are active (giving it 2x10e20, or 1Mb RAM access).  The '286 (24 address 
  21. lines=16Mb RAM), '386 & '486 (32 address lines=4Gb RAM) can use all of their 
  22. address lines, but only when they are running in *protected mode*.  DOS does 
  23. not run in protected mode; DOS will only run in these processors' *real* mode,
  24. which emulates an 8086.  In real mode, only the first 20 address lines are 
  25. active.  A 286, 386 or 486 running in real mode (running DOS) is limited to 
  26. 1Mb of memory, just like an 8086.  The 386 and 486 support a third mode called 
  27. *virtual 86 mode*, which is similar to real mode, except that it is possible 
  28. for DOS to gain access to more than 1Mb of memory because of the quirks of 
  29. virtual 86 mode.  When run in protected mode, each program can be allocated a 
  30. certain section of memory, which other programs cannot touch, hence the name
  31. "protected mode."  PM also allows the use of extended memory, virtual memory 
  32. and performs multitasking of programs.  DOS does not run in protected mode, so
  33. does not allow any of these features either, but an O/S such as OS/2, Unix or 
  34. the to be released Windows NT, which are true 32 bit operating systems, take 
  35. full advantage of the uP power.  Windows 3.1 is *not* an O/S...it still needs 
  36. DOS to do most of the work.
  37.