1 |
24 |
robfinch |
;--------------------------------------------------------------------------
|
2 |
|
|
; PS2 scan codes to ascii conversion tables.
|
3 |
|
|
;--------------------------------------------------------------------------
|
4 |
|
|
;
|
5 |
|
|
unshiftedScanCodes_:
|
6 |
|
|
byte $2e,$a9,$2e,$a5,$a3,$a1,$a2,$ac
|
7 |
|
|
byte $2e,$aa,$a8,$a6,$a4,$09,$60,$2e
|
8 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$71,$31,$2e
|
9 |
|
|
byte $2e,$2e,$7a,$73,$61,$77,$32,$2e
|
10 |
|
|
byte $2e,$63,$78,$64,$65,$34,$33,$2e
|
11 |
|
|
byte $2e,$20,$76,$66,$74,$72,$35,$2e
|
12 |
|
|
byte $2e,$6e,$62,$68,$67,$79,$36,$2e
|
13 |
|
|
byte $2e,$2e,$6d,$6a,$75,$37,$38,$2e
|
14 |
|
|
byte $2e,$2c,$6b,$69,$6f,$30,$39,$2e
|
15 |
|
|
byte $2e,$2e,$2f,$6c,$3b,$70,$2d,$2e
|
16 |
|
|
byte $2e,$2e,$27,$2e,$5b,$3d,$2e,$2e
|
17 |
|
|
byte $ad,$2e,$0d,$5d,$2e,$5c,$2e,$2e
|
18 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$08,$2e
|
19 |
|
|
byte $2e,$95,$2e,$93,$94,$2e,$2e,$2e
|
20 |
|
|
byte $98,$7f,$92,$2e,$91,$90,$1b,$af
|
21 |
|
|
byte $ab,$2e,$97,$2e,$2e,$96,$ae,$2e
|
22 |
|
|
|
23 |
|
|
byte $2e,$2e,$2e,$a7,$2e,$2e,$2e,$2e
|
24 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
25 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
26 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
27 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
28 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
29 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
30 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
31 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
32 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
33 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
34 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
35 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
36 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
37 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
38 |
|
|
byte $2e,$2e,$fa,$2e,$2e,$2e,$2e,$2e
|
39 |
|
|
|
40 |
|
|
shiftedScanCodes_:
|
41 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
42 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$09,$7e,$2e
|
43 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$51,$21,$2e
|
44 |
|
|
byte $2e,$2e,$5a,$53,$41,$57,$40,$2e
|
45 |
|
|
byte $2e,$43,$58,$44,$45,$24,$23,$2e
|
46 |
|
|
byte $2e,$20,$56,$46,$54,$52,$25,$2e
|
47 |
|
|
byte $2e,$4e,$42,$48,$47,$59,$5e,$2e
|
48 |
|
|
byte $2e,$2e,$4d,$4a,$55,$26,$2a,$2e
|
49 |
|
|
byte $2e,$3c,$4b,$49,$4f,$29,$28,$2e
|
50 |
|
|
byte $2e,$3e,$3f,$4c,$3a,$50,$5f,$2e
|
51 |
|
|
byte $2e,$2e,$22,$2e,$7b,$2b,$2e,$2e
|
52 |
|
|
byte $2e,$2e,$0d,$7d,$2e,$7c,$2e,$2e
|
53 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$08,$2e
|
54 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
55 |
|
|
byte $2e,$7f,$2e,$2e,$2e,$2e,$1b,$2e
|
56 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
57 |
|
|
|
58 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
59 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
60 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
61 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
62 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
63 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
64 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
65 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
66 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
67 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
68 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
69 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
70 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
71 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
72 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
73 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
74 |
|
|
|
75 |
|
|
; control
|
76 |
|
|
keybdControlCodes_:
|
77 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
78 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$09,$7e,$2e
|
79 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$11,$21,$2e
|
80 |
|
|
byte $2e,$2e,$1a,$13,$01,$17,$40,$2e
|
81 |
|
|
byte $2e,$03,$18,$04,$05,$24,$23,$2e
|
82 |
|
|
byte $2e,$20,$16,$06,$14,$12,$25,$2e
|
83 |
|
|
byte $2e,$0e,$02,$08,$07,$19,$5e,$2e
|
84 |
|
|
byte $2e,$2e,$0d,$0a,$15,$26,$2a,$2e
|
85 |
|
|
byte $2e,$3c,$0b,$09,$0f,$29,$28,$2e
|
86 |
|
|
byte $2e,$3e,$3f,$0c,$3a,$10,$5f,$2e
|
87 |
|
|
byte $2e,$2e,$22,$2e,$7b,$2b,$2e,$2e
|
88 |
|
|
byte $2e,$2e,$0d,$7d,$2e,$7c,$2e,$2e
|
89 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$08,$2e
|
90 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
91 |
|
|
byte $2e,$7f,$2e,$2e,$2e,$2e,$1b,$2e
|
92 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
93 |
|
|
|
94 |
|
|
keybdExtendedCodes_:
|
95 |
|
|
byte $2e,$2e,$2e,$2e,$a3,$a1,$a2,$2e
|
96 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
97 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
98 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
99 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
100 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
101 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
102 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
103 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
104 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
105 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
106 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
107 |
|
|
byte $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
108 |
|
|
byte $2e,$95,$2e,$93,$94,$2e,$2e,$2e
|
109 |
|
|
byte $98,$99,$92,$2e,$91,$90,$2e,$2e
|
110 |
|
|
byte $2e,$2e,$97,$2e,$2e,$96,$2e,$2e
|
111 |
|
|
|