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-06-28 22:28
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] Problem Caused by Interrupts under DOS, Help, Help, Help! View 693 Replies 1
Original Poster Posted 2003-03-28 00:00 ·  中国 广东 联通
初级用户
Credits 105
Posts 1
Joined 2003-03-28 00:00
23-year member
UID 1292
Gender Male
Status Offline
I used TC++3.0 to write a program that runs under DOS (compiled in large model), using timer interrupts to process some sampled data. The program basically runs normally, but after interrupts are enabled, some if statements start behaving incorrectly. It clearly does not meet the condition and should jump to the else branch, but the program just keeps executing in sequence without making the judgment. Extremely strange!!! I ask all the experts to point me in the right direction! (Note: when interrupts are not enabled, the if works normally)
Floor 2 Posted 2005-04-17 00:00 ·  中国 广东 中山 电信
初级用户
Credits 107
Posts 2
Joined 2005-04-17 00:00
21-year member
UID 38288
Gender Male
Status Offline
It should be caused by incorrect floating-point handling in the program, not an interrupt issue!
Forum Jump: