home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / VGADOC4B.ZIP / PRIMUS.TXT < prev    next >
Text File  |  1995-09-29  |  4KB  |  123 lines

  1. PRIMUS P2000
  2.  
  3. P2000     2MB  max 1280x1024/256c, 800x600/32k.
  4. P3000     P2000 with line draw
  5.  
  6. The P2000 is an accelerator card.
  7.  
  8.  
  9. 3CEh index 13h (R/W):
  10. bit    5  Clock ?
  11.        6  If set interlaced display is enabled, and the display offset
  12.           (CRTC index 13h + 3CEh index 21h bit 5) is divided by 2.
  13.  
  14. 3CEh index 14h (R/W):
  15. bit    0  ?
  16.      2-3  Divides video clock by. 0: 1, 1: 4, 2: 2, 3: 4
  17.      4-5  Clock select bit 2-3 (bits 0-1 are in 3C2h/3CCh bits 2-3)
  18.        7  Screen flashes if clear ??
  19.  
  20. 3CEh index 1Dh (R/W):
  21. bit  0-1  Monitor type. 0=35KHz, 1=48KHz, 2=56KHz, 3=65KHz.
  22.  
  23. 3CEh index 1Eh W(R/W):
  24.  
  25. 3CEh index 21h (R/W):
  26. bit  0-2  Display start address bit 16-18.
  27.        5  Bit 8 of the Display Offset (3d4h index 13h),
  28.  
  29. 3CEh index 30h 3(R/W):  Source address
  30. bit  0-23  Pixel address of the source area. Calculated as (row * pixels per
  31.            scanline) + column. For HiColor modes this value should be
  32.            doubled. Used or BitBLT operations.
  33.  
  34. 3CEh index 33h W(R/W):  Width of Blit Area
  35. bit  0-15  Width of the Blit Area in pixels.
  36.  
  37. 3CEh index 35h W(R/W):  Height of Blit Area
  38. bit  0-13  Height of the Blit Area in pixels.
  39.        14  Set to step backwards in the destination.
  40.        15  Set to step backwards in the source
  41.  
  42. 3CEh index 37h 3(R/W):  Destination Address
  43. bit  0-23  Pixel address of the destination area. Calculated as (row * pixels
  44.            per scanline) + column. For HiColor modes this value should be
  45.            doubled.
  46.  
  47. 3CEh index 3Ah W(R/W):
  48. bit  0-15  Width of the destination area in pixels
  49.  
  50. 3CEh index 3Dh (R/W): Status/Command register
  51. bit    0  (R): Set if busy with op.
  52.      0-7  (W): Command.
  53.                 00h = NO op.
  54.                 05h = Copy
  55.                 07h = BitBlt
  56.                 19h = Fill rect
  57.                 25h = BitBLT Invert.
  58.                 29h = FillRect Invert.
  59.  
  60.  
  61. 3CEh index 3Eh (R/W): Fill color
  62. bit 0-7  Fill color (rect).
  63.  
  64. 3CEh index 3Fh (R/W):
  65.  
  66. 3D6h (R/W): Write bank
  67. bit 0-7  Write bank no. in 64kb units.
  68.  
  69. 3D7h (R/W): Read bank
  70. bit 0-7  Read bank no. in 64kb units.
  71.  
  72.  
  73. Accelerated commands are set up as follows:
  74.   Set up the registers with the parameters (areas, size and color)
  75.   Wait for bit 0 of 3CEh index 3Dh to clear.
  76.   Write command to 3CEh index 3Dh.
  77.   Wait for bit 0 of 3CEh index 3Dh to clear.
  78.  
  79. It is advisable to finish with a NOP (00h) command to terminate the
  80. coprocessor. The commands can be modified via the fields in 3CEh index 3
  81. (MOV, AND, OR, XOR).
  82.  
  83.  
  84. ID Primus P2000:
  85.  
  86.  if testinx2($3CE,$3D,$3F) and tstrg($3D6,$1F) and tstrg($3D7,$1F) then
  87.    _p2000
  88.  
  89.  
  90.  
  91. Video Modes:
  92.  
  93.   1Eh  T   80   30   16  (8x16)
  94.   1Fh  T   80   43   16  (8x11)
  95.   20h  T   80   60   16  (8x8)
  96.   21h  T  100   75   16  (8x8)
  97.   24h  T  132   25   16  (8x14)
  98.   25h  T  132   30   16  (8x16)
  99.   26h  T  132   43   16  (8x11)
  100.   27h  T  132   60   16  (8x8)
  101.   28h  G  512  512   16  PL4
  102.   29h  G  512  512  256  P8
  103.   2Ah  G  800  600   16  PL4
  104.   2Bh  G  800  600  256  P8
  105.   2Ch  G  640  400  256  P8
  106.   2Dh  G  640  480  256  P8
  107.   2Eh  G  768 1024   16  PL4
  108.   2Fh  G  768 1024  256  P8
  109.   30h  G 1024  768   16  PL4
  110.   31h  G 1024  768  256  P8
  111.   32h  G 1024 1024   16  PL4
  112.   33h  G 1024 1024  256  P8
  113.   34h  G 1152  900   16  PL4
  114.   35h  G 1152  900  256  P8
  115.   36h  G 1280 1024   16  PL4
  116.   37h  G 1280 1024  256  P8
  117.   41h  G  512  512  32k  P15
  118.   42h  G  640  350  32k  P15
  119.   43h  G  640  400  32k  P15
  120.   44h  G  640  480  32k  P15
  121.   45h  G  800  600  32k  P15
  122.   4Ah  G  640  480  16m  P24
  123.