home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / os-include / hardware / blit.i < prev    next >
Text File  |  1993-10-15  |  2KB  |  105 lines

  1.     IFND    HARDWARE_BLIT_I
  2. HARDWARE_BLIT_I    SET    1
  3. **
  4. **    $VER: blit.i 39.2 (12.8.93)
  5. **    Includes Release 40.15
  6. **
  7. **    Defines for direct hardware use of the blitter.
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    EXEC_TYPES_I
  14.     INCLUDE    "exec/types.i"
  15.     ENDC    ;EXEC_TYPES_I
  16.  
  17.  
  18.  
  19.    STRUCTURE bltnode,0
  20.    LONG  bn_n
  21.    LONG  bn_function
  22.    BYTE  bn_stat
  23.    BYTE  bn_dummy
  24.    WORD  bn_blitsize
  25.    WORD  bn_beamsync
  26.    LONG  bn_cleanup
  27.    LABEL bn_SIZEOF
  28.  
  29. * bit defines used by blit queuer
  30. CLEANMEn    equ 6
  31. CLEANME     equ 1<<CLEANMEn
  32.  
  33. * include file for blitter */
  34. HSIZEBITS   equ   6
  35. VSIZEBITS   equ   16-HSIZEBITS
  36. HSIZEMASK   equ   $3f          ; 2^6 -- 1
  37. VSIZEMASK   equ   $3FF          ; 2^10 - 1
  38.  
  39. * all agnii support horizontal blit of at least 1024 bits (128 bytes) wide */
  40. * some agnii support horizontal blit of up to 32768 bits (4096 bytes) wide */
  41.  
  42.     IFD    NO_BIG_BLITS
  43. MAXBYTESPERROW EQU   128
  44.     ENDC
  45.  
  46.     IFND    NO_BIG_BLITS
  47. MINBYTESPERROW EQU   128
  48. MAXBYTESPERROW EQU   4096
  49.     ENDC
  50.  
  51. * definitions for blitter control register 0 */
  52.  
  53. ABC        equ   $80
  54. ABNC        equ   $40
  55. ANBC        equ   $20
  56. ANBNC        equ   $10
  57. NABC        equ   $8
  58. NABNC        equ   $4
  59. NANBC        equ   $2
  60. NANBNC        equ   $1
  61.  
  62. BC0B_DEST   equ     8
  63. BC0B_SRCC   equ     9
  64. BC0B_SRCB   equ     10
  65. BC0B_SRCA   equ     11
  66. BC0F_DEST   equ   $100
  67. BC0F_SRCC   equ   $200
  68. BC0F_SRCB   equ   $400
  69. BC0F_SRCA   equ   $800
  70.  
  71. BC1F_DESC   equ 2
  72.  
  73. DEST        equ   $100
  74. SRCC        equ   $200
  75. SRCB        equ   $400
  76. SRCA        equ   $800
  77.  
  78. ASHIFTSHIFT equ   12 ; bits to right align ashift value
  79. BSHIFTSHIFT equ   12 ; bits to right align bshift value
  80.  
  81. * definations for blitter control register 1 */
  82. LINEMODE    equ   $1
  83. FILL_OR     equ   $8
  84. FILL_XOR    equ   $10
  85. FILL_CARRYIN   equ   $4
  86. ONEDOT        equ   $2
  87. OVFLAG        equ   $20
  88. SIGNFLAG    equ   $40
  89. BLITREVERSE equ   $2
  90.  
  91. SUD        equ   $10
  92. SUL        equ   $8
  93. AUL        equ   $4
  94.  
  95. OCTANT8     equ   24
  96. OCTANT7     equ   4
  97. OCTANT6     equ   12
  98. OCTANT5     equ   28
  99. OCTANT4     equ   20
  100. OCTANT3     equ   8
  101. OCTANT2     equ   0
  102. OCTANT1     equ   16
  103.  
  104.     ENDC    ; HARDWARE_BLIT_I
  105.