h6. [[OS SWI Calls]] h6(. » [[OS_ScreenMode]] h6((. » OS_ScreenMode 13 h2. OS_ScreenMode 13 h5. (SWI &65) |_<^{width:4em}. Entry | | |<^. R0 |<^. 13 | |<^. R1 |<^. Pointer to [[Mode String]] | |<^. R2 |<^. Pointer to [[Mode Selector Block]] to fill in | |<^. R3 |<^. Size of specifier buffer (bytes) | |_<^{width:4em}. Exit | | |<^. R0 |<^. Error, or preserved| |- |All other registers preserved| h4. Use The purpose of this call is to convert a mode string to a mode selector block. h4. Notes It's not possible to read required size of the selector block using this call. Instead the caller must make an educated guess as to the required buffer size. It's reasonable to expect up to four mode variables to be returned (NColour, mode flags, X & Y eigen factors), but future extensions or other implementations may return more. See also [[OS_ScreenMode 14]] to convert a mode specifier to a mode string. This call is available in RISC OS Select and RISC OS 5.21+ h4. See also * [[Mode String]] * [[Mode Selector Block]] * [[OS_ScreenMode]] * [[OS_ScreenMode 14]] h5. Other languages documentation [[OS_ScreenMode 13 (français)|Français]]