413 OSBYTE call with A=&75 (117) Read VDU status byte This call returns the VDU status byte (which contains various status flags) in the X register. The bits in X are as follows: – Bit 0 set if VDU2 sent. Cleared by VDU3 . – Bit 2 set if paged mode on. Cleared if paged mode off. – Bit 3 set if software scrolling. Cleared if hardware scrolling. (Software scrolling is used when text windows have been defined whereas hardware scrolls are used when the whole screen scrolls.) – Bit 4 set if shadow display mode selected. – Bit 5 set when cursors are joined by VDU5 . – Bit 7 set if VDU disabled by VDU21 .
OSBYTE call with A=&76 (118) Read CTRL/SHIFT key status This call returns with the carry bit set if the CTRL key is pressed, and with the negative bit set if the SHIFT key is pressed. Machine code routines may branch on these conditions. OSBYTE call with A=&77 (119) Close any SPOOL or EXEC files This call closes any open files being used as *SPOOL ed output or *EXEC ed input to be closed. This call also performs a paged ROM call with A=&10. On exit, A is preserved, X, Y and C are undefined. OSBYTE call with A=&7B (123) End of user print routine This call is used by the user print routine to indicate to the MOS that it has finished its task.
(Cancels a *FX5,3 command.) OSBYTE call with A=&7C (124) Reset ESCAPE flag This call clears any ESCAPE condition without any further action (ie no buffers are flushed and no open EXEC files are closed). The Tube (if it is active) is informed. The ESCAPE flag is stored as the top bit of location &FF, and should never be interfered with directly. This OSBYTE call can only be usefully entered from within an assembly language program, since BASIC itself resets the ESCAPE flag. There are no entry conditions; on exit, A, X and Y are preserved, C is undefined.
OSBYTE call with A=&7D (125) Simulate ESCAPE condition This call partially simulates the ESCAPE key being pressed (conditional on any OSBYTE 229 call). The Tube (if it is active) is informed. An ESCAPE event is not generated. Note that if this OSBYTE call is made from BASIC, BASIC will reset the ESCAPE flag (see OSBYTE call A=125). There are no entry conditions; on exit, A, X and Y are preserved, C is undefined.