h6. [[OS SWI Calls]] h6(. » [[OS_Byte]] h6((. » OS_Byte 199 h2. OS_Byte 199 h5. (SWI &06) |_<^{width:4em}. Entry | | |<^. R0|<^. 199 (&C7) | |<^. R1|<^. EOR value | |<^. R2|<^. AND value | |_<^{width:4em}. Exit|_<^. | |<^. R0|<^. Preserved | |<^. R1|<^. Previous file handle | |<^. R2|<^. Corrupted | h4. Use The purpose of this call is to read or write the [[*Spool|*Spool]] file handle. h4. Notes This call reads or sets the [[*Spool|*Spool]] file handle. A handle of 0 means that spooling is disabled, a non-zero handle means that spooling is enabled (unless disabled with [[OS_Byte 3]]). Changing the spool handle to an invalid file handle can really ruin your day (every call to [[OS_WriteC]] etc. will return an error, including the calls used to report the error to screen...). h4. See also * [[OS_Byte]] * [[OS_Byte 3]] * [[OS_WriteC]] * [[*Spool|*Spool]]