1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*
- * Contains two tables for USB keybaord scan codes
- * Each table is 256 words long to account for all possible scan code
- * One for shifted and one for non-shifted
- */
- /* vritual codes:
- - left 256
- - right 257
- - up 258
- - down 259
- - insert 260
- - home 261
- - pageup 262
- - end 263
- - pagedown 264
- */
- void DATA_USBSCANCODE_NORMAL(){
- asm(
- ".dw 0 0 0 0 97 98 99 100 101 102 103 104 105 106 107 108\n"
- ".dw 109 110 111 112 113 114 115 116 117 118 119 120 121 122 49 50\n"
- ".dw 51 52 53 54 55 56 57 48 10 27 8 9 32 45 61 91\n"
- ".dw 93 92 92 59 39 96 44 46 47 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 260 261 262 127 263 264 257\n"
- ".dw 256 259 258 0 47 42 45 43 10 49 50 51 52 53 54 55\n"
- ".dw 56 57 48 46 92 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- );
- }
- void DATA_USBSCANCODE_SHIFTED(){
- asm(
- ".dw 0 0 0 0 65 66 67 68 69 70 71 72 73 74 75 76\n"
- ".dw 77 78 79 80 81 82 83 84 85 86 87 88 89 90 33 64\n"
- ".dw 35 36 37 94 38 42 40 41 10 27 8 9 32 95 43 123\n"
- ".dw 125 124 124 58 34 126 60 62 63 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 260 261 262 127 263 264 257\n"
- ".dw 256 259 258 0 47 42 45 43 10 49 50 51 52 53 54 55\n"
- ".dw 56 57 48 46 124 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- ".dw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\n"
- );
- }
|