Mail Archives: djgpp/1997/10/12/06:49:15
firewind <firewind AT metroid DOT dyn DOT ml DOT org> wrote:
> 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]
Doh, and I forgot to mention, rewrite your interrupt handler to accept a
'__dpmi_regs *whatever' as an argument, and if you need to access registers
at any point within, make sure to use 'whatever'.
--
[- 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. -]
- Raw text -