From 4e946e3c1783e48133b861ee5542c88647d1eb6d Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 25 Apr 2012 23:15:02 +0000 Subject: move docs to doc/ --- doc/keyboard.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/keyboard.txt (limited to 'doc/keyboard.txt') diff --git a/doc/keyboard.txt b/doc/keyboard.txt new file mode 100644 index 0000000..afa4482 --- /dev/null +++ b/doc/keyboard.txt @@ -0,0 +1,31 @@ +Name: Generic Keyboard (compatible) +ID: 0x30cf7406 +Version: 1 + +Interrupts do different things depending on contents of the A register: + + A | BEHAVIOR +---+---------------------------------------------------------------------------- + 0 | Clear keyboard buffer + 1 | Store next key typed in C register, or 0 if the buffer is empty + 2 | Set C register to 1 if the key specified by the B register is pressed, or + | 0 if it's not pressed + 3 | If register B is non-zero, turn on interrupts with message B. If B is zero, + | disable interrupts +---+---------------------------------------------------------------------------- + +When interrupts are enabled, the keyboard will trigger an interrupt when one or +more keys have been pressed, released, or typed. + +Key numbers are: + 0x10: Backspace + 0x11: Return + 0x12: Insert + 0x13: Delete + 0x20-0x7f: ASCII characters + 0x80: Arrow up + 0x81: Arrow down + 0x82: Arrow left + 0x83: Arrow right + 0x90: Shift + 0x91: Control -- cgit v1.2.3