Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Version 1.0 Netnews CMS/BITNET 5/19/85; site PSUVM.BITNET Path: utzoo!linus!philabs!cmcl2!seismo!rochester!cmu-cs-pt!cadre!psuvax1!psuvm.bitnet!hbx From: HBX@psuvm.BITNET Newsgroups: net.micro.att Subject: Timing of PC 6300 under IBM PC DOS Message-ID: <2159HBX@psuvm> Date: Mon, 26-Aug-85 20:14:25 EDT Article-I.D.: psuvm.2159HBX Posted: Mon Aug 26 20:14:25 1985 Date-Received: Thu, 29-Aug-85 07:25:14 EDT Lines: 41 I few weeks ago I posted a query as to how to get the system clock on the AT&T 6300 to keep proper time while running IBM PC DOS. The problem is that it gains time. I received some helpful comments, but to date have not established a program to do this. The issue seems to be resetting the divisor rate in the 8253 programmable timer. (I admit to to being a novice in these matters.) I have two questions: 1) is this a feasible approach, and 2) why won't the following assembly language program do the job? ; Program to reset the 8253 timer chip on the AT&T 6300 ; to be compatible with IBM PC DOS 3.1 clockseg segment byte public 'prog' assume cs:clockseg clockset proc pushf cli ;disable interrupts mov ax,036h out 43h,al ;ready timer mov ax,61441d ;new divisor rate out 40h,al ;send the first half to the timer mov al,ah out 40h,al ;now send the other half popf int 20h ;return to dos clockset endp clockseg ends end Terry Harrison 310 Business Administration Building Penn State University University Park, PA 16802 (814) 863-3357 BITNET: hbx@psuvm UUCP: {akgua,allegra,ihnp4,cbosgd}!psuvax1!PSUVM.BITNET!hbx ARPA: hbx%psuvm.bitnet@wiscvm.arpa