Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!samsung!uunet!portal!atari!imagen!qmsseq!pipkins From: pipkins@qmsseq.imagen.com (Jeff Pipkins) Newsgroups: comp.sys.ibm.pc Subject: Re: Turning off NumLock through software Keywords: NumLock Message-ID: <43@qmsseq.imagen.com> Date: 10 Nov 89 17:42:08 GMT References: <3932@ur-cc.UUCP> Reply-To: pipkins@qmsseq.UUCP (Jeff Pipkins) Distribution: usa Organization: QMS Inc., Mobile, Alabama Lines: 21 In article <3932@ur-cc.UUCP> bwbe_c50@uhura.cc.rochester.edu (Brent W. Benson) writes: >A friend of mine has a Clone IBM compatible. It is a 12mhz 80286. >When it is turned on, during the initialization process (i.e. memory >check, etc.) the NumLock light goes on. > >While this is not the end of the world, is there some way to turn >it back off in the autoexec.bat file. Or better yet, is there some >way to prevent it happening in the first place. > Try the following assembly-language sequence (if you don't have an assembler, you can use DEBUG's 'A' command.) Mov AX, 40h Mov DS, AX CLI Mov AL, byte ptr [17h] And AL, 0DFh Mov byte ptr [17h], AL STI Ret