From: firewind Newsgroups: comp.os.msdos.djgpp Subject: Re: Interrupts bite....wait...yup they do :-) Date: 7 Oct 1997 23:36:02 GMT Organization: Netcom Lines: 41 Message-ID: <61eh12$i20@dfw-ixnews5.ix.netcom.com> References: <343892FB DOT 10E2 AT fm-net DOT com> NNTP-Posting-Host: elp-tx3-04.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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? > NewSB16.pm_offset =(int)SB16_ISR; > NewSB16.pm_selector=_go32_my_cs(); > _go32_dpmi_get_protected_mode_interrupt_vector(BLASTER.SBIntr+8,&OldSB16); > _go32_dpmi_allocate_iret_wrapper(&NewSB16); 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) _go32_dpmi_allocate_real_mode_callback_iret(&NewSB16, &rm_regs); > _go32_dpmi_set_protected_mode_interrupt_vector(BLASTER.SBIntr+8,&NewSB16); and _go32_dpmi_set_real_mode_interrupt_vector(BLASTER.SBIntr+8, &NewSB16) [snip-- other stuff looks good] > everything is being done in the usual way, but i'll be darn if that > stupid thing will go into autoinit! > The new interrupt handler function does send an EOI (0x20) and it just > isn't working for me :( > Thanks for bothering to read this :) HTH. -- [- firewind -] [- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -] [- "You're just jealous because the voices talk to -me-." -] [- Have a good day, and enjoy your C. -]