Lines Matching +full:0 +full:xa000
45 for (count = 0; count < numsamples * 2; count++) in gus_mixvoices()
46 *(bufferpos + count) = 0; /* clear */ in gus_mixvoices()
50 if (!(GUSregb(GUS4cReset) & 0x01)) /* reset flag active? */ in gus_mixvoices()
53 for (Voice = 0; Voice <= (GUSregb(NumVoices) & 31); Voice++) in gus_mixvoices()
55 if (GUSvoice(wVSRControl) & 0x200) in gus_mixvoices()
56 GUSvoice(wVSRControl) |= 0x100; /* voice stop request */ in gus_mixvoices()
57 if (GUSvoice(wVSRVolRampControl) & 0x200) in gus_mixvoices()
58 GUSvoice(wVSRVolRampControl) |= 0x100; /* Volume ramp stop request */ in gus_mixvoices()
59 …if (!(GUSvoice(wVSRControl) & GUSvoice(wVSRVolRampControl) & 0x100)) /* neither voice nor volume c… in gus_mixvoices()
69 int PanningPos = (GUSvoice(wVSRPanning) >> 8) & 0xf; in gus_mixvoices()
72 unsigned int StartVol32 = (GUSvoice(wVSRVolRampStartVol) & 0xff00) * 32; in gus_mixvoices()
73 unsigned int EndVol32 = (GUSvoice(wVSRVolRampEndVol) & 0xff00) * 32; in gus_mixvoices()
74 …rement32 = (32 * 16 * (GUSvoice(wVSRVolRampRate) & 0x3f00) >> 8) >> ((((GUSvoice(wVSRVolRampRate) … in gus_mixvoices()
77 if (GUSvoice(wVSRControl) & 0x4000) in gus_mixvoices()
79 if (GUSvoice(wVSRVolRampControl) & 0x4000) in gus_mixvoices()
82 for (sample = 0; sample < numsamples; sample++) in gus_mixvoices()
85 if (GUSvoice(wVSRControl) & 0x400) /* 16bit */ in gus_mixvoices()
87 int offset = ((CurrPos >> 9) & 0xc0000) + (((CurrPos >> 9) & 0x1ffff) << 1); in gus_mixvoices()
90 sample1 = (*adr & 0xff) + (*(adr + 1) * 256); in gus_mixvoices()
91 sample2 = (*(adr + 2) & 0xff) + (*(adr + 2 + 1) * 256); in gus_mixvoices()
95 int offset = (CurrPos >> 9) & 0xfffff; in gus_mixvoices()
102 …Volume = ((((Volume32 >> (4 + 5)) & 0xff) + 256) << (Volume32 >> ((4 + 8) + 5))) / 512; /* semi-lo… in gus_mixvoices()
107 if (!(GUSvoice(wVSRVolRampControl) & 0x100)) in gus_mixvoices()
110 …if ((GUSvoice(wVSRVolRampControl) & 0x4000) ? (Volume32 <= StartVol32) : (Volume32 >= EndVol32)) /… in gus_mixvoices()
112 if (GUSvoice(wVSRVolRampControl) & 0x2000) in gus_mixvoices()
113 … GUSvoice(wVSRVolRampControl) |= 0x8000; /* volramp IRQ enabled? -> IRQ wait flag */ in gus_mixvoices()
114 if (GUSvoice(wVSRVolRampControl) & 0x800) /* loop enabled */ in gus_mixvoices()
116 if (GUSvoice(wVSRVolRampControl) & 0x1000) /* bidir. loop */ in gus_mixvoices()
118 GUSvoice(wVSRVolRampControl) ^= 0x4000; /* toggle dir */ in gus_mixvoices()
122 …Volume32 = (GUSvoice(wVSRVolRampControl) & 0x4000) ? EndVol32 : StartVol32; /* unidir. loop ramp */ in gus_mixvoices()
126 GUSvoice(wVSRVolRampControl) |= 0x100; in gus_mixvoices()
128 (GUSvoice(wVSRVolRampControl) & 0x4000) ? StartVol32 : EndVol32; in gus_mixvoices()
132 … if ((GUSvoice(wVSRVolRampControl) & 0xa000) == 0xa000) /* volramp IRQ set and enabled? */ in gus_mixvoices()
139 GUSvoice(wVSRVolRampControl) &= 0x7f00; in gus_mixvoices()
142 if (!(GUSvoice(wVSRControl) & 0x100)) in gus_mixvoices()
145 …if ((GUSvoice(wVSRControl) & 0x4000) ? (CurrPos <= LoopStart) : (CurrPos >= LoopEnd)) /* playback … in gus_mixvoices()
147 if (GUSvoice(wVSRControl) & 0x2000) in gus_mixvoices()
148 … GUSvoice(wVSRControl) |= 0x8000; /* voice IRQ enabled -> IRQ wait flag */ in gus_mixvoices()
149 if (GUSvoice(wVSRControl) & 0x800) /* loop enabled */ in gus_mixvoices()
151 if (GUSvoice(wVSRControl) & 0x1000) /* pingpong loop */ in gus_mixvoices()
153 GUSvoice(wVSRControl) ^= 0x4000; /* toggle dir */ in gus_mixvoices()
157 … CurrPos = (GUSvoice(wVSRControl) & 0x4000) ? LoopEnd : LoopStart; /* unidir. loop */ in gus_mixvoices()
159 else if (!(GUSvoice(wVSRVolRampControl) & 0x400)) in gus_mixvoices()
160 … GUSvoice(wVSRControl) |= 0x100; /* loop disabled, rollover check */ in gus_mixvoices()
163 … if ((GUSvoice(wVSRControl) & 0xa000) == 0xa000) /* wavetable IRQ set and enabled? */ in gus_mixvoices()
170 GUSvoice(wVSRControl) &= 0x7f00; in gus_mixvoices()
180 GUSvoice(wVSRCurrPosLo) = CurrPos & 0xffff; in gus_mixvoices()
189 int requestedIRQs = 0; in gus_irqgen()
200 if (!(GUSregb(TimerDataReg2x9) & 0x40)) in gus_irqgen()
201 GUSregb(TimerStatus2x8) |= 0xc0; /* maskable bits */ in gus_irqgen()
219 if (!(GUSregb(TimerDataReg2x9) & 0x20)) in gus_irqgen()
220 GUSregb(TimerStatus2x8) |= 0xa0; /* maskable bits */ in gus_irqgen()
230 if (GUSregb(GUS4cReset) & 0x4) /* synth IRQ enable */ in gus_irqgen()
233 GUSregb(IRQStatReg2x6) |= 0x20; in gus_irqgen()
235 GUSregb(IRQStatReg2x6) |= 0x40; in gus_irqgen()