Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!mordor!sri-spam!rutgers!im4u!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes From: wes@obie.UUCP (Barnacle Wes) Newsgroups: comp.lang.c Subject: Re: Timer driven functions Message-ID: <6@obie.UUCP> Date: 30 Jan 88 10:54:14 GMT References: <1450@phoenix.Princeton.EDU> <5080017@hpfcdc.HP.COM> Organization: UinTech, Layton, UT Lines: 18 Summary: Someone who has written 'polling' code on PC in C.. In article <5080017@hpfcdc.HP.COM>, boemker@hpfcdc.HP.COM (Tim Boemker) writes: > > asjoshi@phoenix.Princeton.EDU (Amit S. Joshi) > > > I want to have a piece of code (written in TurboC) to > > be installed as an interrupt such that after a certain number of clock > > ticks the code is executed. > > I don't know the architecture of your particular machine, but on many machines > interrupts are different than subroutines... Turbo C has a lot of special features designed for handling interrupts on the PC. Terry Lambert and others at Century Software (SLC UT) have written quite a bit of polling code for MS-DOS while developing 'Term' for DOS. Try sending mail to him; he might be able to give you some pointers without giving away Century's code and making his boss angry. (...ihnp4!utah-cs!century!terry) Tell him Wes sent you.