Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

377 Telling the computer to copy everything to the printer This is often called turning the printer on – but, of course, we are not referring to switching the printer on but to enabling and disabling its printing. To turn it on type CTRL B and to turn it off type CTRL C . In a BASIC program VDU2 will turn the printer on and VDU3 will turn it off. Note that all output will now appear on the screen and printer. To send output to the printer only you can use *FX3 . For disc systems, *TYPE "filename" will print out a data file. Characters not sent to the printer Some printers automatically move the paper up one line when they receive a carrige return.

Since the computer also moves the paper up one line (by using a line feed), the paper may move up two lines instead of one. It is possible to tell the computer not to send any particular character to the printer. The most common requirement is to ignore line feed which has an ASCII code of 10. *FX6,10 will set it to ignore line feeds. *FX6 should be set after *FX5 has been used to select the printer type. The default is to ignore line feeds. The complete set-up sequence for a serial printer running at 1200 baud and which does not require line feeds would be: *FX 5,2 Serial printer. *FX 8,4 1200 baud. *FX 6,10 No line feeds (default so it may be omitted). A few more detailed points:

Data is transmitted using one start bit, eight data bits and one stop bit. Receive baud rates may be the same as, or may differ from, transmit baud rates. Receive baud rates are set by *FX7 . The user may supply his or her own specialist printer driver routine. The address of the user routine should be placed at location &222 and the user defined routine can be selected as the printer output routine with *FX5,3 . If the user intercepts the operating system write character routine (OSWRCH) then all the VDU control codes must be dealt with. When a BASIC program executes DRAW 10,10 a string of six bytes is sent to the VDU driver via OSWRCH.

In this case the bytes would be 25,5,10,0,10,0, so beware!