Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can all published DOS interrupts be emulated with protected-mode code?

0
0 Posted

Can all published DOS interrupts be emulated with protected-mode code?

0
0

While a protected-mode system could be coded this way, we don’t do this in our DOS extenders. Rather almost all DOS and BIOS interrupts are resignaled in real mode, after switching from protected mode. Of course, there is some copying of data and translation of pointers to make it work transparently, but we chose to code our systems to work this way to maximize compatibility. By reflecting most interrupts to real mode, we insure that your DOS-extended program will be maximally compatible with existing software and systems. For example, if a TSR hooks the disk reading interrupt, because we reflect the disk reading interrupts to real mode, we insure that the TSR hook will be called. The downside to this approach is that every DOS and BIOS call causes a switch to real mode and back again. Although most computers can perform such switching at a rate of tens of thousands of switches per second, the switching time can have a noticible impact on the performance of programs which heavily use D

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123