Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

425 As an alternative the keys can produce a single ASCII code. The statement *FX225,240 would set the base value for the function keys to 240 thus causing key f0 to produce ASCII code 240, f1 to produce 241 and so on to f9 which would produce 249. This enables these keys to produce ASCII codes for user defined characters. *FX225,1 returns the keys to their normal function of generating strings. *FX225,0 makes the keys have no effect. On entry Y must contain zero. OSBYTE call with A=&E2 (226) Set base number for SHIFT function key codes Pressing one of the function keys while the SHIFT key is pressed will normally produce ASCII codes in the range 128 to 137.

These values were chosen with the Teletext codes in mind. f0 128 Nothing f1 129 Red alphanumeric f2 130 Green alphanumeric f3 131 Yellow alphanumeric f4 132 Blue alphanumeric f5 133 Magenta alphanumeric f6 134 Cyan alphanumeric f7 135 White alphanumeric f8 136 Flash f9 137 Steady Shift function key ASCII code Teletext effect These codes are said to have a ‘base value’ of 128 since key f0 produces a code 128. If the user wishes, the base value of the ASCII codes can be changed by using this call: *FX226,144 This would set the SHIFT function key codes to produce equivalent graphics color Teletext codes. The default setting is *FX226,128 On entry Y must contain zero.