Path: 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 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! ========================================================================