Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!drutx!druil!gold From: gold@druil.UUCP (G. Terry Gold) Newsgroups: net.micro.pc Subject: Need help with TSR program Message-ID: <157@druil.UUCP> Date: Tue, 14-Oct-86 17:54:50 EDT Article-I.D.: druil.157 Posted: Tue Oct 14 17:54:50 1986 Date-Received: Fri, 17-Oct-86 10:00:05 EDT Organization: AT&T Information Systems Labs, Denver, Co Lines: 25 1. Does anyone have the source to a memory resident clock utility? 2. Re: 1 I've tried writting this myself and can't seem to make it work. I've written quite a few TSR programs, including several that steal the timer interupt, but this one has me stumped. I've found that I can't use the int 21H, 2cH function call because the PC tech ref manual says that you should only use functions below 9H. I've seen a way around this (make a copy of the stack) but isn't there an easier way? My next attempt was to read the port directly, but it always returns a 0FH indicating (so my manual says) that it was being updated when I tried to read it. I've done retrys and always get the 0FH. Any ideas? (My end goal is a memory resident elapsed timer.) Thanks, -- ihnp4 \ Terry Gold AT&T ISL --- druil!gold Denver, Colorado allegra / (303) 538-1135