flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Keyboard

Author
Thread Post new topic Reply to topic
listonoš



Joined: 24 Dec 2004
Posts: 6
Location: Czech republic
listonoš 24 Dec 2004, 12:44
Hi all,
please can you tell me how OS can recognize for example right ctrl from left ctrl. My OS run in PM and I have set keyboard mode 2. I know that left ctrl sends me 1Dh on port 60h. But when I press right ctrl there is 1Dh too. I read that keyboard sends E0h but I dont know where I can recieve it.

Thanks, Listonoš
Post 24 Dec 2004, 12:44
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 24 Dec 2004, 13:22
If you press right control, 2 bytes will be sent. The first byte you receive if you read from port 60h will be 0E0h, followed by 1Dh.
Post 24 Dec 2004, 13:22
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
listonoš



Joined: 24 Dec 2004
Posts: 6
Location: Czech republic
listonoš 24 Dec 2004, 19:23
I read first byte from port 60h and then immediately I read second byte. Idea But OS must wait to next interrupt for next byte.
Thanks a lot roticv
Post 24 Dec 2004, 19:23
View user's profile Send private message Reply with quote
listonoš



Joined: 24 Dec 2004
Posts: 6
Location: Czech republic
listonoš 24 Dec 2004, 19:38
For all who are interested in keyboard control I have small documentation (sure, not made by me)

Great holidays and happy New year and also new year


Description:
Download
Filename: keyboard.txt
Filesize: 46.94 KB
Downloaded: 726 Time(s)

Post 24 Dec 2004, 19:38
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.