OSBYTE &46

From BeebWiki
Jump to: navigation, search
OSBYTE &46 (70) - Set country number
On entry: X=&00+n - set or read country
          X=&80+n - reserved
                n=&00 - set to default
                n=&7F - read current setting

On exit,  X=0   - if specified country not supported
          X<&80 - previous country
          X>&7F - OSBYTE call not supported

This call allows both the keyboard and alphabet (font) to be set both at once.

The country is specified with a country number 0-99, this sets the appropriate keyboard and the appropriate alphabet (font) for that country by redefining the font with VDU 23 sequences. See OSBYTE &47 for country numbers.

Selecting the default country with X=&00 selects the default country set with *CONFIGURE COUNTRY. If there is no default country set it falls back to UK or BBC as appropriate.

OSBYTE &47 allows the keyboard and alphabet (font) to be set individually. The country number is stored in the OSBYTE &F0 variable.

  • *COUNTRY parses the parameter and calls OSBYTE &46,n
  • *ALPHABET parses the parameter and calls OSBYTE &47,&00+n
  • *KEYBOARD parses the parameter and calls OSBYTE &47,&80+n

Implementation

Implemented in the Master Internationalisation ROM, RISC OS kernel and keyboard handlers, and 8-bit keyboard extensions.

OSBYTE &46 (70) - Apple Mac BBC BASIC

  • FX70,n,n does something on Mac Basic

See Also

WikiSysop (talk) 13:32, 8 March 2015 (UTC) Jgharston (talk) 00:08, 13 May 2020 (CEST) Jgharston (talk) 23:14, 18 October 2020 (CEST)