Date: Wed, 08 Oct 1997 14:55:14 +1100 From: Bill Currie Subject: Re: Interrupts bite....wait...yup they do :-) In-reply-to: <61eh12$i20@dfw-ixnews5.ix.netcom.com> To: firewind , djgpp AT delorie DOT com Cc: deltener AT fm-net DOT com Message-id: <199710080152.OAA09931@teleng1.tait.co.nz gatekeeper.tait.co.nz> Organization: Tait Electronics Limited MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Comments: Authenticated sender is Precedence: bulk On 7 Oct 97 at 23:36, firewind wrote: > justin deltener wrote: > > I've finally got around to programming interrupts again, and i'm so DARN > > close i can taste it. I think my computer is laughing at me. Anyways > > i'm hooking up into the SB16 sound card and for the life of me i can't > > get it into auto-init mode! i'm doing the same DSP commands as i was in > > real mode, and i think the rest is correct. It will play the DMAbuffer > > once and thats it. No autoinit :-( Any ideas? Most of this you've probably already thought of/know, but: Did you enable the IRQ line in the PICs (programmable interrupt controllers, see Ralf Brown's interrupt list (ports.lst) for details)? Did you hook the correct interrupt? Is the DMA set up correctly for autoinit? Is this under windows? 3.1x has some bugs with the interrupt flag and 95 doesn't always let you get at the soundblaster hardware (seems to depend on wheter or not something else is trying to use it), especially the interrupt. Sorry I can't be of more help, but most of my recent interrupt experience has be with my custom kernel and been for IDE and FDC drivers and the like. I also havn't got a SB16 (only an SBP8). > > Wait... the Sound Blaster interrupt would be real mode, wouldn't it? > So shouldn't you use: (where rm_regs is a __dpmi_regs created > previously in the function) No, hardware interrupts go to protected mode first and then real mode only if not hooked by protected mode. Bill -- Leave others their otherness.