Commit 8be723c8 by malcolm

Changed mapping for more control characters

parent cbfd78d1
Showing with 10 additions and 2 deletions
......@@ -2,11 +2,19 @@
#include "pic.h"
#include "serial.h"
#include "idt.h"
#include "string.h"
char scan_map[256] = {' ','E','1','2','3','4','5','6','7','8','9','0','-','=','\b','\t','q','w','e','r','t','y','u','i','o','p',
'[',']','\n','^','a','s','d','f','g','h','j','k','l',';','\'','`','S','\\','z','x','c','v','b','n','m',
',','.','/','S','O','A',' ','C','F','F','F','F','F','F','F','F','F','F','L','L',};
void kbd_irq()
{
serial_hexword(inb(0x60));
int a = inb(0x60);
serial_hexword(a);
if(a<0x80)
terminal_putchar(scan_map[a]);
//else
//terminal_putchar(scan_map[a-0x80]);
serial_writestring("\n");
pic_command(0, PIC_OCW2_EOI);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment