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

  1.   Realtek RT 3106    -  Upto 1 Mbyte.
  2.  
  3.  
  4.  
  5. 3CEh index 0Ah (R/W):
  6.  
  7. 3CEh index 0Bh (R/W):
  8. bit 0-1  Timing ?
  9.  
  10. 3CEh index  Ch (R/W):
  11. bit   2  Always set ??
  12.       4  If set doubles the number of pixels in a "character clock"
  13.            Pixels per character clock:
  14.                                   clear         set
  15.             16color modes           8           16
  16.            256color modes           4            8
  17.       5  Set if >1024 pixels in a scanline ??
  18.       6  ??
  19.  
  20.  
  21. 3CEh index  Fh (R/W): Extended Function.
  22. bit   2  Single/Dual bank.
  23.          If set 3D6h is the read bank number and 3D7h is the write bank
  24.          number. if clear 3D7h is used for both read and write operations.
  25.  
  26. 3d4h index 19h (R/W):
  27. bit   0  Interlace enabled if set. If set the display offset in 3d4h index 13h
  28.          is the number for two scanlines, rather than one.
  29.       1  Enable memory beyond 64K (256colors)
  30.       4  Display Start Address bit 16.
  31.       5  Enables display to cross 256K boundary if set
  32.       6  Display Start Address bit 17.
  33.       7  Enables display to cross 512K boundary if set
  34.  
  35. 3d4h index 1Ah:
  36. bit 6-7  Chip version.
  37.            0 = Version 0  (RTG3103 ?)
  38.            1 = Version 1  (RTG31030/RTG3105 ?)
  39.            2 = Version 2  (RTG3106)
  40.            3 = Version x ??
  41.  
  42. 3d4h index 1Eh:
  43. bit 0-1  Video Ram. If Chip version =0: 0=256k, 1=512k, 2=768k and 3=1MB
  44.                     If chip version >0: 0=256k, 1=512k, 2=1MB and 3=2MB.
  45.       2  
  46.     4-7  
  47.  
  48. 3D4h index 1Fh (R/W):
  49. bit 0-1  Emulation mode: 0=VGA, 1=EGA, 2=CGA, 3=MDA
  50.     2-5
  51.  
  52. 3D6h (R/W): Bank register
  53. bit 0-3  64k Bank register   (Read bank if 3CEh index Fh bit 2 set)
  54.  
  55. 3D7h (R/W): Bank Register
  56. bit 0-3  64k bank number.    (Write/single bank)
  57.  
  58.  
  59. Test for Realtek Chip:
  60.  
  61. if testinx2(base,$1F,$3F) and tstrg($3D6,$F) and tstrg($3D7,$F) then
  62.   case rdinx(base,$1A) shr 6 of
  63.     0:Realtek RT3103
  64.     1:Realtek RT3105
  65.     2:Realtek RT3106
  66.   end;
  67.  
  68.  
  69.   Video modes:
  70.  
  71.     18h  T     80   30  16  (9x16)
  72.     19h  T     80   43  16  (9x11)
  73.     1Ah  T     80   60  16  (9x8)
  74.     1Bh  T    132   25  16  (9x14)
  75.     1Ch  T    132   30  16  (9x16)
  76.     1Dh  T    132   43  16  (9x11)
  77.     1Eh  T    132   60  16  (9x8)
  78.     1Fh  G    800  600  16  PL4
  79.     20h  G    960  720  16  PL4
  80.     21h  G   1024  768  16  PL4
  81.     22h  G    768 1024  16  PL4
  82.     23h  G   1024  768   4  PL2
  83.     24h  G    512  512 256  P8
  84.     25h  G    640  400 256  P8
  85.     26h  G    640  480 256  P8
  86.     27h  G    800  600 256  P8
  87.     28h  G   1024  768 256  P8
  88.     29h  G   1024 1024 256  P8
  89.     2Ah  G   1280 1024  16  PL4
  90.     38h  G    320  200 64K  P16
  91.     39h  G    512  512 64K  P16
  92.     3Ah  G    640  400 64K  P16
  93.     3Bh  G    640  480 64K  P16
  94.     3Ch  G    800  600 64K  P16
  95.  
  96. ----------105F00------------------
  97. INT 10 - VIDEO - Realtek VGA - RETURN CHIP VERSION
  98.         AX = 5F00h
  99. Return: AH = 00h if successful
  100.         AL = Chip version
  101.                00h  RTG3103 ?
  102.                01h  RTG31030/RTG3105
  103.                02h  RTG3106 ?
  104.                3Fh  Not a Realtek chip
  105. ----------105F01------------------
  106. INT 10 - VIDEO - Realtek VGA - GET RTVGA BIOS STRING
  107.         AX = 5F01h
  108.         ES:DI -> buffer to receive BIOS ID string
  109. Return: AL = 00h if successful
  110.         ES:DI -> buffer with zero terminated BIOS ID string
  111. ----------105F02------------------
  112. INT 10 - VIDEO - Realtek VGA - GET VIDEO MEMORY SIZE
  113.         AX = 5F02h
  114. Return: AH = 00h if successful
  115.         AL = Memory size. 0: 256K, 1: 512K, 2: 768K, 3: 1024K
  116. ----------105F03------------------
  117. INT 10 - VIDEO - Realtek VGA - SET ??
  118.         AX = 5F03h
  119.         BL = 0-3 ??
  120. Return: AH = 00h if successful
  121.