🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

which timer interrupt to use? (1A vs 1C)

#2263
From: Paul Traina
Date: Mon, 17 Sep 1990 18:33
30 lines
1917 bytes
I'm writing a rallye clock to work under MSDOS.  This is a timer that
counts in 100ths of minutes (600 milisecond ticks).

Originally, I was doing it by speeding up the system timer and counting
ticks, then calling the original INT 1A routine from my handler every
n ticks.  Well, this made correction for delay really ugly,  so I've
now just reprogrammed the system timer to generate interrupts exactly
20 times a second instead of 18.207 times a second.
This lets me count 12 interrupts and bump by 600ms "tick" counter.

Now, the long and the short of it is that I know this screws up the
system time-of-day clock.  I don't care.  It's close enough that it
shouldn't screw up the floppy drive timeout too bad either.

I now have one question left (after examining the BIOS code).

INT 1A is triggered by the system timer.  The BIOS interrupt handler
in turn calls INT 1C when it is done doing its stuff.

I'd like this application to be usable with QuarterDeck or PC view or
any reasonable multi-tasking executive (I don't want to make this into
a TSR if I can avoid it).  So, should I be stealing INT 1A or INT 1C?
Right now I steal 1A and know how that works.

Paul
--
You know what Stuart, I like you.  You're not like the other people, here,
in the trailer park.  Now don't get me wrong,  they're good Americans;
but they're content to sit back,  maybe watch a little Mork and Mindy on
channel 57...maybe kick back a cool Coors 16-ouncer.	-- the dead milkmen
Technical Details
Message-ID: <pst.653596434@ack.stanford.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!shelby!morrow.stanford.edu!ack.stanford.edu!pst

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!shelby!morrow.stanford.edu!ack.stanford.edu!pst
From: pst@ack.stanford.edu (Paul Traina)
Newsgroups: comp.os.msdos.programmer
Subject: which timer interrupt to use? (1A vs 1C)
Message-ID: <pst.653596434@ack.stanford.edu>
Date: 17 Sep 90 18:33:54 GMT
Sender: news@morrow.stanford.edu (USENET News System)
Organization: Data Center, Stanford University, California, USA
Lines: 30