🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7478

defining a timer interrupt function question

#7478
From: Joe Biehner
Date: Wed, 06 Jan 1993 17:32
31 lines
1661 bytes
I was wondering if anybody has had any experience implementing timer interrupt
functions using Borland C++ 5.0/5.1?  Recently I attempted to implement one
for a project and was unsuccessful; Borland Tech Support wasn't much help.

What I was able to do was implement the example timer interrupt in the book,
but that wasn't my exact implementation.  The normal stuff worked fine - I 
could save the old interrupt address to a variable and set mine, but when mine
ran, the machine seemed to hang.

Certain things I have learned - you can't use 'printf' from an interrupt
function (it messes up the screen).  Is there anything else that CAN'T be done?
(e.g., if you can't call a function from the interrupt function, where the
called function is part of the main program, etc.)

Also, any tips for debugging such a function would be extremely appreciated,
since 'printf' is NOT an option.

If I've left out any significant details, please let me know.  I'd really like
to understand how to solve this.  By the way, probably the best way to respond
is via the net; I'm not sure that my account is fully equipped to receive
e-mail.

Thanks 10^6 in advance.



Joseph Tokarski, Software Engineer
ADP Dealer Services
1950 Hassell Rd.
Hoffman Estates, IL  60195
(708) 397-1700
Technical Details
Message-ID: <1827@tongo.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!asuvax!ennews!mcdphx!mcspdx!adpgate!joes

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!asuvax!ennews!mcdphx!mcspdx!adpgate!joes
From: joes@adpgate.UUCP (Joe Biehner)
Newsgroups: comp.os.msdos.programmer
Subject: defining a timer interrupt function question
Message-ID: <1827@tongo.UUCP>
Date: 6 Jan 93 17:32:29 GMT
Organization: ADP Dealer Services R&D, Portland, OR
Lines: 31