EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

kbunlock.htm

KeyBoard Unlock is a simple DOS program which cancels the keyboard lock established by device driver kblock.sys . Keyboard is unlocked by sending a command 0xF6 to keyboard port 0x60.

Format
COM
Platform
DOS
Documented
[DosDriver]
See also
kblock
Build
euroasm kbunlock.htm
Run
Add line kbunlock.com to AUTOEXEC.BAT.
When the keyboard has been locked by kblock.sys placed in CONFIG.SYS, its no longer possible to launch other program from keyboard, that is why it must be unlocked by this automatically executed program, or with the main application, which should output the command 0xF4 to keyboard port 0x60.
See also
kblock
          EUROASM DumpWidth=20,CPU=086,Priv=Enabled
kbunlock  PROGRAM Format=COM
           MOV AL,0xF4
           OUT 0x60,AL
           MOV DX,Message$
           MOV AH,9 ; Write $-terminated message on screen.
           INT 0x21
           RET
Message$   DB 13,10,"Keyboard is no longer disabled by KBLOCK.",13,10,'$'
          ENDPROGRAM kbunlock

▲Back to the top▲