home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c011 / 1.ddi / INCS / FXDEFS.INC next >
Encoding:
Text File  |  1989-06-01  |  6.1 KB  |  133 lines

  1. ; fxDefs.INC                                                                 ;
  2. ; Copyright (c) Genus Microprogramming, Inc. 1988-89  All Rights Reserved.   ;
  3.  
  4. ;****************************************************************************;
  5. ;                                                                            ;
  6. ; This file contains defines for PCX F/X manipulation.                       ;
  7. ;                                                                            ;
  8. ;                                                                            ;
  9. ;                                                                            ;
  10. ;                                                                            ;
  11. ;                                                                            ;
  12. ;                                                                            ;
  13. ; Microsoft ASM 5.x version.              Programmer: Chris Howard  3/15/89  ;
  14. ;                                                                            ;
  15. ;****************************************************************************;
  16.  
  17. ;Effects version
  18. fxVERNUM  equ       "1.01"
  19.  
  20. ;Effects
  21. MINEFFECT equ       0                       ;Minimum effect type
  22. fxWIPE    equ       0                       ;Wipe
  23. fxSPLIT   equ       1                       ;Split
  24. fxCRUSH   equ       2                       ;Crush
  25. fxSLIDE   equ       3                       ;Slide
  26. fxSAND    equ       4                       ;Sand
  27. fxDRIP    equ       5                       ;Drip
  28. fxEXPLODE equ       6                       ;Explode
  29. fxDIAG    equ       7                       ;Diagonal
  30. fxSPIRAL  equ       8                       ;Spiral  
  31. fxRANDOM  equ       9                       ;Random  
  32. MAXEFFECT equ       9                       ;Maximum effect type
  33.  
  34. ;Palette Effects
  35. fxFADEOUT equ       1000                    ;Fade the palette out  
  36. fxFADEIN  equ       1001                    ;Fade the palette in  
  37.  
  38. ;Directions
  39. fxLEFT    equ       1                       ;Left
  40. fxRIGHT   equ       2                       ;Right
  41. fxUP      equ       4                       ;Up   
  42. fxDOWN    equ       8                       ;Down 
  43.  
  44. fxHORIZ   equ       1                       ;Horizontal
  45. fxVERT    equ       2                       ;Vertical
  46.  
  47. fxOUT     equ       1                       ;Out
  48. fxIN      equ       2                       ;In
  49.  
  50. ;Grain
  51. MINGRAIN  equ       1                       ;Minimum grain
  52. MAXGRAIN  equ       64                      ;Maximum grain
  53.  
  54. ;Delay
  55. MINDELAY  equ       0                       ;Minimum delay 
  56. MAXDELAY  equ       500                     ;Maximum delay
  57.  
  58. ;Notes
  59. MINNOTE   equ       0                       ;Minimum note
  60. MAXNOTE   equ       120                     ;Maximum note
  61.  
  62. ;Octaves
  63. OCTAVE    equ       12                      ;Twelve notes/octave
  64. MINOCTAVE equ       0                       ;Minimum octave
  65. MAXOCTAVE equ       9                       ;Maximum octave
  66.  
  67. ;Lengths
  68. MINLENGTH equ       1                       ;Minimum length
  69. MAXLENGTH equ       64                      ;Maximum length
  70.  
  71. ;Frequencies
  72. MINFREQ   equ       32                      ;Minimum frequency
  73. MAXFREQ   equ       32000                   ;Maximum frequency
  74.  
  75. ;Tempos
  76. MINTEMPO  equ       30                      ;Minimum length
  77. MAXTEMPO  equ       255                     ;Maximum length
  78.  
  79. ;Play modes
  80. PLAYFORE  equ       0                       ;Play in the foreground
  81. PLAYBACK  equ       1                       ; or background
  82. PLAYNORM  equ       7                       ;Play normal   (7/8 of time)
  83. PLAYLEG   equ       8                       ;Play legato   (8/8 of time)
  84. PLAYSTAC  equ       6                       ;Play stacatto (6/8 of time)
  85.  
  86. ;Miscellaneous
  87. fxTRUE    equ       pcxTRUE                 ;True and
  88. fxFALSE   equ       pcxFALSE                ; False values
  89. fxON      equ       fxTRUE                  ;On and
  90. fxOFF     equ       fxFALSE                 ; Off values
  91. fxCLICK   equ       6                       ;Timer tick (6/100ths, 1/18.2)
  92.  
  93. ;Virtual Effect variable locations on the stack
  94. vevseg    equ       <[bp+14]>               ;Virtual buffer pointer
  95. vevofs    equ       <[bp+12]>               ; or EMM handle
  96. vex       equ       <[bp+10]>               ;X coordinate into buffer
  97. vey       equ       <[bp+ 8]>               ;Y coordinate into buffer
  98. vedir     equ       <[bp+ 6]>               ; and direction
  99. veparm    equ       10
  100.  
  101. ;Virtual Effect local variables
  102. veret     equ       <[bp- 2]>               ;return code
  103. vex2      equ       <[bp- 4]>               ;X2
  104. vey2      equ       <[bp- 6]>               ;Y2
  105. vewidth   equ       <[bp- 8]>               ;image width
  106. vedepth   equ       <[bp-10]>               ;image depth
  107. vedelay   equ       <[bp-12]>               ;effect delay
  108. vegrain   equ       <[bp-14]>               ;effect grain
  109. vevgrain  equ       <[bp-16]>               ;effect grain (vertical)
  110. vepage    equ       <[bp-18]>               ;current page  
  111. vehres    equ       <[bp-20]>               ;horizontal res
  112. vevres    equ       <[bp-22]>               ;vertical res
  113. vehhalf   equ       <[bp-24]>               ;horizontal half
  114. vevhalf   equ       <[bp-26]>               ;vertical half
  115. veloopmax equ       <[bp-28]>               ;loop maximum
  116. vehandle  equ       <[bp-30]>               ;EMM handle, if pcxEMM type
  117. vehpages  equ       <[bp-32]>               ;Total handle pages
  118. velpage   equ       <[bp-34]>               ;Current logical page
  119. vei       equ       <[bp-36]>               ;Temporary loop variables
  120. vej       equ       <[bp-38]>               ;                    
  121. veimax    equ       <[bp-40]>               ;
  122. vejmax    equ       <[bp-42]>               ;                    
  123. velocal   equ       42                      ;Total local space needed
  124.  
  125.  
  126. ;Supported effect structure
  127. fxstruc   STRUC
  128. fxtype    db        ?                       ;Effect type (from above list)
  129. fxstr     db        '                    '  ;Place for ASCII effect string
  130. fxstrterm db        0                       ;String terminator
  131. fxfunc    dd        ?                       ;Effect Function (FAR PTR)
  132. fxstruc   ENDS
  133.