h6. [[OS SWI Calls]] h6(. » OS_GenerateError h2. OS_GenerateError h5. (SWI &2B) |_<^{width:4em}. Entry | | |<^. R0 |<^. Pointer to [[SWI Error Block|error block]] | |_<^{width:4em}. Exit | | |<^. R0|<^. Only returns (with V flag on) if X was set| h4. Use The purpose of this call is to generate an error and invoke the error handler. h4. Notes The X form may appear to be completely useless as it is effectively a no-op! However, it has at least 3 uses # Terminated string conversion in BASIC # Detecting whether [[OS_CallASWI]] is available by calling OS_GenerateError via OS_CallASWI and seeing what comes back in R0 # Force a callback to occur h4. See also * [[OS_CallASWI]] * [[SWI Error Block]]