home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / doc / graphdoc / oak.txt < prev    next >
Text File  |  1994-01-18  |  6KB  |  210 lines

  1.    OAK Technologies. OTI.
  2.  
  3.    OTI037C has 256K or 512K.
  4.    OTI-067 has 256K or 512K.
  5.    OTI-077 allows 1MB and up to 1024x768 in 256 colors.
  6.    OTI-087 allows 2MB
  7.  
  8.  
  9. OAK-037, 067 and 077:
  10.  
  11. 3DEh (R/W):  Index register
  12. bit 0-4  Index to the OAK extended registers at 3DF.
  13.     5-7  (R) Chip version.  0=OAK=037C, 2=OAK-067, 5=OAK-077, 7=OAK-057
  14. Note: Has anyone seen an 057 ????
  15.  
  16. 3DEh index  9h (R/W):
  17.  
  18. 3DEh index 0Ah (R/W):
  19.  
  20. 3DEh index 0Ch (R/W):  CRT Control
  21. bit   3  I/O write test ?
  22.  
  23. 3DEh index 0Dh (R/W):  Misc
  24. bit 2-3  Should be set to enable access to memory above 256k
  25.       4  For 16 color modes should be set to enable access for memory above
  26.          256K
  27.       5  Clock Select bit 2. Bits 0-1 are in 3C2h/3CCh
  28.       6  1MB if set
  29.       7  512K if set, 256 else.
  30.  
  31. 3DEh index 0Eh (R/W):  Backwards Compatability
  32. bit   7  VGA mode if set
  33.  
  34. 3DEh index 11h (R/W):  Segment
  35. bit 0-3  Read Bank no 
  36.     4-7  Write Bank no
  37. Note: This register apparently write only in Oak-037C.
  38.  
  39. 3DEh index 12h (R/W):  Config
  40.  
  41. 3DEh index 14h (R/W):  Overflow
  42. bit   0  Bit 10 of the VTotal Register (3d4h index 6)
  43.       1  Bit 10 of the Vertical Display End Register (3d4h index 12h)
  44.       2  Bit 10 of the Vertical Retrace Start Register (3d4h index 10h).
  45.       3  Bit 16 of the Display Start Address
  46.       7  Set if Interlace is enabled.
  47.  
  48. 3DEh index 15h (R/W):  Hsync/2
  49. bit 0-7  How far into the scanline the odd frame should start in interlaced
  50.          modes. Usually half the VTotal value.
  51.  
  52. 3DEh index 16h (R/W):  Overflow 2                                    (77 only)
  53. bit   3  Bit 17 of the Display Start address
  54. Note: For 256color modes the Display Start Address is in units of 8 bytes,
  55.       rather than 4 bytes.
  56.  
  57. Bank Switching:
  58.  
  59. Two banks exist in reg 3DEh index 11h.
  60.  
  61.  
  62.  
  63. OAK-087:
  64.  
  65. 3DEh index  0:
  66. bit   1  Set for OTI-083, Clear for OTI-087
  67.  
  68. 3DEh index  2  (R/W):
  69. bit 1-2  Video Memory. 0=256k, 1=512k, 2=1M, 3=2M
  70.  
  71. 3DEh index  3  (R/W):
  72. bit   5  ?? (Causes vertical stripes)
  73.       7  ?? 
  74.  
  75. 3DEh index  4  (R/W):
  76. bit   2  Set if using Zero Wait States for the VESA Local BUS interface.
  77.  
  78. 3DEh index  6  (R/W):
  79. bit   0  Clock select ??
  80.       2  Clock select ??
  81.       3  Output to RS2 on the DAC. ??
  82.          If set causes 3C6h-3C9h to access the extended registers on the DAC
  83.       4  ?? (Display reset ??)
  84.  
  85. 3DEh index  9  (R/W):
  86. bit   0  Set if 24bit DAC available ?
  87.  
  88. 3DEh index  Bh:
  89. bit   6  Clear if VESA monitor timings (Jumper )
  90.       7  Clear if non-interlaced monitor timings
  91.  
  92. 3DEh index  Dh (R/W):
  93. bit   4  Should be set in 16color modes
  94.       5  Clock Select ??
  95.  
  96. 3DEh index 10h (R/W):
  97.  
  98.  
  99. 3DEh index 14h (R/W):  
  100. bit   0  ?? (Makes the display "shake")
  101.       2  ??
  102.       3  Bit 16 of the Display Start Address. Note index 17h
  103.       7  Set if the display is interlaced
  104.  
  105. 3DEh index 17h (R/W):
  106. bit 0-2  Display Start Address bit 16-18
  107.  
  108. 3DEh index 18h (R/W):
  109. bit   2  Clock Select??
  110.  
  111. 3DEh index 21h (R/W):
  112. bit 0-1  Clock select ??
  113.       2  Clear in mode 13h, set in all other 256color modes
  114.  
  115. 3DEh index 23h (R/W):  Write Bank Register
  116. bit 0-4  Read Bank in 64k units.
  117.  
  118. 3DEh index 24h (R/W):  Read Bank Register
  119. bit 0-4  Write Bank in 64k units.
  120.  
  121. Indices 2-6, 9-Bh, Dh, 11h, 13h-15h, 17h-19h, 20-25h, 30h-36h are used by the
  122.  OTI-087.
  123.  
  124.  
  125.  
  126.   ID Oak VGA:
  127.  
  128.   if testinx2($3DE,$D,$38) then
  129.   begin
  130.     { We have an OAK }
  131.     if testreg2($3DE,$23,$1F) then
  132.       if (rdinx($3DE,0) and 2)=0 then _OAK_087
  133.                                  else _OAK_083
  134.     else
  135.       case inp($3DE) div 32 of
  136.         0:_OAK_037C
  137.         2:_OAK_067
  138.         5:_OAK_077
  139.         7:_OAK_057
  140.       end;
  141.   end;
  142.  
  143.  
  144.   Modes:
  145.  
  146.   (OTI 067/077/087)
  147.  
  148.   4Eh  T    80   60  16  (8x8)      Not all 067's
  149.   4Fh  T   132   60  16  (8x8)
  150.   50h  T   132   25  16  (8x14)
  151.   51h  T   132   43  16  (8x8)
  152.   52h  G   800  600  16  PL4
  153.   53h  G   640  480 256  P8
  154.   54h  G   800  600 256  P8
  155.   55h  G  1024  768   4 ??
  156.   56h  G  1024  768  16  PL4
  157.   57h  G   768 1024   4  ??
  158.   58h  G  1280 1024  16  PL4
  159.   59h  G  1024  768 256  P8     OTI-077/87 only
  160.   5Ah  G   640  480 64k  P16    OTI-077 w/Sierra
  161.   5Bh  G   640  400 32k  P15    OTI-077 w/Sierra
  162.   5Ch  G   640  480 32k  P15    OTI-077 w/Sierra
  163.   5Dh  G   800  600 32k  P15
  164.   5Eh  G  1280 1024 256  P8
  165.   5Fh  G   640  480 16m  P24
  166.   60h  G   800  600 64k  P16
  167.   61h  G   640  400 256  P8
  168.  
  169. Note that the OAK-087 BIOS version 1.01B does not set the DAC mode of the
  170. HiColor modes correctly.
  171.  
  172.  
  173.   (OTI037C "UNIQUE" VGA)
  174.  
  175.   50h  T   132   25  16  (8x14)
  176.   51h  T   132   43  16  (8x8)
  177.   52h  G   800  600  16  PL4
  178.  
  179.  
  180.   (OTI037C with NEL Electronics BIOS)
  181.  
  182.   50h  G   640  480  16  PL4
  183.   51h  T    80   30      (16x9)
  184.   52h  G  1024  480  16  PL4
  185.   53h  T    80   25      (16x8)
  186.   54h  T   132   43      (8x8)
  187.   55h  T   132   25      (14x8)
  188.   56h  T   132   43      (8x9)
  189.   57h  T   132   25      (14x9)
  190.   58h  T    80   43      (8x8)
  191.   59h  T    80   43      (8x9)
  192.   5Ah  T    80   60      (8x8)
  193.   5Bh  G   800  600  16  PL4
  194.   5Ch  T   100   37      (16x8)
  195.   5Dh  T   100   75      (8x8)
  196.   5Eh  G   800  600  16  PL4
  197.   6Ah  G   800  600  16  PL4
  198.   6Bh  T   100   37      (16x8)
  199.  
  200. ----------10FF-----------------------------------
  201. INT 10 - VIDEO - OAK VGA BIOS v1.02+ - SET EMULATION
  202.         AH = FFh
  203.         AL = Emulation
  204.                43h  CGA emulation
  205.                45h  EGA emulation
  206.                4Dh  Hercules emulation
  207.                56h  VGA emulation
  208.         ES:DI -> signature string "Calamity"
  209. Switches to the desired emulation
  210.