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

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