h6. [[OS SWI Calls]] h6(. » [[OS_ScreenMode]] h6((. » OS_ScreenMode 14 h2. OS_ScreenMode 14 h5. (SWI &65) |_<^{width:4em}. Entry | | |<^. R0 |<^. 14 | |<^. R1 |<^. Pointer to [[Mode Selector Block]] | |<^. R2 |<^. Pointer to [[Mode String]] to fill in | |<^. R3 |<^. Size of string buffer (bytes) | |_<^{width:4em}. Exit | | |<^. R0 |<^. Error, or preserved| |/2<^. R3 |<^. Less than zero: Negative size of buffer required | |<^. Zero: String has been filled in | |- |All other registers preserved| h4. Use The purpose of this call is to convert a mode selector block to a mode string. To determine the size of the required buffer, call once with R3 set to zero, and then allocate -R3 bytes to store the string. h4. Notes Note that converting a mode selector block to a string and then back to a selector may result in the loss of some information; mode strings are not capable of representing the full set of values that can be specified in mode selectors. See also [[OS_ScreenMode 13]] to convert a mode string to a mode selector block. 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 13]] h5. Other languages documentation [[OS_ScreenMode 14 (français)|Français]]