420 *TV is used as follows. *TV on its own is equivalent to *TV0,0 and will turn the interlace on at the next MODE change or BREAK . *TV x will also turn the interlace on while giving a vertical offset of x. To maintain interlace off when giving an offset you must use *TV x ,1 (interlace on may make the picture flicker on some TVs or monitors). OSBYTE call with A=&91 (145) Get character from buffer This enables characters to be removed from various input buffers. On entry X indicates the buffer from which the character is to be extracted. On exit Y contains the character and C=0 if a character was successfully removed. If the buffer was empty then C will be 1.
The buffer numbers are as follows: X=0 Keyboard buffer X=1 RS423 input buffer OSBYTE calls with A=&92 to &97 Read or write to memory mapped input/output This group of calls is used to read or write data from or to the various memory mapped input/output devices. It is vital that users use these routines rather than attempting to address devices directly. The use of these routines will ensure that programs will work whether they are executed in the input/output processor (the BBC Microcomputer) or in a second processor. If the user insists on addressing I/O ports directly (eg STA &FE60 ) then he or she will have to rewrite programs when the system is expanded.
Considerable effort has been expended to ensure that suitable routines are provided to enable the Assembly Language programmer to expand his or her system painlessly. Please learn to use the facilities provided! There are three memory mapped input/output areas and these are named FRED, JIM and SHEILA. SHEILA contains all the machine’s internal memory mapped devices, such as the analogue to digital converter, and should be treated with considerable respect. FRED and JIM, on the other hand, address external units connected to the 1MHz expansion bus.