home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT102.ZIP / SIMCGA.DOC < prev    next >
Text File  |  1987-01-18  |  5KB  |  113 lines

  1.  
  2.     SIMCGA - Simulate CGA with Hercules Monochrome Card
  3.  
  4.     Written in October 1986 by
  5.         Chuck Guzis
  6.         153 North Murphy Ave.
  7.         Sunnyvale, CA  94086
  8.  
  9.     First Edition, October 1986
  10.     First revision, January 1987
  11.  
  12. Suggestions and bug reports will be appreciated.
  13.  
  14.  
  15. ===========================================================================
  16.  
  17.     NOTE TO USERS:
  18.  
  19.     This document and SIMCGA, Copyright (C) 1987 by C. P. Guzis
  20.             All rights reserved.
  21.  
  22.     SIMCGA may be freely copied and distributed for one-time personal
  23.     use.  Under no circumstances may SIMCGA be sold or used for commer-
  24.     cial purposes without the express written consent of C. P. Guzis.
  25.     Further, C. P. Guzis provides this package on an "as-is" basis
  26.     and does not warrant the performance or incidental effects of
  27.     this program.
  28.  
  29. ===========================================================================
  30.  
  31. This memory-resident utility allows you to "fool" most software requiring
  32. a Color Graphics Adapter into using your Hercules (or compatible) mono-
  33. chrome adapter in the graphics mode.  Graphics images are reproduced
  34. in normal aspect ratio, using as much of the available screen area as
  35. is possible.
  36.  
  37. The trick used here is to program the HGC to display more lines of 3
  38. lines per character time instead of 4 (The CGA displays 2).  A service
  39. routine hooked into the hardware timer interrupt (int 8) copies one line
  40. to the third displayed line to give a filled-out image.
  41.  
  42. The method used here works and results in some useful color gray-scaling,
  43. owing to incidental "dithering", but it does have a few minor drawbacks -
  44.  
  45.     1.    Since the copy operation occurs in real-time concurrent with the
  46.     display, some "ghosting" on moving images is inevitable.  The
  47.     copy rate has been selected so that some CPU capacity will be
  48.     left for doing useful work.  "Turbo" PC's and the PC/AT might
  49.     be able to copy larger pieces of the screen more quickly, but
  50.     this is a one-size-fits all program.
  51.  
  52.     2.    Since the image is expanded vertically by 50%, small line details
  53.     will be affected by the line doubling technique.  This is mostly
  54.     an aesthetic annoyance.
  55.  
  56.     3.    Those utilities which "read" the CGA registers at 03d4 et seq.
  57.     are going to find no registers to read.     This does not seem to
  58.     affect many programs.
  59.  
  60.     4.    40x25 text mode is not supported - the hardware just isn't there.
  61.     This mode is mapped into 80x25 and again, doesn't seem to bother
  62.     many utilities.
  63.  
  64.     5.    When in text mode (modes 0, 1, 2 and 3), the normal monochrome
  65.     character attributes are not available - this is a problem with
  66.     the way the HGC handles the attribute memory map.
  67.  
  68.     6.    The multiiple text page feature     as used by the CGA is not
  69.     supported with SIMCGA.    A lack of hardware here is the problem,
  70.     but perhaps a software "swap" could be engineered to work.  Thus
  71.     far, however, I have heard of no production code which uses this
  72.     feature.
  73.  
  74.     7.    Those utilities which bypass the BIOS and write the 6845 registers
  75.     directly to obtain certain effects will not work because of the
  76.     same reason as number 3 above - the registers do not exist!
  77.  
  78.     8.    Trying to use this program with a real CGA card also installed
  79.     gives very strange results owing to the contention for the same
  80.     memory space between the HGC and CGA.
  81.  
  82.     9.    A "native" HGC graphics program which programs the HGC registers
  83.     directly may leave you in text mode with no text displayed!  This
  84.     is because the HGC was left displaying text from its second page,
  85.     while the BIOS is busily writing in the first page, or vice versa.
  86.     Use "SETMONO" before running "native" HGC programs, or, if you
  87.     forgot, run "SETMONO" afterwards and things will be put right again.
  88.  
  89.     10. The second edition of this program allows a clean Code-Alt-Del
  90.     reboot.
  91.  
  92.     11. In text modes, the copying operation is inactive, so your PC will
  93.     run full-speed while displaying text.
  94.  
  95. Quite a few programs have been tested, including Flight Simulator, PC-CAD,
  96. BASICA and some games with no hitches.    Yes, for the first time, you can
  97. run *all* the games that came with your PC-DOS on the supplemental programs
  98. diskette.
  99.  
  100. This package contains three programs - SIMCGA, SETCGA, SETMONO.     SIMCGA
  101. is the memory-resident part and must be run before the CGA simulation
  102. feature is available.  SETMONO will restore the monochrome-only mode;
  103. SETCGA will reset CGA compatibility after a SETMONO.  If this feature
  104. is used routinely, you might want to put this in your AUTOEXEC.BAT file -
  105.  
  106.     SIMCGA
  107.     SETMONO
  108.  
  109. and then run SETCGA when you need the CGA feature.
  110. ------------------
  111. Some of the product names used in this document are probably registered
  112. trademarks of IBM, Hercules or Microsoft or some other vendor.
  113.