Hi!! I was exploring a few dos softwares , while doing so it clicked me to find out the video mode in which they were working. So i'm trying to write down a program to detect the video mode in which a aprticular program is running.
I actually planned that i'll write a TSR which i'll load before running the target program,then run the target program and on pressing a key or a key combination the TSR will come into picture and display the video mode or wite it onto a file which can be read later.
the problem is that to invoke the TSR an interrupt has to occur (for example keyboard interrupt here) and to detect the video mode i'll have to use int86 funtion which issues an interrupt BUT another interrupt cannot occur untill the TSR has executed. WHAT CAN I DO NOW
i'm using Turbo C++ 3.0 compiler