347 34 VDU drivers The statement VDU X is equivalent to PRINT CHR$(X); and the statement VDU X,Y,Z is equivalent to PRINT CHR$(X);CHR$(Y);CHR$(Z); . However the VDU statement is used the most when generating ASCII control codes and a detailed description of the effect of each control code is given in this chapter. The control codes are interpreted by part of the Machine Operating System called the VDU driver. Programmers writing BASIC programs will need to refer to this summary of the VDU drivers if they want to use some of the more advanced facilities such as definition of graphics and text windows.
Programmers writing other high level languages or machine code programs will also need to refer to this chapter. The VDU drivers are part of the Machine Operating System (MOS) software. All high level languages (including BASIC) use them to print and draw on the screen. Because they are so extensive and easily accessible to programmers it will be easy to ensure that all high level languages and smaller assembly language programs have access to the same graphics facilities. There is no need for the user to write special routines to handle the screen display. The BBC Microcomputer is designed so that it can be expanded in many ways.
All expansions will be compatible with the current Machine Operating System and it is very important that those writing software use the facilities provided. In a ‘twin-processor’ machine the only access to the screen memory is via the ‘Tube’ and use of these VDU drivers and other Machine Operating System features will ensure that code will work correctly whether executed in the input/output processor or in the language processor. The VDU drivers interpret all 32 ASCII control character codes. Many of the ASCII control codes are followed by a number of bytes. The number of bytes which follow depends on the function to be performed.
The VDU code table summarises all the codes and gives the number of bytes which follow the ASCII control code.