home *** CD-ROM | disk | FTP | other *** search
/ Dave Lowe: Krustys SFX Ad Libs / Lowe_KrustysSFXAdLibs.img / DISKSENT / FXDRIVE.INC < prev    next >
Encoding:
Text File  |  1990-06-26  |  3.8 KB  |  117 lines

  1. F_NUM        equ    655    ; constant for 0.25 Khz
  2. YAMBLOCK    equ    3
  3. DELAY_COUNT     equ    (1193*2) ; 1/4 cycle of 250Hz count ( 1193180 / 1000)
  4.                 ; *2 because timer count down by 2
  5. SPRAMLEN    equ    67
  6.  
  7. HIGHBYTEDIVISOR    equ    0
  8. LOWBYTEDIVISOR    equ    75
  9.  
  10.  ;hardware equates
  11. TIMERCONTROL    equ    043h
  12. TIMERDATA0       equ    040h
  13. TIMER0        equ    40H    ; 8253 timer I/O addr
  14. P8255            equ    061h
  15. TIMERDATA2       equ    042h
  16. CNTR0        equ    000h
  17. CNTR1        equ    040h
  18. CNTR2        equ    080h
  19. RBC        equ    0C0h
  20. CLATCHC        equ    000h
  21. RWLSB        equ    010h
  22. RWMSB        equ    020h
  23. RWLSBMSB    equ    030h
  24. MODE0        equ    000h
  25. MODE1        equ    002h
  26. MODE2        equ    004h
  27. MODE3        equ    006h
  28. MODE4        equ    008h
  29. MODE5        equ    00Ah
  30. BINARY        equ    000h
  31. BCD        equ    001h
  32. HWGATE2BIT    equ    001h
  33. HWSPKRBIT    equ    002h
  34. HWSPKROUT    equ    020h
  35.  
  36. ADLIBREGS    equ    0388h
  37. ADLIBDATA    equ    0389h
  38.  
  39. MAXSOUND    equ    0ffh
  40. MAXSOUND2    equ    0FFh
  41. MAXRTN        equ    070h
  42. JETSOUND    equ    001h
  43. CONDUCTORCHANNEL    equ    9
  44.  
  45. ;*** sound control block structure   one per channel
  46. sysAttn    equ         0        ;0    ac signed attn
  47. nonvolatile1    equ    1        ;1
  48. nonvolatile2    equ    2        ;2
  49. StrPointer    equ     3               ;3,4     string pointer
  50. Duration    equ    5               ;5    duration
  51. LupCounter    equ    6               ;6    loop counter
  52. OctaveOfst    equ    7               ;7    octave offset
  53. Priority        equ     8               ;8    priority
  54. StackPointer    equ     9                  ;9    stack pointer
  55.  
  56. Stack0        equ     10        ;10,11    stack space
  57. stack1          equ     12        ;12,13    stack space
  58. stack2          equ     14              ;14,15    stack space
  59. stack3          equ     16        ;16,17    stack space
  60.  
  61. NoteOfst    equ     18        ;18    note offset
  62. PdeltPre        equ     19              ;19    pitch delta prescaler
  63. PdeltCount      equ     20              ;20    pitch delta counter
  64. Pdelt           equ     21              ;21,22    pitch delta counter
  65. Vibstep         equ     23              ;23,24    step size
  66. Vibshift        equ     25        ;25    shift count
  67. VibNewCount     equ     26         ;26    excursion counter
  68. Vibcount        equ     27        ;27    excursion count
  69. Vibdelay        equ     28         ;28    vibrato delay
  70. Vibpre          equ     29        ;29    prescaler value
  71.  
  72. Vibprecount     equ     30        ;30    prescaler counter
  73. Vibdelaycount   equ     31        ;31    prescaler counter
  74. AccentAttn    equ     32        ;32    9e channel attenuation
  75. PercentDuration    equ     33        ;33    note length percentage value
  76. PercentCount    equ     34        ;34    note length percentage counter
  77. FracPitchHigh    equ     35        ;35    fractional pitch high byte
  78. FracPitchLow    equ     36        ;36    fractional pitch low byte
  79. Tempo        equ     37        ;37    channel tempo
  80. TempoCount    equ     38        ;38    channel running counter
  81. FreqLow        equ     39        ;39    yamah freq low reg
  82. Block        equ     40        ;40    yamah block reg
  83.  
  84. PVector1    equ     41        ;41,42    process vector 1
  85. PVector2    equ     43        ;43,44    process vector 2
  86.  
  87. NotePercentVal    equ     45        ;45    Note percent
  88.  
  89. PatchAttn1    equ     46        ;46    patch atten value and ksl
  90. PatchAttn2    equ     47        ;47    patch atten value and ksl
  91. ChannelAttn    equ     48        ;48    ab channel attn
  92. Algorithm    equ     49        ;49    patch algorithm used for attn
  93. Op1Velocity    equ     50        ;50    op1 velocity shift factor
  94. Op2Velocity    equ     51        ;51    op2 velocity shift factor
  95. Velocity    equ     52        ;52    velocity from note data
  96. GateThreshold    equ     53        ;53    duration at which to shut down gate
  97. RndDurMask    equ    54        ;54    mask for Random durations
  98. RndPchOff    equ    55        ;55,56  mask for Rnd Pitch offsets
  99.  
  100. TpPre        equ    57        ;57    timer prescaler amount
  101. TpTmr        equ    58        ;58    timer for prescaler
  102. tmlen        equ    59        ;59    current table length
  103. tmoff        equ    60        ;60    current table offset
  104. TpOp        equ    61        ;61    which operator to mess with
  105. tmbase        equ    62        ;62,63    table base address
  106. autotempo    equ    64        ;64       pick up global tempo automatically
  107. NoteVal        equ    65        ;65       current note shadow
  108. BendValue    equ    66        ;66       current bend value
  109.  
  110.  
  111. ;----------------------------------------------------------------------------
  112. GETNEXTOP  macro    ; returns next opcode in al (next byte)
  113.  
  114.     lodsb
  115. endm
  116.  
  117.