Hi!

14-Апр-2004 23:24 [EMAIL PROTECTED] (Diego Iastrubni) wrote to
[EMAIL PROTECTED]:

DI> I need to write a program which periodically saves the screen contents into
DI> a file. What I have done is trapping int $1C, and every 30 secs, run a 2nd
DI> procedure which opens a file and saves $B800:0000 to it. The problem is
[...]
DI> when I open a file, and start writing to it, the emulator dies.
[...]
DI> If anyone knows what I am doing wrong, please tell me.

     Because DOS is not reenterable (you can't call most DOS function from
inside TSR, when TSR gets control at time of DOS working), you should check
when DOS is in idle state (see INT28 description).

     Also, there are other issues, related to hardware interrupts: when INT8
calls INT1C, it not acknowledge timer interrupt, so, until you return from
INT1C, your system will/can not receive other interupts (timer, keyboard,
etc).




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to