Hello, I have seen the following topic.
I am interested in contacting the keyboard via the IN / OUT instructions and setting various modes, such as turning on the caps lock led. So far I have encountered problems doing so. The following link may help.
I have tried various combinations such as
mov al,0EDh ;ED command - Send LED bits. The next byte written to port 60h updates the LEDs on the keyboard.
out 60h,al ;out on port 60h
mov al,00000111b ;led status - all leds on. bits 3-7 = reserved(zero)
out 60h,al ;out on port 60h
I would appreciate any help. Thanks.
EDIT: As I said, using port 60h didn't work I have searched around the net for the usage of 0040:0017. One of the webs stated that bits 5,6,7 contain data about the leds' status
I tried using this code:
mov al,es:[0017h]
or al,11100000b
mov es:[0017h],al
and it didn't work either.
I might be doing that wrong, so could anyone please help me or send me a working code for turning all 3 leds on?
EDIT2: I ran my application on MS-DOS installed on a VM, and the code worked perfectly.
My question is: how can I make it work outside MS-DOS??