h6. [[OS SWI Calls]] h6(. » [[OS_Word]] h6((. » OS_Word 4 h2. OS_Word 4 h5. (SWI &07) |_<^{width:4em}. Entry | | |<^. R0 |<^. 4 | |<^. R1 |<^. Pointer to 5 byte block | |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved| |<^. R1 |<^. Preserved | h4. Use The purpose of this call is to write the interval timer. h4. Notes On exit, the buffer contains five byte interval timer, with LSB first. The timer is incremented 100 times a second, and generates a [[Event 5|interval timer event]] (event number 5) when it reaches 0. (You must enable the event with [[OS_Byte 14]]). To generate repeating events you would have to reload the timer on each event. The timer is obsolescent - use [[OS_CallAfter]] or [[OS_CallEvery]] instead. To read the interval timer, use [[OS_Word 3]]. h4. See also * [[Event 5|Interval Timer Event]] * [[OS_Byte 14]] * [[OS_CallAfter]] * [[OS_CallEvery]] * [[OS_Word]] * [[OS_Word 3]]