414 OSBYTE call with A=&7E (126) Acknowledge detection of an ESCAPE condition This call attempts to acknowledge the existence of an ESCAPE condition. It should be used if you are using OSRDCH (see chapter 44) to intercept characters being fed into the computer, and it is also useful as part of a user-supplied ESCAPE condition service routine. If an ESCAPE condition is detected, all active buffers will be flushed and any open EXEC files will be closed. There are no entry conditions; on exit, X=255 if the ESCAPE condition existed (X=0 otherwise), A is preserved, Y and C are undefined. This call returns the end of file status of a file which has been previously opened.
On entry X should contain the channel number allocated to the file. On exit X will be zero if the end of file has not been reached and X will be non-zero if the end d OSBYTE call with A=&7F (127) (EOF#) OSBYTE call with A=&80 (128) Read ADC channel (ADVAL) This call returns the most recent value of a particular analogue to digital converter channel. It can also be used to detect an end of conversion and to see if the games fire buttons are pressed. On entry X contains the channel number to be read. If X is in the range 1 to 4 then the specified channel will be read and on exit the 16 bit value will be returned in X and Y.
Y will contain the eight most significant bits and X the least significant bits. If on entry X=0 then on exit Y will contain a number in the range 0 to 4 indicating which channel was the last to complete. Note that *FX16 and *FX17 reset this value to 0. A value of zero indicates that no channel has completed. Also on exit the two least significant bits of X will indicate the status of the two fire buttons. The user should always AND X with 3 to mask out high order bits. If on entry X contains a negative number (in twos complement notation) then the call will provide information about various input buffers. On entry Y must contain &FF.