[comp.sys.ibm.pc] turn off numlock

mcdonald@uxe.cso.uiuc.edu (01/16/89)

Here is the source code to turn off the numlock key:

cseg	segment para public 'code'
	org	100h
BREAKL	proc far
	assume cs:cseg,ds:cseg	
	jmp     xxxxxx 
kbflag	equ	417h	
xxxxxx:
	mov	ax,0
	mov	es,ax
        and     byte ptr es:[0417h],0dfh
	int	020h
BREAKL	endp
cseg	ends
end	BREAKL

Run through MASM and then EXE2BIN. Don't forget the last step.

Here is the executable, uuencoded:

begin 0666 numx.com
0ZP&0N   CL F@"87!-_-($8!
 
end



Simple, isn't it?