h6. [[OS SWI Calls]] h6(. » [[OS_Byte]] h6((. » OS_Byte 0 h2. OS_Byte 0 h5. (SWI &06) |_<^{width:3em}. Entry | | |<^. R0|<^. 0 (reason code) | |/2<^. R1|<^. 0 to return OS version, or | |<^. 1 to return machine information | |_<^{width:3em}. Exit|_<^. Return OS Version | |<^. R0|<^. Pointer to OS version string as an error block | |<^. R1|<^. Preserved | |<^. R2|<^. Corrupted | |\2<^. V flag set | |_<^{width:3em}. Exit|_<^. Return Machine Information | |<^. R0|<^. Preserved | |<^. R1|<^. [[Machine Types|Machine type]] | |<^. R2|<^. Corrupted | h4. Use The purpose of this call is to return information about either the Operating System or machine. h4. Notes If R1=0 on entry, this call displays the OS version by returning it as an error string, with V set. If R1=1 this call returns the machine type in R1 - all RISC OS machines return 6. h4. See also * [[OS_Byte]] * [[Machine Types]]