Difference between revisions of "OSBYTE &E3"

From BeebWiki
Jump to: navigation, search
(Corrected to ctrl not shift for Elextron)
m (Tweeked title.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:OSBYTE]]
 
[[Category:OSBYTE]]
OSBYTE &E3 (227) - Read/Write Interpretation of Ctrl-F-Keys
+
{{PageTitle|OSBYTE &E3 (227): Character &A0-&AF interpretation}}
  
On the '''BBC Micro''' series, this controls the effect of CTRL + f-key.  The default value is 0, causing the key to be ignored.
+
OSBYTEs 221 to 228 control the interpretation of characters &80-&FF
 
+
when read from the keyboard buffer, or the serial input buffer when
On the '''Electron''', CTRL is not supported with the function keys (which are implemented as FUNC + 0-9) but instead covers the effect of FUNC + Q-Z and come of the punctuation keys.  The default value is 1, which causes the firm key expansion of keywords in BASIC.  When using values 2+. these have the soft key offsets of:
+
character interpretation is enabled.
  
 
{| class="wikitable"
 
{| class="wikitable"
! Offset !! +&00 !! +&01 !! +&02 !! +&03 !! +&04 !! +&05 !! +&06 !! +&07 !! +&08 !! +&09 !! +&0A !! +&0B !! +&0C !! +&0D !! +&0E !! +&0F
+
! 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 ||
 
|-
 
|-
| Key || Q || R || S || T || U || V || W || X || Y || Z || *<br/>: || +<br/>; || &lt;<br/>, || =<br/>- || &gt;<br/>. || ?<br/>/
+
| [[OSBYTE &DE|OSBYTE 222]] || style="text-align:center;" | &D0-&DF || SHIFT      || function keys 10,11,12, Insert || style="text-align:center;" | &D0 || &D0-&DF ||
 +
|-
 +
| [[OSBYTE &DF|OSBYTE 223]] || style="text-align:center;" | &E0-&EF || CTRL      || function keys 10,11,12, Insert || style="text-align:center;" | &E0 || &E0-&EF ||
 +
|-
 +
| [[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.
  
See [[OSBYTE &E1]] for more information on the parameters and operation.
+
The interpretation values are:
 
+
* 0 - ignore the character
==See Also==
+
* 1 - expand as soft key or Electron shortcut key for &90-&AF
* http://mdfs.net/Docs/Comp/BBC/OsbyteA6
+
* 2 - return &00,character (MOS 3.50, MOS 5 and later)
* [[OSBYTE &E2]]
+
* 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
 +
* http://mdfs.net/Docs/Comp/KeyMap/Electron
 +
* http://mdfs.net/Docs/Comp/KeyMap/RISCOS
  
[[User:Jgharston|Jgharston]] 23:04, 26 May 2009 (UTC)
+
[[User:Jgharston|Jgharston]] 23:03, 26 May 2009 (UTC)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 04:34, 20 July 2020 (CEST)

Latest revision as of 02:44, 29 December 2022

OSBYTE &E3 (227): Character &A0-&AF 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:34, 20 July 2020 (CEST)