中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-31 19:59
47,815 topics / 349,930 posts / today 0 new / 48,290 members
DOS开发编程 & 发展交流 (开发室) » DOS interrupt?
Printable Version  2,221 / 4
Floor1 xyh36014789 Posted 2007-11-03 10:32
初级用户 Posts 32 Credits 91
Original situation of the DOS system:
There is a program A running normally, and the generated data is stored in a file A.

Design requirements:
Now there is a board that uses 8253 for timing interrupts, and it is connected to IRQ3, and the interrupt can be generated normally; now I have made an interrupt resident program, and I want to use the interrupt of IRQ3 to operate the file A. I use ctrl+break interrupt to simulate the file operation in the interrupt, and it always crashes. I hope that capable friends can help solve it together;

Little brother is willing to use one month's living expenses as a reward!
QQ:36014789

http://www.cn-dos.net/forum/viewthread.php?tid=35023&fpage=1
Floor2 netwinxp Posted 2007-11-12 12:01
高级用户 Posts 366 Credits 741
Writing files using DOS interrupts, it is recommended to use BIOS INT13H to write directly to the disk. Using DOS file write function calls is prone to interrupt reentry leading to system crashes.
Floor3 shendeemeng Posted 2007-11-30 18:18
新手上路 Posts 10 Credits 19
Floor4 nokor Posted 2007-12-27 23:14
初级用户 Posts 11 Credits 27
Personally, I think it's not advisable to write files in an interrupt. Instead, the interrupt should set a flag, and then use the polling method to write the file.
Floor5 tigerdos Posted 2008-01-06 13:01
初级用户 Posts 24 Credits 33
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023