Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!usc!cs.utexas.edu!uunet!tellab5!fayne From: fayne@tellab5.TELLABS.COM (Jeffrey Fayne) Newsgroups: comp.sys.ibm.pc Subject: Re: Turning off NumLock through software Keywords: NumLock Message-ID: <1756@tellab5.TELLABS.COM> Date: 13 Nov 89 13:59:04 GMT References: <3932@ur-cc.UUCP> Reply-To: fayne@tellab5.UUCP (Jeffrey Fayne) Distribution: usa Organization: Tellabs, Inc. Lisle IL Lines: 23 The procedure for turning off the Num Lock key is as follows sub ax,ax ; set ES to 0 mov es,ax mov al,00100000B ; bit 5 is num lock toggle or es:[418h],al ; directly change the status byte This code fragment when executed will TOGGLE (ie OFF --> ON, ON --> OFF)the Num Lock key. Jeff -- _____________________________________________________________________________ If it flies, \ _ / | Jeffrey M. Fayne it dies... \ /^ ^\ / | Tellabs, Inc. ____________\_( . )_/____________ | Lisle, IL (312)-969-8800 --*/--|_| (___) |_|--\*-- | * O O * | Standard Disclaimer Applies _____________________________________________________________________________