Difference between revisions of "OSBYTE &03"

From BeebWiki
Jump to: navigation, search
m (1 revision)
(Added list of common settings.)
Line 1: Line 1:
 
[[Category:OSBYTE]]
 
[[Category:OSBYTE]]
[[Image:OSWRCH output fanout.png|right|Flowchart of pathways from the OSWRCH entry point to the output devices]]
 
 
 
OSBYTE &03 (3) - Select output device
 
OSBYTE &03 (3) - Select output device
  
On entry, A=&03,
+
On entry, X=new output selection
X=new output selection
 
  
 
On exit, X=old output selection
 
On exit, X=old output selection
  
Controls which output device or devices receive the characters sent to [[OSWRCH]].  The flowchart on the right shows the flow of characters from the OSWRCH entry point to the output devices.
+
Controls which output device or devices receive the characters sent to [[OSWRCH]].
  
 
The value of X is made up as follows:
 
The value of X is made up as follows:
 
 
{| class="wikitable"
 
{| class="wikitable"
 
! Bit !! Meaning if set
 
! Bit !! Meaning if set
Line 33: Line 29:
 
|}
 
|}
  
 +
This flowchart shows the flow of characters from the OSWRCH entry point to the output devices.
 +
[[Image:OSWRCH output fanout.png|Flowchart of pathways from the OSWRCH entry point to the output devices]]
 +
 +
 +
Common OSBYTE 3 settings are:
 +
{| class="wikitable"
 +
| *FX3,0 || normal state, serial disabled, VDU enabled, printer enabled by VDU 2, spool output if *SPOOL file open
 +
|-
 +
| *FX3,1 || normal output, also send to serial port
 +
|-
 +
| *FX3,2 || disable all output except printer port and any *SPOOL file
 +
|-
 +
| *FX3,3 || disable VDU, enable serial port and any *SPOOL file
 +
|-
 +
| *FX3,16 || normal output without copying to *SPOOL file
 +
|-
 +
| *FX3,18 ||disable all output except printer port
 +
|-
 +
| *FX3,23 || disable all output except serial port
 +
|-
 +
| *FX3,86 || disable all output entirely
 +
|}
 
-- [[User:Beardo|beardo]] 21:43, 5 October 2007 (BST)
 
-- [[User:Beardo|beardo]] 21:43, 5 October 2007 (BST)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 01:42, 25 December 2016 (UTC)

Revision as of 03:42, 25 December 2016

OSBYTE &03 (3) - Select output device

On entry, X=new output selection

On exit, X=old output selection

Controls which output device or devices receive the characters sent to OSWRCH.

The value of X is made up as follows:

Bit Meaning if set
0 Enable serial port
1 Disable screen drivers (overrides VDU 2 and VDU 6)
2 Disable printer (overrides VDU 2 and bits 3 and 6)
3 Enable printer (overrides VDU 3)
4 Disable output to *SPOOL file
5 Not used
6 Disable printer except for VDU 1 sequences (overrides bit 3)
7 Not used

This flowchart shows the flow of characters from the OSWRCH entry point to the output devices. Flowchart of pathways from the OSWRCH entry point to the output devices


Common OSBYTE 3 settings are:

*FX3,0 normal state, serial disabled, VDU enabled, printer enabled by VDU 2, spool output if *SPOOL file open
*FX3,1 normal output, also send to serial port
*FX3,2 disable all output except printer port and any *SPOOL file
*FX3,3 disable VDU, enable serial port and any *SPOOL file
*FX3,16 normal output without copying to *SPOOL file
*FX3,18 disable all output except printer port
*FX3,23 disable all output except serial port
*FX3,86 disable all output entirely

-- beardo 21:43, 5 October 2007 (BST) Jgharston (talk) 01:42, 25 December 2016 (UTC)