<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>risc os &#8211; Virtually Fun</title>
	<atom:link href="https://virtuallyfun.com/tag/risc-os/feed/" rel="self" type="application/rss+xml" />
	<link>https://virtuallyfun.com</link>
	<description>Fun with Virtualization</description>
	<lastBuildDate>Mon, 12 Dec 2022 11:13:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Virtual Acorn &#8211; Fun with Virtualized RISC OS</title>
		<link>https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/</link>
					<comments>https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/#comments</comments>
		
		<dc:creator><![CDATA[tenox]]></dc:creator>
		<pubDate>Wed, 13 Feb 2013 07:49:18 +0000</pubDate>
				<category><![CDATA[arm]]></category>
		<category><![CDATA[guest post]]></category>
		<category><![CDATA[risc os]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=2619</guid>

					<description><![CDATA[(this is a guest post from Antoni Sawicki aka Tenox) VirtualRPC-SA let&#8217;s you run virtual RISC OS on a Windows or Mac OS X host similarly to VMware, VirtualBox or Qemu. The company page features this picture: &#8230; in reality &#8230; <a href="https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><em>(this is a guest post from Antoni Sawicki aka Tenox)</em></p>
<p><a href="http://www.virtualacorn.co.uk/products/vrpcsa.htm">VirtualRPC-SA</a> let&#8217;s you run virtual RISC OS on a Windows or Mac OS X host similarly to VMware, VirtualBox or Qemu. The <a href="http://www.virtualacorn.co.uk/index2.htm" target="_blank" rel="noopener">company page</a> features this picture:</p>
<p><a href="https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/acorn1/" rel="attachment wp-att-2620"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-2620" src="https://virtuallyfun.com/wp-content/uploads/2012/12/acorn1.jpg" alt="acorn1" width="525" height="408" /></a>&#8230; in reality you you probably don&#8217;t want to do that!</p>
<p>As of time of writing of this article there is <a href="http://www.virtualacorn.co.uk/product.htm" target="_blank" rel="noopener">a sale</a> going on! You can buy VirtualRPC-SA for only about $100. My primary reason for getting it was porting <a href="http://www.tenox.tc/out#alock" target="_blank" rel="noopener">aclock </a>to RISC OS. In addition to the VM I also purchased the original <a href="http://riscosopen.org/content/sales/dde" target="_blank" rel="noopener">compiler</a> <a href="http://riscosopen.org/content/sales/dde">and developer tools (DDE).</a> It allows to target the funky <a href="http://en.wikipedia.org/wiki/26-bit" target="_blank" rel="noopener">26 bit CPU</a>. Otherwise <a href="https://www.riscos.info/index.php/GCCSDK_Releases">GCC is available</a> for free.<a href="https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/acorn-c/" rel="attachment wp-att-2627"><img decoding="async" class="aligncenter wp-image-2627 size-full" src="https://virtuallyfun.com/wp-content/uploads/2012/12/acorn-c.png" alt="acorn-c" width="801" height="600" /></a>VirtualRPC comes &#8220;pre-installed&#8221; with the RISC OS in a virtual ROM image. The OS at first glance is quite nice looking and seems fun in to explore and play around. You can browse the web and use a bunch of weird applications from alien world. You can find a lot of software apps <a href="http://www.riscos.org/links/index.html" target="_blank" rel="noopener">here </a>and <a href="http://www.riscos.info/index.php/Recommended_software" target="_blank" rel="noopener">here</a>Â and <a href="http://www.riscos.info/packages/SectionIndex.html" target="_blank" rel="noopener">here</a>. However I personally could not use this for anything more serious.</p>
<p><a href="https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/riscos-web/" rel="attachment wp-att-2626"><img decoding="async" class="aligncenter wp-image-2626 size-full" src="https://virtuallyfun.com/wp-content/uploads/2012/12/riscos-web.png" alt="riscos-web" width="800" height="599" /></a>Porting of aclock to RISC OS was by far one of most difficult ones if not the most difficult. To display text on the screen you need to use system calls directly, for which you use a special function called <em>_swi()</em> or <em>_swix()</em>. There is no concept of <em>sleep()</em> so I had to improvise an empty loop. Fortunately there are screen codes that allow to position the cursor, clear screen etc.</p>
<pre>void cls(void) {
     (void) _swix(OS_WriteI + 12, 0);
}</pre>
<p>The result is far from pretty but it will do for v1:</p>
<p><a href="https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/aclock-riscos/" rel="attachment wp-att-2621"><img loading="lazy" decoding="async" class="aligncenter wp-image-2621 size-full" src="https://virtuallyfun.com/wp-content/uploads/2012/12/aclock-riscos.png" alt="aclock-riscos" width="800" height="600" /></a>Some funnies, which actually weren&#8217;t that funny at the time:</p>
<p>A directory separator in RISC OS is &#8220;.&#8221; (yes a dot) for example: <strong><em>root.folder.subfolder.file</em></strong>. The C compiler expects <strong><em>.c</em></strong> as a file extension as it would on any normal OS. The problem is that naming file <strong><em>aclock.c</em></strong> would make a directory <strong><em>aclock</em></strong> with <strong><em>c</em></strong> file in it. Fortunately, or maybe not, extensions in RISC OS are prefixing, not postfixing a file. So you have <strong><em>c.aclock</em></strong> or <strong><em>o.aclock</em></strong>. Except, as previously explained <strong><em>c</em></strong> and <strong><em>o</em></strong> are directories. You can see <strong>c</strong> and <strong>o</strong> folders in the screenshot above. Are you confused yet?</p>
<p>Interestingly RISC OS does have concept of a command line interface and a terminal window. However try to figure out the commands!</p>
<ul>
<li><em><strong>dir</strong> </em>&#8211; change directory aka &#8220;<em>cd</em>&#8221; on the planet Earth</li>
<li><em><strong>cat</strong> </em>&#8211; list directory aka &#8220;<em>ls</em>&#8221; or &#8220;<em>dir</em>&#8221; in your normal OS</li>
</ul>
<p><a href="https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/riscos-cmd/" rel="attachment wp-att-2629"><img loading="lazy" decoding="async" class="aligncenter wp-image-2629 size-full" src="https://virtuallyfun.com/wp-content/uploads/2012/12/riscos-cmd.png" alt="riscos-cmd" width="812" height="698" /></a>There is more, so I encourage you to try yourself just for the fun!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2013/02/13/virtual-acorn-virtualized-risc-os/feed/</wfw:commentRss>
			<slash:comments>19</slash:comments>
		
		
			</item>
	</channel>
</rss>
