Difference between revisions of "OSBYTE &E1"

From BeebWiki
Jump to: navigation, search
(Add explanation)
m (Tweeked title.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:OSBYTE]]
 
[[Category:OSBYTE]]
OSBYTE &E1 (225) - Read/Write Interpretation of F-Keys
+
{{PageTitle|OSBYTE &E1 (225): Character &80-&8F interpretation}}
  
On entry: A=&E1, ''<NEW VALUE>'' = (''<OLD VALUE>'' AND Y) EOR X
+
OSBYTEs 221 to 228 control the interpretation of characters &80-&FF
 
+
when read from the keyboard buffer, or the serial input buffer when
On exit: X=''<OLD VALUE>'', Y=''<NEXT OSBYTE>'' (i.e. current value for OSBYTE &E2)
+
character interpretation is enabled.
 
 
The values are:
 
  
 
{| class="wikitable"
 
{| class="wikitable"
! Value !! Function
+
! OSBYTE !! Characters || Modifier || Keys || Default || Effect || Electron notes
 +
|-
 +
| [[OSBYTE &E1|OSBYTE 225]] || style="text-align:center;" | &80-&8F || -          || function keys 0-9, cursor keys || style="text-align:center;" | &01 || soft key || default=&01, FUNC+numbers, cursor keys
 +
|-
 +
| [[OSBYTE &E2|OSBYTE 226]] || style="text-align:center;" | &90-&9F || SHIFT      || function keys 0-9, cursor keys || style="text-align:center;" | &80 || &80-&8F || default=&01, FUNC+A - FUNC+P
 +
|-
 +
| [[OSBYTE &E3|OSBYTE 227]] || style="text-align:center;" | &A0-&AF || CTRL      || function keys 0-9, cursor keys || style="text-align:center;" | &90 || &90-&9F || default=&01, FUNC+Q - FUNC+Z, FUNC with : ; , - . /
 +
|-
 +
| [[OSBYTE &E4|OSBYTE 228]] || style="text-align:center;" | &B0-&BF || SHIFT+CTRL || function keys 0-9, cursor keys || style="text-align:center;" | &00 || ignore ||
 +
|-
 +
| [[OSBYTE &DD|OSBYTE 221]] || style="text-align:center;" | &C0-&CF || -          || function keys 10,11,12, Insert || style="text-align:center;" | &01 || soft key ||
 
|-
 
|-
| 0 || Ignore key
+
| [[OSBYTE &DE|OSBYTE 222]] || style="text-align:center;" | &D0-&DF || SHIFT      || function keys 10,11,12, Insert || style="text-align:center;" | &D0 || &D0-&DF ||
 
|-
 
|-
| 1 || Expand as normal soft key
+
| [[OSBYTE &DF|OSBYTE 223]] || style="text-align:center;" | &E0-&EF || CTRL      || function keys 10,11,12, Insert || style="text-align:center;" | &E0 || &E0-&EF ||
 
|-
 
|-
| 2-&FF || Add value to soft key number to provide ASCII code
+
| [[OSBYTE &E0|OSBYTE 224]] || style="text-align:center;" | &F0-&FF || SHIFT+CTRL || function keys 10,11,12, Insert || style="text-align:center;" | &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.
  
On the Electron this controls the effect of FUNC + 0-9.
+
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==
 
==See Also==
* http://mdfs.net/Docs/Comp/BBC/OsbyteA6
+
* http://mdfs.net/Docs/Comp/KeyMap/BBC
* [[OSBYTE &E2]]
+
* http://mdfs.net/Docs/Comp/KeyMap/Electron
* [[OSBYTE &E3]]
+
* http://mdfs.net/Docs/Comp/KeyMap/RISCOS
* [[OSBYTE &E4]]
 
  
 
[[User:Jgharston|Jgharston]] 23:03, 26 May 2009 (UTC)
 
[[User:Jgharston|Jgharston]] 23:03, 26 May 2009 (UTC)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 04:32, 20 July 2020 (CEST)

Latest revision as of 02:41, 29 December 2022

OSBYTE &E1 (225): Character &80-&8F 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:32, 20 July 2020 (CEST)