This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: KYTB Type: Variable Category: Keyboard Summary: Lookup table for in-flight keyboard controls Deep dive: The key logger
The pitch, roll, speed and laser keys (i.e. the seven primary flight control keys) have bit 7 set, so they have 128 added to their internal values. This doesn't appear to be used anywhere.
Flight, 6502SP, Electron
Note that KYTB actually points to the byte before the start of the table, so the offset of the first key value is 1 (i.e. KYTB+1), not 0. Other entry points: KYTB Contains an RTS
Flight, 6502SP, Electron
RTS \ Return from the subroutine (used as an entry point and \ a fall-through from above)
The Master has a very different set of internal key numbers to the BBC Micro and Electron, so the keyboard lookup table for the Master is also very different; the Electron and BBC Micro are much more similar, but the Electron has no TAB key, so "-" launches an energy bomb instead.
Tap on a version to expand it, and tap it again to show to all variations.