390 The *FX commands The *FX commands are a family of operating system commands which act directly on the MOS, causing its routines to carry out a variety of functions which are summarised below. The general form of a *FX command is *FXa,x,y where a, x and y are integers. (There can be a space between the X and the a.) For example, the MOS version number can be printed out on the screen by typing Note that in the above command a=0, but x and y are absent.
Another example, (which incidentally solves the ‘flashing colour’ problem which was referred to earlier) is *FX0 RETURN which causes the first named colour (red in our example) to be displayed for ten fiftieths of a second ( *FX9,20 would display it for twenty fiftieths of a second, and so on).
Note here that the default duration of the first named colour – ie the time for which it is displayed before a *FX9 command is typed in to change the time – is half a second, so restoring the default duration could be achieved by typing *FX9,10 *FX9,25 RETURN Incidentally, loading the default duration (plus many other default parameter values) into RAM is one of the jobs done by the MOS when the microcomputer is switched on. Typing *FX9,0 RETURN would set the duration to infinity, causing the first colour to be displayed continuously, and the second colour not to be displayed at all.
Exactly the same effect could be achieved by typing *FX9 RETURN which illustrates the fact that if the x and y parameters are omitted they are taken to be equal to zero. As a final example, *FX144,2,1 would move the display two lines up the screen and turn the interlace off (after the next MODE change or soft break). A summary of all the *FX commands and their functions is given later in this chapter.