flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > LED's |
Author |
|
Redragon 13 Mar 2005, 17:50
I was wondering how you would activate the LED on the keyboard for "CAPS LOCK"... (peferably in fasm) thanks!
|
|||
13 Mar 2005, 17:50 |
|
Redragon 14 Mar 2005, 00:16
heres the code ive come up with so far, but it dosent work..if anyone can tell me why, it would be greatly appreciated
Code: caps: cmp al,0x3A ;if user presses "caps" in al,64h and al,02h mov al,0001b ;caps byte code out 60h,al |
|||
14 Mar 2005, 00:16 |
|
Tomasz Grysztar 14 Mar 2005, 00:25
This piece of code is from my "kelvar" example (you can get it from the Examples section of this website):
Code: set_keyboard_LEDs: ; bl = keyboard LEDs status mov ah,0ADh call write_8042 mov ah,0EDh call write_keyboard mov ah,bl and ah,111b call write_keyboard mov ah,0AEh call write_8042 ret write_8042: in al,64h test al,10b jnz write_8042 mov al,ah out 64h,al ret write_keyboard: mov al,ah out 60h,al in al,60h cmp al,0FAh jne write_keyboard ret Check Ralf Brown's Port list for the details on command codes it uses. |
|||
14 Mar 2005, 00:25 |
|
bubach 15 Mar 2005, 14:35
|
|||
15 Mar 2005, 14:35 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.