Page 1 of 1
Text input
Posted: Fri Aug 09, 2002 8:20 am
by Willy
Okey, now that I have my printing thingy ready, I would need some help with the text input... well to be honest I have *no* idea how it should be done :-\
If you could point me some tuts that would be nice
,
but any other info will also be very useful.
Re:Text input
Posted: Fri Aug 09, 2002 8:24 am
by frank
text input? you mean keyboard input?
Re:Text input
Posted: Fri Aug 09, 2002 9:10 am
by Willy
Well, yes thats what I 'm looking for....
Re:Text input
Posted: Fri Aug 09, 2002 9:13 am
by frank
in al,0x60
or if you'd like to use the win key
in ax,0x60
(ms probably made it 2 bytes 'cause they did want other os-es to use that key)
al or ax then contains the scancode.
for example :1 = esc
but that differs on every keyboard...
make some kind of keyboard modules
(you can find a list of scancodes at osd (search at google: osd keyboard)
Re:Text input
Posted: Fri Aug 09, 2002 9:57 pm
by K.J.
Umm... actually, unless you want to use BIOS ints, you need to use the kbd's IRQ(IRQ 1). It's not really easy to do, mostly because keyboard scancodes vary in legth drastically. A doc on keyboard scancodes, and getting the scancodes is here:
http://osdev.neopages.net/docs/kbd.php
K.J.