Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to keep resident only a part of the program (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 27.08.2021, 21:47

From a performance perspective, this would not be a good way to implement a keyclick program. You have the sound being turned on, waiting, and turning off all inside an INT 09 (hardware IRQ) handler, which is not a good idea. The keyboard is a very high priority IRQ (the only one being higher is the clock at INT 08) and the machine will "stall" inside the IRQ 09 handler waiting for the sound to stop. This could cause some serious performance issues in other programs.

There are a few different ways around this. What may be the easiest/best in this situation would be to simply start the sound within the INT 09 handler and then stop it after a delay using one of the timer interrupts (INT 08 or INT 70h).

 

Complete thread:

Back to the forum
Board view  Mix view
22649 Postings in 2111 Threads, 402 registered users, 827 users online (0 registered, 827 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum