TI-H: keyboard scancodes


[Prev][Next][Index][Thread]

TI-H: keyboard scancodes




here are the scancodes i promised. this is a VERY basic list, i dont have
any macros or advanced things (binding F12 to custom+F1) but i will have
stuff like that in time. dont worry. this is just a test list.

|Keyboard Stuff	|Calc Stuff
-------------------------------------------
Dec 	Hex 	ASCII	ScanCode(in hex, just add the $)
27 	1B 	ESC 	37
32 	20 	SP 	11
40 	28 	( 	1D
41 	29 	) 	15
42 	2A 	* 	0C
43 	2B 	+ 	0A
44 	2C 	,	2B
45 	2D 	- 	0B
46 	2E 	. 	19
47 	2F 	/ 	0D
48 	30 	0 	21
49 	31 	1 	22
50 	32 	2 	1A
51 	33 	3 	12
52 	34 	4 	23
53 	35 	5 	1B
54 	36 	6 	13
55 	37 	7 	24
56 	38 	8 	1C
57 	39 	9 	14
61 	3D 	= 	2A
65 	41 	A 	2E
66 	42 	B	26
67 	43 	C	1E
68 	44 	D	16
69 	45 	E	0E
70 	46 	F	2D
71 	47 	G	25
72 	48 	H	1D
73 	49 	I	15
74 	4A 	J	0D
75 	4B 	K	2C
76 	4C 	L	24
77 	4D 	M	1C
78 	4E 	N	14
79 	4F 	O	0C
80 	50 	P	2B
81 	51 	Q	23
82 	52 	R	1B
83 	53 	S	13
84 	54 	T	0B
85 	55 	U	22
86 	56 	V	1A
87 	57 	W	12
88 	58 	X	0A
89 	59 	Y	21
90 	5A 	Z	19
94 	5E 	^	0E
97 	61 	a	Same for A-Z
98 	62 	b
99 	63 	c
100 	64 	d
101 	65 	e
102 	66 	f
103 	67 	g
104 	68 	h
105 	69 	i
106 	6A 	j
107 	6B 	k
108 	6C 	l
109 	6D 	m
110 	6E 	n
111 	6F 	o
112 	70 	p
113 	71 	q
114 	72 	r
115 	73 	s
116 	74 	t
117 	75 	u
118 	76 	v
119 	77 	w
120 	78 	x
121 	79 	y
122 	7A 	z
127 	7F 	DEL	20
?	?	F1	35
?	?	F2	34
?	?	F3	33
?	?	F4	32
?	?	F5	31
		Up	04
		Down	01
		Left	02
		Right	03
		Enter	09
		Tab	38
		Ctrl	36
		Shift	30

I think I can emulate the function of GET_KEY by disabling the
keypad(somehow) and writing the scancodes to (8006). This should work,
seeing as if no key is pressed, 00 is written to (8000), and not (8006).
try this code out.

#include "usgard.h"

.org 0
.db "Keyboard Test",0

call CLEARLCD
KeyBoardLoop:
in (1),a
ld ($8006),a
call GET_KEY
*** Display A register to screen ****
jr KeyBoardLoop
.end


i'm pretty sure that this code does not work. i'm at school and i dont
have my programming sheets. remember, this is not the final product. but
here it is. just like i promised


FUZZ
I Don't See Why Not
-------------------
listen.to/yankovic
ICQ: 3512251