Re: Memory contents different on real hardware
Posted: Wed Jun 04, 2014 12:46 pm
What hardware are you using? Have you tried plugging in a different keyboard?
The Place to Start for Operating System Developers
http://f.osdev.org/
On an entirely separate note, it looks like you may not be parsing scan codes correctly. Those extra scan codes you're receiving shouldn't be the same as the shift key.When I tried writing data to the output buffer, I found the keyboard controller only forwards the "Set LED state" command and "Set Typematic Rate/Delay" command. It does not allow any other commands to be sent to the keyboard. However, it does emulate the keyboard's response by placing "acknowledge" (0xFA) in the input buffer when appropriate (or 0xEE in response to the "Echo" command.) Furthermore, if the keyboard sends it an erroneous byte, the keyboard controller takes care of error handling (sends the "Retry" command; if byte still erroneous; sends error code to keyboard and places error code in input buffer.)