🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5416

Re: PC-DOS 3.1 and "echo off"

#5416
From: Glenn Connery
Date: Wed, 22 Jan 1986 21:54
43 lines
1955 bytes
A better patch for avoiding the floppy diskette timeout problems on ATs
running xtals >15MHz...
;
; Change Diskette Parameter Table's motor startup delay
; by Glenn Connery, BNR, January 1986.
;
; The Diskette Parameter Table is pointed to by interrupt vector 1E at
; address 78H.  The table consists of 11 bytes (0..A) the last of which
; is the motor start up time, in 1/8ths of a second (normal clock).  By
; modifying this value you can correct for the faster crystal installed
; in your PC-AT.
;
; The normal value is 8 (is 1 second).  Running a 9MHz machine instead of
; a 6MHz machine means that 0C (or 1.5 seconds normal time) should be used.
;
; No warranty is made of the suitability of this program for any purpose
; nor any guarantee that it will function as specified.  Use it at your
; own risk.
;
code          segment   public
	      assume    cs:code,ds:nothing
	      org       100h
;
start:        mov       ax,0
	      mov       ds,ax
;
	      mov       bx,ds:[78h]     ;offset
	      mov       es,ds:[7Ah]     ;segment
;
; and finally, stuff the new delay period into the appropriate place in the
; table... this is the byte to change for different crystal speeds
;
	      mov       byte ptr es:[bx+0Ah],0CH
;
exit:         mov       al,0
	      mov       ah,4ch
	      int       21h
;
code          ends
	      end       start

-----
Glenn
Technical Details
Message-ID: <233@bnrmtv.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!amdahl!bnrmtv!connery

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site bnrmtv.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!amdahl!bnrmtv!connery
From: connery@bnrmtv.UUCP (Glenn Connery)
Newsgroups: net.micro.pc
Subject: Re: PC-DOS 3.1 and "echo off"
Message-ID: <233@bnrmtv.UUCP>
Date: Wed, 22-Jan-86 16:54:59 EST
Article-I.D.: bnrmtv.233
Posted: Wed Jan 22 16:54:59 1986
Date-Received: Fri, 24-Jan-86 22:18:19 EST
Organization: Bell Northern Research, Mtn. View, CA
Lines: 43