Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

And now: int 0x21 in hw interrupt handler? (Developers)

posted by myrkraverk, 14.12.2012, 02:58

Thank you Japheth.

And now I have a different question: What issues will or can I run into when calling int 0x21 inside my interrupt handler?

In this case, I'm thinking of using it to load PCM data from a file to the DMA buffer. This means ah = 0x3f; int 0x21. I assume there might be two issues: reentrancy and time (loading from a file can take while I suppose).

Context. I'll be using the DMA controller in repeat mode and after each half of the buffer, the SB will issue IRQ 7 so I can fill the other half with new data = double buffering.

I read somewhere that int 0x21 are not reentrant so using it inside IRQ 7 might be a bad idea since it can be flagged while DOS is already servicing 0x21, right?

The only thing I can think of is busy waiting for a flag toggled in the IRQ handler. Is there anything else I can do?

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (2 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum