Keyboard problem
Posted: Thu Oct 16, 2008 7:02 am
I converted to 32bit using the tutorial, (copied
exactly, then I wanted to do something on my own, so I decided to make the OS print whatever was typed in the keyboard. This is the code that I used:
keyPress:
WaitLoop: in al, 64h
and al, 10b
jz WaitLoop
in al, 60h
mov bl,al
call Putch32
jmp keyPress
(Even part of this code is copied), I am using Bochs emulator, and it does nothing when I press the keys. (I included stdio.inc)
exactly, then I wanted to do something on my own, so I decided to make the OS print whatever was typed in the keyboard. This is the code that I used:
keyPress:
WaitLoop: in al, 64h
and al, 10b
jz WaitLoop
in al, 60h
mov bl,al
call Putch32
jmp keyPress
(Even part of this code is copied), I am using Bochs emulator, and it does nothing when I press the keys. (I included stdio.inc)