405 *FX17 forces the ADC converter to start a conversion on the selected channel. Thus *FX17,1 will start a conversion on channel 1. Channels are numbered 1, 2, 3 and 4. OSBYTE call with A=&80 can be used to determine when the conversion is complete as can ADVAL(0) . *FX18 resets the user defined function keys so that they no longer contain character strings. *FX19 causes the machine to wait until the start of the next frame of the display for animation. *FX20 when the machine starts up, space is allocated at &C00 for the redefinition of 32 displayed characters using the VDU23 statement.
In the initial state, or after issuing a *FX20,0 command, the character definitions are said to be ‘imploded’. This means that an attempt to print any character with ASCII code greater than 128 (&80) will be mapped on to the characters stored at memory &C00. Initially this will produce garbage. Once a user defined character has been defined, the effect of the mapping is to produce the same character for four ASCII codes, each code being offset from its neighbour by 32 (decimal). Therefore, for example, ASCII codes &80, &A0, &C0 and &E0 will all show the same character. Redefining any one of the above codes would also identically redefine the other three. Note that code &80 (or &A0.
&C0 or &E0) will be mapped to memory location &C00; code &81 (or &A1, C1 or &E1) will mapped to memory location &C08, etc. Character codes in the range &20 to &7F can also be redefined, but will map (in the *FX20,0 state) to the same memory locations, thus overwriting what is already there. After a *FX20,6 command the character definitions are said to be fully ‘exploded’ and all printing characters (codes &20 to &FF) can be redefined, each group of 32 characters in the range having its own memory allocation (see below). However, until any character in a block is redefined, the block will map on to either the preset ROM (&20 to &7F) or on to memory at &C00 (&80 to &FF).
The memory allocated to each block of ASCII codes in the fully exploded state is: ASCII code Memory allocation &20 to &3F OSHWM + &300 to OSHWM + &3FF &40 to &5F OSHWM + &400 to OSHWM + &4FF &60 to &7F OSHWM + &500 to OSHWM + &5FF &80 to &9F &C00 to &CFF &A0 to &BF OSHWM to OSHWM + &FF &C0 to &DF OSHWM + &100 to OSHWM + &1FF &E0 to &FF OSHWM + &200 to OSHWM + &2FF