home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / ibm / pc / hardware / 23498 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.sys.ibm.pc.hardware
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!maccs!mcshub!csx.cciw.ca!hcp
  3. From: hcp@csx.cciw.ca (H.C. Pulley)
  4. Subject: Re: 160X200X16 on CGA
  5. Organization: Canada Centre for Inland Waters
  6. Date: Sat, 5 Sep 1992 12:22:04 GMT
  7. Message-ID: <1992Sep5.122204.10505@csx.cciw.ca>
  8. References: <1992Sep5.091308.25174@nuscc.nus.sg>
  9. Lines: 35
  10.  
  11. In article <1992Sep5.091308.25174@nuscc.nus.sg> isc30108@nusunix3.nus.sg (AMBAT SASI S/O PALISSERY P) writes:
  12. >i have little knowledge of registers of a CGA card
  13. >but i've heard that it is possible to attain the low mode
  14. >(160 by 200 with 16 colors)
  15. >how does one do that ?
  16. >i have a feeling it's like sending parameters to $3d4 as in VGA
  17. >pls help.
  18.  
  19. [Note: I tried to email this, but failed so I am posting it.]
  20.  
  21. You must set up all the CGA registers by yourself.  There isn't any BIOS
  22. support for this mode.
  23.  
  24. CGA 160x100x16 (not 160x200x16) is actually a text mode where all even bytes
  25. are set to 0DEh which is a vertical bar.  Odd bytes contain a left pixel color
  26. in the high order bits and a right pixel color in the low order bits.
  27.  
  28. Each line requires 160 bytes of storage so the screen needs 16000 bytes.
  29.  
  30. I tried for a while to get the mode set up correctly without success.  The 
  31. documentation on the correct CGA registers is sketchy.  It is not simple as 
  32. there are many registers.  Some must be set up as graphics mode, and some as
  33. text mode, which is confusing.
  34.  
  35. I can give you some code (if I still have it; I think I do) which tries to use
  36. 160x100x16 CGA mode.  It is assembler.  It does not work properly, but you may
  37. be able to get something out of it.
  38.  
  39. Harry
  40.  
  41. -- 
  42.          hcp@csx.cciw.ca           | This message    | It takes all kinds,
  43.    hcpiv@grumpy.cis.uoguelph.ca    | released to the | and to each his own.
  44. -----------------------------------| PUBLIC DOMAIN.  | This thought in mind,
  45.  Stay away from the DOS side Luke! |                 | I walk alone.
  46.