🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Turn num-lock off and scroll-lock on

#5718
From: Dwayne Bailey
Date: Thu, 11 Apr 1991 02:16
37 lines
1410 bytes
In article <2235@cipc1.Dayton.NCR.COM> mfox@cipc1.Dayton.NCR.COM (Mark Fox) writes:
>
>I'm looking for a programmatic way to turn the numeric lock off and
>the scroll lock on when I power up my PC. Does anyone know a way to do this
>other than manually.
>

The following DEBUG session will create the file NUMSCRL.COM to do what you
wanted:

	DEBUG NUMSCRL.COM
	file not found
	-a
	-XXXX:0100 mov ax,40
	-XXXX:0103 mov ds,ax
	-XXXX:0105 mov al,[40]
	-XXXX:0108 and al,df
	-XXXX:010A or al,10
	-XXXX:010C mov [17],al
	-XXXX:010F ret
	-XXXX:0110 
	-r cx
	CX 0000
	-10
	-w
	Writing 0010 bytes
	-q
	
You have now created NUMSCRL.COM, which will turn off the NumLock and turn
on the ScrollLock.

========================================================================
..!uunet!basfpac!stratsft!dwayne

Dwayne Bailey      +  Strategic Software is ME, so my opinions ARE those
Strategic Software +  of my company!
========================================================================
Technical Details
Message-ID: <133@stratsft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!basfpac!stratsft!dwayne
References: <2235@cipc1.Dayton.NCR.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!basfpac!stratsft!dwayne
From: dwayne@stratsft.UUCP (Dwayne Bailey)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Turn num-lock off and scroll-lock on
Message-ID: <133@stratsft.UUCP>
Date: 11 Apr 91 02:16:54 GMT
References: <2235@cipc1.Dayton.NCR.COM>
Organization: Strategic Software, Allen Park, MI
Lines: 37