China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 10:17
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » DOS interrupt? View 1,949 Replies 4
Original Poster Posted 2007-11-03 10:32 ·  中国 河南 郑州 联通
初级用户
Credits 91
Posts 32
Joined 2007-06-22 16:33
19-year member
UID 92089
Gender Male
Status Offline
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
Floor 2 Posted 2007-11-12 12:01 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
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.
Floor 3 Posted 2007-11-30 18:18 ·  中国 北京 朝阳区 联通
新手上路
神的恶梦
Credits 19
Posts 10
Joined 2007-11-30 17:55
18-year member
UID 104271
Gender Male
Status Offline
Floor 4 Posted 2007-12-27 23:14 ·  中国 广东 广州 鹏博士宽带
初级用户
Credits 27
Posts 11
Joined 2007-04-18 11:51
19-year member
UID 85622
Gender Male
Status Offline
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.
Floor 5 Posted 2008-01-06 13:01 ·  中国 内蒙古 呼和浩特 联通
初级用户
Credits 33
Posts 24
Joined 2007-11-19 15:35
18-year member
UID 103139
Gender Male
Status Offline
Forum Jump: