As you create new scan codes for you keyboard, you have to adapt the KEY file to your new scan codes. Here you can find the definitions that are used.
| Number | Function |
|---|---|
| 0 | Exit emulator |
| 2 | Reset |
| 4 | Debug run |
| 6 | Debug |
| 8 | System config |
| 10 | CPU speed |
| 12 | Lock CPU speed |
| 14 | Stop wave file |
| 16 | Stop Orchestra |
| 18 | Floppy control |
| 20 | Save snapshot |
| 22 | Load snapshot |
| 24 | Hard drive control |
| 26 | DOS Prompt |
| 28 | Cassette control |
| 30 | Audio cassette control |
The emulator key file has 2x128 words for keyboard translation. Each scan code addresses a word in the key file. The lower 128 without shift state, the upper 128 with shift state. To keep the brain busy Dave shifted the scan code for keys E0 47 - E0 53 to 67 - 73.
The TRS-80 Emulator translation word holds several information.
| Mode \ Part | Bit 15 | Bit 9 | Bit 8 | Bit 7-4 | Bit 3-0 |
|---|---|---|---|---|---|
| normal | 0 | not used |
0=unshift 1=shift |
row | column |
| emulator | 1 | 1=shift key | 1=function key | function | function |
The row and column address the above TRS-80 key map.
The functions are listed to the right.
For the shift keys the function code 1=left and 2=right.