Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8be723c8
authored
Nov 02, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Changed mapping for more control characters
parent
cbfd78d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/io.c
src/io.c
View file @
8be723c8
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment