Page 1 of 1

IRQ Keyboard

Posted: Sun Sep 30, 2007 9:50 am
by matias_beretta
I want to set up keyboard in real mode, is it ok?

;;;;;;;

push 0
pop es
mov word [es:36], handler
mov [es:38], cs
jmp $

handler:
in al, 96
iret

;;;;;;;

so each time i press a key , the scan code will be in al??

Posted: Sun Sep 30, 2007 6:22 pm
by Jim
Please add comments to your code

Posted: Mon Oct 01, 2007 3:26 am
by JamesM
yes.

As a side note, please use 0x60 instead of 96 cos it confused the hell out of me...

Posted: Mon Oct 01, 2007 6:12 am
by lukem95
most people use hexadecimal numbers for i/o ports etc