h6. [[OS SWI Calls]] h6(. » [[OS_SerialOp]] h6((. » OS_SerialOp 0 h2. OS_SerialOp 0 h5. (SWI &57) |_<^{width:4em}. Entry | | |<^. R0 |<^. 0 | |<^. R1 |<^. EOR mask | |<^. R2 |<^. AND mask | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved| |<^. R1 |<^. Old value of state | |<^. R2 |<^. New value of state| h4. Use The purpose of this call is to read/write the serial state. h4. Notes The structure of this call is very similar to that of OS_Byte's between &A6 and &FF the new state is determined by: New State (see [[Serial Status Word]]) =<code> (Old state AND R2) EOR R1</code> h4. See also * [[OS_SerialOp]] * [[Serial Status Word]]