home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22796 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.2 KB  |  45 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!haven.umd.edu!wam.umd.edu!joel
  3. From: joel@wam.umd.edu (Joel M. Hoffman)
  4. Subject: Re: DOS emulation
  5. Message-ID: <1993Jan5.174435.3669@wam.umd.edu>
  6. Sender: usenet@wam.umd.edu (USENET News system)
  7. Nntp-Posting-Host: rac2.wam.umd.edu
  8. Organization: University of Maryland, College Park
  9. References: <79132@hydra.gatech.EDU>
  10. Date: Tue, 5 Jan 1993 17:44:35 GMT
  11. Lines: 32
  12.  
  13. In article <79132@hydra.gatech.EDU> gt8134b@prism.gatech.EDU (Howlin' Bob) writes:
  14. >wolff@liberator.et.tudelft.nl (Rogier Wolff) writes:
  15. >
  16. >>At first video emulation need only be at 80x25 textmode. In the end it
  17. >>shouldn't be too hard to detect "going into graphics", and emulate that
  18. >>too. It might become a little slow, but it should at least work....
  19. >
  20. >That becomes difficult.  I plan on getting around to it, but it's not the
  21. >most urgent thing right now.  I would be most pleased if you implemented
  22. >such a thing, however.  Please mail me any suggestions/diffs you have.
  23.  
  24. I see two possibilities:  One, giving the DOS program full control of
  25. the screen, for SVGA graphics.  The program could do whatever it
  26. wanted, and so the VC code would have to be augmented to save/restore
  27. the complete state of the video card.  This would be a good thing,
  28. anyway, because it will let one (or more!) VC's run X, and the others
  29. run in text mode.  It will let one VC display text in 25x80, the other
  30. in 43x132 (or whatever).  CMU already has code to save/restore VGA
  31. cards, and has augmented the code to handle some SVGA regs., I
  32. beleive.  The only problem with this approach is that I don't think
  33. graphics programs could run in the background.  Some screen writes
  34. would have to block until the VC on which the process is running is
  35. selected.  Kludgy, but not terrible.
  36.  
  37. The second possibility is to emulate the SVGA card.  This would be
  38. very nice, as it would allow a DOS program that expects to use the
  39. whole screen to run in an X window.  Cool.  But, I suspect this will
  40. be VERY VERY slow.  Many application write directory to the screen.
  41. The emulator would have to watch the screen, note any changes,
  42. translate those changes into system calls, and execute those calls.
  43.  
  44. -Joel
  45.