Difference between revisions of "OSBYTE &05"

From BeebWiki
Jump to: navigation, search
m (1 revision)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
[[Category:OSBYTE]]
 
[[Category:OSBYTE]]
 +
==OSBYTE &05 (5) - Select the printer type.==
 +
  On entry: A=&05
 +
            X=new printer output
 +
  On exit:  X=previous print output
  
OSBYTE &05 (5) - Select the printer type.
+
Controls which printer output device will be used when output is sent to the printer.
 +
This does not activate and<br>
 +
send data to the printer. [[VDU 2]] must be used to start output going to the selected
 +
printer channel, and [[VDU 3]]<br>
 +
to end the output.
  
On entry, A=&05,
+
When selecting a printer, the MOS waits for the printer buffer to empty and the current
X=new printer output
+
printer to become idle.
 
 
Controls which printer output device will be used when output is sent to the printer. This does not activate and send data to the printer. [[VDU 2]] must be used to start output going to the selected printer channel.
 
 
 
The value of X is made up as follows:
 
  
 +
The value in X indicates the following printer drivers:
 
{| class="wikitable"
 
{| class="wikitable"
! Value !! Meaning if set
+
! Value !! Meaning
 
|-
 
|-
| 0 || Selects a '''printer sink''' where characters can be lost without the possibility of the system 'hanging' with a full printer buffer.
+
| 0 || Printer sink - all characters are lost, preventing the system 'hanging' with a full printer buffer.
 
|-
 
|-
| 1 || Selects output to the [[parallel]] output connector.
+
| 1 || Parallel printer output (built into MOS).
 
|-
 
|-
| 2 || Selects the serial [[RS423]] output.
+
| 2 || Serial output (built into MOS).
 
|-
 
|-
| 3 || Selects a user-supplied printer driver.
+
| 3 || User printer driver.
 
|-
 
|-
| 4 || Selects the Econet printer.
+
| 4 || Econet printer driver (built into NFS).
 +
|-
 +
|  || The following are conventional values used by user printer drivers
 +
|-
 +
| 5 || Output to a file, eg '''*PRINTTO <filename>'''
 +
|-
 +
| 6 || Output to NFS (Ethernet) printer.
 +
|-
 +
| 13 || Output to USB printer, eg '''*USBPRINT ON'''.
 
|}
 
|}
 +
 +
Selecting a printer 3 or higher causes all printer output to be vectored via [[NETV]] and then [[UPTV]]. Note that only<br>
 +
printer values 0-7 can be stored in configuration settings.
 +
 +
==See also==
 +
* [[Printing]]
 +
* [[OSBYTE &F5]] current selected printer
 +
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 19:00, 8 November 2020 (CET)

Latest revision as of 19:00, 8 November 2020

OSBYTE &05 (5) - Select the printer type.

 On entry: A=&05
           X=new printer output
 On exit:  X=previous print output

Controls which printer output device will be used when output is sent to the printer. This does not activate and
send data to the printer. VDU 2 must be used to start output going to the selected printer channel, and VDU 3
to end the output.

When selecting a printer, the MOS waits for the printer buffer to empty and the current printer to become idle.

The value in X indicates the following printer drivers:

Value Meaning
0 Printer sink - all characters are lost, preventing the system 'hanging' with a full printer buffer.
1 Parallel printer output (built into MOS).
2 Serial output (built into MOS).
3 User printer driver.
4 Econet printer driver (built into NFS).
The following are conventional values used by user printer drivers
5 Output to a file, eg *PRINTTO <filename>
6 Output to NFS (Ethernet) printer.
13 Output to USB printer, eg *USBPRINT ON.

Selecting a printer 3 or higher causes all printer output to be vectored via NETV and then UPTV. Note that only
printer values 0-7 can be stored in configuration settings.

See also

Jgharston (talk) 19:00, 8 November 2020 (CET)