home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / EGAVGA / VGADOC01.ZIP / CIRRUS.DOC < prev    next >
Encoding:
Text File  |  1991-12-04  |  4.2 KB  |  173 lines

  1.   Cirrus Logic  CL-GD 500/600
  2.  
  3.     CL-GD 510/520
  4.     CL-GD 610/620
  5.  
  6.  
  7.   3C4h index  6  (W):
  8.   bit 0-7  Writing ("Eagle ID" rol 4) will disable extensions.
  9.            "Eagle ID" will enable.
  10.            Reading will return 0 if last write was to disable,
  11.            1 if it was to enable
  12.  
  13.   3C4h index 80h (R/W): Miscellaneous Control 1
  14.  
  15.   3C4h index 81h (R/W): Graphics Position 1
  16.  
  17.   3C4h index 82h (R/W): Graphics Position 2
  18.  
  19.   3C4h index 83h (R/W): Attribute Controller Index
  20.  
  21.   3C4h index 84h (R/W): Write Control
  22.  
  23.   3C4h index 85h (R/W): Timing Control
  24.  
  25.   3C4h index 86h (R/W): Bandwidth Control
  26.  
  27.   3C4h index 87h (R/W): Miscellaneous Control 2
  28.  
  29.   3C4h index 88h (R/W): Horizontal Sync skew
  30.  
  31.   3C4h index 89h (R/W): CGA, HGC Font Control
  32.  
  33.   3C4h index 8Ah (R/W): Reserved
  34.  
  35.   3C4h index 8Bh (R/W): Screen B preset row scan
  36.  
  37.   3C4h index 8Ch (R/W): Screen B start address high
  38.  
  39.   3C4h index 8Dh (R/W): Screen B start address low
  40.  
  41.   3C4h index 8Eh (R): Version Code
  42.  
  43.   3C4h index 8Fh (R): Version Code
  44.  
  45.   3C4h index 90h (R/W): Vertical Retrace Start
  46.  
  47.   3C4h index 91h (R/W): Vertical Retrace End
  48.  
  49.   3C4h index 92h (R/W): Lightpen High
  50.  
  51.   3C4h index 93h (R/W): Lightpen Low
  52.  
  53.   3C4h index 94h (R/W): Pointer Pattern Address High
  54.  
  55.   3C4h index 95h (R/W): Cursor Height Adjust
  56.  
  57.   3C4h index 96h (R/W): Caret Width
  58.  
  59.   3C4h index 97h (R/W): Caret Height
  60.  
  61.   3C4h index 98h (R/W): Caret Horizontal Position High
  62.  
  63.   3C4h index 99h (R/W): Caret Horizontal Position Low
  64.  
  65.   3C4h index 9Ah (R/W): Caret Vertical Position High
  66.  
  67.   3C4h index 9Bh (R/W): Caret Vertical Position Low
  68.  
  69.   3C4h index 9Ch (R/W): Pointer Horizontal Position High
  70.  
  71.   3C4h index 9Dh (R/W): Pointer Horizontal Position Low
  72.  
  73.   3C4h index 9Eh (R/W): Pointer Vertical Position High
  74.  
  75.   3C4h index 9Fh (R/W): Pointer Vertical Position Low
  76.  
  77.   3C4h index A0h (R/W): Graphics Controller Memory Latch 0
  78.  
  79.   3C4h index A1h (R/W): Graphics Controller Memory Latch 1
  80.  
  81.   3C4h index A2h (R/W): Graphics Controller Memory Latch 2
  82.  
  83.   3C4h index A3h (R/W): Graphics Controller Memory Latch 3
  84.  
  85.   3C4h index A4h (R/W): Clock Select
  86.  
  87.   3C4h index A5h (R/W): Cursor (Caret and pointer) Attribute
  88.  
  89.   3C4h index A6h (R/W): Internal Switch Source
  90.  
  91.   3C4h index A7h (R/W): Status Switch Control
  92.  
  93.   3C4h index A8h (R/W): NMI Mask 1
  94.  
  95.   3C4h index A9h (R/W): NMI Mask 2
  96.  
  97.   3C4h index AAh (R/W): Reserved
  98.  
  99.   3C4h index ABh (R):   NMI Status 1
  100.  
  101.   3C4h index ACh (R):   NMI Status 2
  102.  
  103.   3C4h index ADh (R/W): 256 Color mode Page Control
  104.  
  105.   3C4h index AEh (R):   NMI data cache (Four 24 bit words
  106.  
  107.   3C4h index AFh (R/W): Active Adapter State
  108.  
  109.   3C4h index B0h..BFh (R/W): Scratch Registers
  110.  
  111.   3C4h index C0h..FFh (R/W): Reserved
  112.  
  113.   3d4h index  Ch (R/W): Screen A start address Hi
  114.   Must be cleared before the Eagle ID Register (3d4h indec 1Fh) can be read.
  115.  
  116.   3d4h index 1Fh (R):  Eagle ID register
  117.   bit 0-7  Eagle ID.  Used for test of 3C4h index 6.
  118.            ECh for CL-GD 510/520, CAh for 610/620. EAh for Video7 boards.
  119.  
  120.  
  121.   Memory locations:
  122.  
  123.   $C000:$6  2 bytes  'CL'  if Cirrus Bios
  124.  
  125.  
  126.  
  127.   ID Cirrus VGA:
  128.  
  129.   port[$3d4]:=12;
  130.   old:=port[$3D5];
  131.   port[$3d5]:=0;
  132.   port[$3d4]:=$1f;
  133.   eagle:=port[$3d5];
  134.   outw[$3c4]:=((eagle shl 4)+(eagle shr 4)) shl 8+6;
  135.   if port[$3c5]=0 then
  136.   begin
  137.     port[$3c5]:=eagle;
  138.     if port[$3c5]=1 then CIRRUS
  139.   end;
  140.   portw[$3d4]:=old shl 8+12;
  141.  
  142.  
  143.   Video Modes:
  144.  
  145.   15h T  132   25   2 (8x14)
  146.   16h T  132   44   2 (8x8)
  147.   18h T  132   30   2 (8x)
  148.   1Eh T  132   25  16 (8x8)
  149.   1Fh T  132   25  16 (8x14)
  150.   20h T  132   44  16 (8x8)
  151.   22h T  132   30  16 (8x)
  152.   31h T  100   37   2
  153.   40h G  720  540  16 planar
  154.   50h G  640  400 256 packed
  155.   51h G  512  480 256 packed    Note: not supported in all Bios'es
  156.   63h G  720  540  16 planar
  157.   64h G  800  600  16 planar
  158.   6Ah G  800  600  16 planar
  159.  
  160.  
  161.   Modes for the GD 5320:
  162.  
  163.   61h G  640  400  16 planar
  164.   62h G  640  450  16 planar
  165.   70h G  360  480 256 packed
  166.   71h G  528  400 256 packed
  167.   72h G  528  480 256 packed
  168.   74h G  320  240 256 packed
  169.   75h G  640  400 256 packed 
  170.  
  171.   Mode 50h and 51h use a special system where four pixels are stored at the
  172.   same byte address in plane 0,1,2 and 3 respectively.
  173.