<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to F$Sleep</title><link>https://sourceforge.net/p/nitros9/wiki/F%2524Sleep/</link><description>Recent changes to F$Sleep</description><atom:link href="https://sourceforge.net/p/nitros9/wiki/F$Sleep/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 27 Jun 2014 23:20:12 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/nitros9/wiki/F$Sleep/feed" rel="self" type="application/rss+xml"/><item><title>F$Sleep modified by Lothan</title><link>https://sourceforge.net/p/nitros9/wiki/F%2524Sleep/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Sleep&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Temporarily turns off the calling process&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;OS9 F$Sleep 103F 0A&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Entry Conditions&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;X One of the following: &lt;/p&gt;
&lt;p&gt;&lt;em&gt;sleep time&lt;/em&gt; (in ticks) &lt;/p&gt;
&lt;p&gt;0 = sleep indefinitely &lt;/p&gt;
&lt;p&gt;1 = sleep for the remainder of the current time slice &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Exit Conditions&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;X &lt;em&gt;sleep time minus the number of ticks that the process was asleep&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Output&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;CC carry set on error &lt;/p&gt;
&lt;p&gt;B &lt;em&gt;error code&lt;/em&gt; (if any) &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Additional Information&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If Register X contains zero, NitrOS-9 turns the process off until it receives a signal. Putting a process to sleep is a good way to wait for a signal or interrupt without wasting CPU time. &lt;/li&gt;
&lt;li&gt;If Register X contains one, NitrOS-9 turns the process off for the remainder of the process’s current time slice. It inserts the process into the active process queue immediately. The process resumes execution when it reaches the front of the queue. &lt;/li&gt;
&lt;li&gt;If Register X contains an integer in the rage 2-255, NitrOS-9 turns off the process for the specified number of ticks, &lt;em&gt;n&lt;/em&gt;. It inserts the process into the active process queue after &lt;em&gt;n&lt;/em&gt;-1 ticks. The process resumes execution when it reaches the front of the queue. If the process receives a signal, it awakens before the time has elapsed. &lt;/li&gt;
&lt;li&gt;When you select processes among multiple windows, you might need to sleep for two ticks. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;krnp2&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lothan</dc:creator><pubDate>Fri, 27 Jun 2014 23:20:12 -0000</pubDate><guid>https://sourceforge.net8eba0770a2cd03ca4d3a327b316b1b557f462904</guid></item></channel></rss>