h6. [[OS SWI Calls]] h6(. » OS_ConvertHex4 h2. OS_ConvertHex4 h5. (SWI &D2) |_<^{width:3em}. Entry | | |<^. R0 |<^. Value to be converted | |<^. R1 |<^. Pointer to buffer for resulting string | |<^. R2 |<^. Size of buffer | |_<^{width:3em}. Exit | | |<^. R0|<^. Pointer to buffer (R1 on entry) | |<^. R1 |<^. Pointer to terminator | |<^. R2 |<^. Free bytes in buffer | h4. Use The purpose of this call is to convert a value into a string of 4 hex characters. h4. Notes The string does not include an ampersand (‘&’) character, but is padded with leading zeros, so is of fixed length. h4. See also * [[OS_ConvertHex1]] * [[OS_ConvertHex2]] * [[OS_ConvertHex6]] * [[OS_ConvertHex8]]