1 |
4 |
robfinch |
;--------------------------------------------------------------------------
|
2 |
|
|
; PS2 scan codes to ascii conversion tables.
|
3 |
|
|
;--------------------------------------------------------------------------
|
4 |
|
|
;
|
5 |
|
|
org (* + 127) & $FFFFFF80
|
6 |
|
|
|
7 |
|
|
unshiftedScanCodes:
|
8 |
|
|
fcb $2e,$a9,$2e,$a5,$a3,$a1,$a2,$ac
|
9 |
|
|
fcb $2e,$aa,$a8,$a6,$a4,$09,$60,$2e
|
10 |
|
|
fcb $2e,$2e,$2e,$2e,$2e,$71,$31,$2e
|
11 |
|
|
fcb $2e,$2e,$7a,$73,$61,$77,$32,$2e
|
12 |
|
|
fcb $2e,$63,$78,$64,$65,$34,$33,$2e
|
13 |
|
|
fcb $2e,$20,$76,$66,$74,$72,$35,$2e
|
14 |
|
|
fcb $2e,$6e,$62,$68,$67,$79,$36,$2e
|
15 |
|
|
fcb $2e,$2e,$6d,$6a,$75,$37,$38,$2e
|
16 |
|
|
fcb $2e,$2c,$6b,$69,$6f,$30,$39,$2e
|
17 |
|
|
fcb $2e,$2e,$2f,$6c,$3b,$70,$2d,$2e
|
18 |
|
|
fcb $2e,$2e,$27,$2e,$5b,$3d,$2e,$2e
|
19 |
|
|
fcb $ad,$2e,$0d,$5d,$2e,$5c,$2e,$2e
|
20 |
|
|
fcb $2e,$2e,$2e,$2e,$2e,$2e,$08,$2e
|
21 |
|
|
fcb $2e,$95,$2e,$93,$94,$2e,$2e,$2e
|
22 |
|
|
fcb $98,$7f,$92,$2e,$91,$90,$1b,$af
|
23 |
|
|
fcb $ab,$2e,$97,$2e,$2e,$96,$ae,$2e
|
24 |
|
|
|
25 |
|
|
fcb $2e,$2e,$2e,$a7,$2e,$2e,$2e,$2e
|
26 |
|
|
fcb $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
27 |
|
|
fcb $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
28 |
|
|
fcb $2e,$2e,$2e,$2e,$2e,$2e,$2e,$2e
|
29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