OSBYTE &E4

From BeebWiki
Jump to: navigation, search
OSBYTE &E4 (228): Character &B0-&BF interpretation

OSBYTEs 221 to 228 control the interpretation of characters &80-&FF when read from the keyboard buffer, or the serial input buffer when character interpretation is enabled.

OSBYTE Characters Modifier Keys Default Effect Electron notes
OSBYTE 225 &80-&8F - function keys 0-9, cursor keys &01 soft key default=&01, FUNC+numbers, cursor keys
OSBYTE 226 &90-&9F SHIFT function keys 0-9, cursor keys &80 &80-&8F default=&01, FUNC+A - FUNC+P
OSBYTE 227 &A0-&AF CTRL function keys 0-9, cursor keys &90 &90-&9F default=&01, FUNC+Q - FUNC+Z, FUNC with : ; , - . /
OSBYTE 228 &B0-&BF SHIFT+CTRL function keys 0-9, cursor keys &00 ignore
OSBYTE 221 &C0-&CF - function keys 10,11,12, Insert &01 soft key
OSBYTE 222 &D0-&DF SHIFT function keys 10,11,12, Insert &D0 &D0-&DF
OSBYTE 223 &E0-&EF CTRL function keys 10,11,12, Insert &E0 &E0-&EF
OSBYTE 224 &F0-&FF SHIFT+CTRL function keys 10,11,12, Insert &F0 &F0-&FF

Break inserts &CA into the keyboard buffer. On some systems, Alt+key is treated as a SHIFT+CTRL modifer. Note that SHIFT+CTRL also has the function of pausing screen scrolling, so entering SHIFT+CTRL+key interactively may pause scrolling.

The interpretation values are:

  • 0 - ignore the character
  • 1 - expand as soft key or Electron shortcut key for &90-&AF
  • 2 - return &00,character (MOS 3.50, MOS 5 and later)
  • otherwise, use as a base value and add to (character AND 15)

See Also

Jgharston 23:03, 26 May 2009 (UTC) Jgharston (talk) 04:35, 20 July 2020 (CEST)