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