<?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>WinSoft.se &#187; General</title>
	<atom:link href="http://www.winsoft.se/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.winsoft.se</link>
	<description>Development with focus on Visual Basic .NET</description>
	<lastBuildDate>Sat, 04 Sep 2010 18:26:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Dagens ord om Skeptikerpodden</title>
		<link>http://www.winsoft.se/2010/07/dagens-ord-om-skeptikerpodden/</link>
		<comments>http://www.winsoft.se/2010/07/dagens-ord-om-skeptikerpodden/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 08:49:52 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Skeptikerpodden]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1319</guid>
		<description><![CDATA[John Houdi säger det så bra, så jag låter han tala: Tänk vad fort det går. Vi har nu gjort 16 avsnitt av Skeptikerpodden! Med tanke på den respons vi fått så har denna poddradio varit eftertraktad länge, vilket vi som gör Skeptikerpodden tycker är oerhört kul. Läs inlägget här.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.houdi.se/" target="_blank">John Houdi</a> säger det så bra, så jag låter han tala:</p>
<blockquote><p>Tänk vad fort det går. Vi har nu gjort 16 avsnitt av <a href="http://skeptikerpodden.se/" target="_blank">Skeptikerpodden</a>!</p>
<p>Med tanke på den respons vi fått så har denna poddradio varit eftertraktad länge, vilket vi som gör Skeptikerpodden tycker är oerhört kul.</p></blockquote>
<p><a href="http://www.houdi.se/blog/?p=6049" target="_blank">Läs inlägget här.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/07/dagens-ord-om-skeptikerpodden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing code on the Commodore 65</title>
		<link>http://www.winsoft.se/2010/06/editing-code-on-the-commodore-65/</link>
		<comments>http://www.winsoft.se/2010/06/editing-code-on-the-commodore-65/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 18:46:32 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>
		<category><![CDATA[C65]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1250</guid>
		<description><![CDATA[The Commodore 64 and the Commodore 128 uses the same method for editing code. You press enter over a line, and that line is stored the with the index of the entered line number, overwriting any existing code on that with that index. The Commodore 65 has the same machine code monitor as the Commodore [...]]]></description>
			<content:encoded><![CDATA[<p>The Commodore 64 and the Commodore 128 uses the same method for editing code. You press enter over a line, and that line is stored the with the index of the entered line number, overwriting any existing code on that with that index. The Commodore 65 has the same machine code monitor as the Commodore 128 (it runs more smoothly because the C65 is much faster than the C128). Also, adding and overwriting Basic code is done in the same way. Editing is probably not, but I am not sure.</p>
<p>On the C128, you just had to make sure you saw the line of code on screen, move the text cursor to it, write something else on top of what is there, and save it by pressing Enter. The C65 does not allow you to fly around with the text cursor over the screen. I loved the fact that you could move the cursor to any position, but it was tricky to collect user input if the user suddenly felt the urge to move away and type something unexpected at an arbitrary location. Perhaps they were to implement some command to do this, or perhaps they planned to allow the cursor to move freely. I don&#8217;t know.</p>
<p>I have found some great improvements. Here, I have added 4 lines of code. It displays three lines of text and makes a sound. I use the <strong>LIST</strong> command to display the whole Commodore Basic 10 program.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/415651277664198c65a.jpg" class="alignnone" width="209" height="167" /></p>
<p>Already on the C128 you could use arguments to list parts of the program, and change the line numbers throughout the program using the <strong>RENUMBER</strong> command. But on the C65, you can find out the line number of certain line of code using the <strong>FIND</strong> command.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/160521277664205c65b.jpg" class="alignnone" width="233" height="296" /></p>
<p>The above image shows the C65 telling me where the word HEJ can be found in my program. Also, I can use the <strong>CHANGE</strong> command to search and replace text. Let&#8217;s say I want to change the notes I want the C65 to play, I can use <strong>CHANGE</strong> to do this. The C65 asks for each search hit before changing.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/523761277664214c65c.jpg" class="alignnone" width="220" height="258" /></p>
<p>Hope to get back to the lovely world of Commodore in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/editing-code-on-the-commodore-65/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Commodore 65</title>
		<link>http://www.winsoft.se/2010/06/the-commodore-65/</link>
		<comments>http://www.winsoft.se/2010/06/the-commodore-65/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 19:33:58 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>
		<category><![CDATA[C65]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1245</guid>
		<description><![CDATA[This is truly one of those machines you really want to own. The Commodore 65 (or C64DX) never made it to the market, probably because of the huge success of the Commodore Amiga. But what a machine it is. Better graphics than the Amiga, 128 Kb of RAM (could be expanded 8 Mb) and a [...]]]></description>
			<content:encoded><![CDATA[<p>This is truly one of those machines you really want to own. The Commodore 65 (or C64DX) never made it to the market, probably because of the huge success of the Commodore Amiga. But what a machine it is.</p>
<p>Better graphics than the Amiga, 128 Kb of RAM (could be expanded 8 Mb) and a Basic interpretator for Commodore Basic 10. Commodore Basic 10 is sort of the same that the Commodore 128 has (Commodore Basic 7) but well improved with added support for mouse programming and genlocking (that is adding graphics to video).</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/632881277580225c65.jpg" class="alignnone" width="531" height="398" /></p>
<p>The most amazing feature of the C65 must be that it had two SID chips for sound. This gave the machine 6 channels of fat analogue stereo sound. Like the C64, but more.</p>
<p>There are (illegal) ROM dumps circulating the Internet, and I sometimes get it to run without crashing my PC. I hope to get back to this soon enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/the-commodore-65/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging in Notepad</title>
		<link>http://www.winsoft.se/2010/06/logging-in-notepad/</link>
		<comments>http://www.winsoft.se/2010/06/logging-in-notepad/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 22:40:45 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1228</guid>
		<description><![CDATA[All that you have to do is to add .LOG as the first line in a text document, and then save it. Now, each time you open the text file in Notepad, the current date and time will be added to the file, and the file will be marked as unsaved. I started out like [...]]]></description>
			<content:encoded><![CDATA[<p>All that you have to do is to add .LOG as the first line in a text document, and then save it. Now, each time you open the text file in Notepad, the current date and time will be added to the file, and the file will be marked as unsaved. I started out like this, and saved my file:</p>
<pre>.LOG

This is a log.</pre>
<p>Next time the file was opened, this is what Notepad showed:</p>
<pre>.LOG

This is a log.

00:32 2010-06-19</pre>
<p>The date is not in the file, it was added when the file was opened. I added a line of text (&#8220;A new line is added to my log&#8221;), saved and reopened again. Notepad added a new line like this:</p>
<pre>.LOG

This is a log.

00:32 2010-06-19

A new line is added to my log.

00:39 2010-06-19</pre>
<p>Those little things can be so nice to have!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/logging-in-notepad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Some cool software for the C128: GEOS</title>
		<link>http://www.winsoft.se/2010/06/some-cool-software-for-the-c128-geos/</link>
		<comments>http://www.winsoft.se/2010/06/some-cool-software-for-the-c128-geos/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 11:36:17 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1214</guid>
		<description><![CDATA[So CP/M is the text based disk operating system for the Commodore 128. You could buy a window based operating on disk called GEOS (Graphic Environment Operating System). GEOS was available for some of the Commodore machines and the Apple II. GEOS is not &#8220;smashing&#8221; either, but it solved some problems that text based systems [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://imghost.winsoft.se/upload/97439127642765223081_636105944_2330_n.jpg" class="alignright" width="200" height="200" style="margin: 0px 0px 5px 5px;" /><br />
So CP/M is the text based disk operating system for the Commodore 128. You could buy a window based operating on disk called GEOS (Graphic Environment Operating System). GEOS was available for some of the Commodore machines and the Apple II. GEOS is not &#8220;smashing&#8221; either, but it solved some problems that text based systems had at that time. It presented the features of the applications and the system itself, so that the user could point and click on the feature that user wants to use. These screenshots show GEOS in all its glory on an enormous 320 by 200 pixel screen.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/270361276428230geos1.gif" class="alignnone" width="320" height="200" /></p>
<p>At startup, GEOS shows the content of the system disk. To access some of the useful applications, you would insert that disk, and click <strong>Disk</strong> and <strong>Open</strong> to refresh the screen. GEOS was delivered with word processor, a painting program, among other things. Not very sophisticated compared to what you could get for your Macintosh or Windows, but a life saver for any C128 user.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/657321276428627geos2.gif" class="alignnone" width="320" height="200" /></p>
<p>GEOS did not multitask very well. Here, when I use the calculator, I can&#8217;t move the mouse outside the calculator window. I need to close it, before I can access the applications window behind, and that window cannot be moved around. It can be closed, and reopened from the <strong>Disk</strong> menu.</p>
<p>GEOS was relesed in 1986 and from what I know, the GEOS disks are not available for download.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/some-cool-software-for-the-c128-geos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some cool software for the C128: CP/M</title>
		<link>http://www.winsoft.se/2010/06/some-cool-software-for-the-c128-cpm/</link>
		<comments>http://www.winsoft.se/2010/06/some-cool-software-for-the-c128-cpm/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 20:11:31 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1199</guid>
		<description><![CDATA[CP/M, the disk operating system for the Commodore 128 This is one of the strange things about this machine. Microsoft DOS was around, and Commodore was already making computers running DOS. But the Commodore 128 was supposed to run CP/M. Who used this? If you want to boot CP/M, download the image from here. In [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CP/M, the disk operating system for the Commodore 128</strong></p>
<p>This is one of the strange things about this machine. Microsoft DOS was around, and Commodore was already making computers running DOS. But the Commodore 128 was supposed to run CP/M. Who used this?</p>
<p>If you want to boot CP/M, download the image from <a href="http://www.cpm8680.com/cpmc64/">here</a>. In the ctools/x128 folder, attach the &#8220;cpm128.d64&#8243; image to device 8 and type <strong>BOOT</strong> (or reset the machine).</p>
<p>Attach the first file to drive 8 and type <strong>BOOT</strong> (or reset the machine). If you&#8217;re doing this from a physical C128, make sure to have the 80 col key pressed down. If you&#8217;re doing this from the Vice emulator, send the <strong>-80</strong> argument to <strong>x128.exe</strong> at startup.</p>
<pre>X128.exe -80</pre>
<p><img alt="" src="http://imghost.winsoft.se/upload/157821276286370cpm1.jpg" class="alignnone" width="500" height="275" /></p>
<p>It takes a while to boot, and watching the prompt is sort of just as fun as watching it boot. What can it do? Most of the operations will require that other disks are inserted to the drive. They were delivered with your machine when you bought it, but you probably reformatted those disks to make room for some pirated games. However, you can show the contents of a disk by typing <strong>dir</strong> and you can get help by typing <strong>help</strong>. Hang on, it is working on providing you help. No it didn&#8217;t crash, it is working on providing you help! Yes, it is. Ah there you go. Like I said, it can provide help!</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/870751276286600cpm2.jpg" class="alignnone" width="500" height="227" /></p>
<p>In purple and everything!</p>
<p>Some commands worth mentioning are <strong>PIP</strong> to copy or combine files (<strong>PIP</strong> can be used without any extra disks), <strong>ED</strong> to edit a file, <strong>DUMP</strong> to display a file and <strong>FORMAT</strong> to format a CP/M disk.</p>
<p>Have fun. Or perhaps: Have &#8220;<em>fun</em>&#8220;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/some-cool-software-for-the-c128-cpm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic data management</title>
		<link>http://www.winsoft.se/2010/06/basic-data-management/</link>
		<comments>http://www.winsoft.se/2010/06/basic-data-management/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 20:30:53 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1196</guid>
		<description><![CDATA[If you want to do this on a real Commodore 128, you will need a blank floppy disk, and if you are doing this from an emulator, you will need a blank floppy image. I have created a blank d64 image from the Vice emulator. To do that, click File, Attach disk image, and Drive [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to do this on a real Commodore 128, you will need a blank floppy disk, and if you are doing this from an emulator, you will need a blank floppy image. I have created a blank d64 image from the Vice emulator. To do that, click <strong>File</strong>, <strong>Attach disk image</strong>, and <strong>Drive 8</strong> to display the <strong>Attach disk image</strong> dialog. There, type in a filename, click <strong>Create image</strong>, and finally click <strong>Attach</strong>.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/282281276113057create_image.jpg" class="alignnone" width="428" height="311" /></p>
<p>You can make sure that your disk is correctly attached by typing <strong>DIRECTORY</strong>. This is what you should see:</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/517801276113594create_image2.jpg" class="alignnone" width="322" height="106" /></p>
<p>To create a blank area of memory, enter the machine code monitor and fill a memory area with the value zero. Type:</p>
<pre>MONITOR

F 1000 1100 0</pre>
<p>To ensure that memory now is blank, type <strong>M 1000</strong>. Type <strong>X</strong> to leave the machine code monitor. Note that the monitor is using the hexadecimal, so the area that we have blanked out is from address 4096 to address 4352.</p>
<p>From the Basic parser (that is, outside the machine code monitor) the <strong>POKE</strong> command is used to set a byte and the <strong>PEEK</strong> function is used to get a byte. Commodore Basic uses the decimal number system but is equipped with functions to convert between the systems.</p>
<p>So, to set a byte at position 4096 (in this case, the value 5) type:</p>
<pre>POKE 4096, 5</pre>
<p>To read the same byte, type:</p>
<pre>PRINT PEEK(4096)</pre>
<p>Also, you can enter the monitor and type <strong>M 1000</strong>. This is what you should see:</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/334731276114487readmem.jpg" class="alignnone" width="322" height="202" /></p>
<p>The C128 has built in commands for saving memory to disk and loading memory to disk. Let&#8217;s say that we want to save our byte and some following bytes, use the BSAVE command (Binary Save). This will save 4 bytes to a file called TEST.DAT, where the first byte is our value 5. The second argument is the device (B0 is device 8), the third argument is the address range (the character P must occur before the number).</p>
<pre>BSAVE "TEST.DAT", B0, P4096 TO P4100</pre>
<p>Type <strong>DIRECTORY</strong> to make sure the file is located there.</p>
<p>To load this file, use <strong>BLOAD</strong> (Binary Load). This is a test you can do.</p>
<p>Type <strong>PRINT PEEK(4110)</strong> to ensure address 4110 is empty. Load the file into the address 4110 by typing:</p>
<pre>BLOAD "TEST.DAT", B0, P4110</pre>
<p>Type <strong>PRINT PEEK(4110)</strong> again to see that it now holds the value 5, as loaded from the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/basic-data-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skeptikerpodden och tillhörande forum</title>
		<link>http://www.winsoft.se/2010/06/skeptikerpodden-och-tillhorande-forum/</link>
		<comments>http://www.winsoft.se/2010/06/skeptikerpodden-och-tillhorande-forum/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 18:40:49 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Skeptikerpodden]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1191</guid>
		<description><![CDATA[In short: The last week has been dedicated to the podcast and the Swedish skeptic movement. Det var ett tag sedan jag uppdaterade något på WinSoft.se, vilket grämer mig. Tiden har gått till vår podcast, Skeptikerpodden. Dessutom lanserar vi strax ett nytt forum, som redan är uppsatt. Om du är intresserad av skepticism (eller om [...]]]></description>
			<content:encoded><![CDATA[<p><em>In short: The last week has been dedicated to the podcast and the Swedish skeptic movement.</em></p>
<p>Det var ett tag sedan jag uppdaterade något på WinSoft.se, vilket grämer mig. Tiden har gått till vår podcast, <a target="_blank" href="http://skeptikerpodden.se/">Skeptikerpodden</a>. Dessutom lanserar vi strax ett nytt forum, som redan är uppsatt. Om du är intresserad av skepticism (eller om du är vidskeplig för den delen) och vill diskutera frågan, kan du redan nu registrera ett konto och hoppa in. Trots att det är lite tomt så här i början. Forumet heter <a target="_blank" href="http://www.skeptikerforum.se/">Skeptikerforum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/06/skeptikerpodden-och-tillhorande-forum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The oddities: GO64 and sound</title>
		<link>http://www.winsoft.se/2010/05/the-oddities-go64-and-sound/</link>
		<comments>http://www.winsoft.se/2010/05/the-oddities-go64-and-sound/#comments</comments>
		<pubDate>Sat, 29 May 2010 17:55:07 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1175</guid>
		<description><![CDATA[GO64 In some ways, GO64 behaves as a command (GO) with one argument (64). For example, you can type GO64, GO 64 or even GO 70-6 and all will set the C128 in C64 mode. But in some ways, GO64 behaves as a command on its own. For example, from the fact that GO 60+4 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>GO64</strong><br />
In some ways, <strong>GO64</strong> behaves as a command (<strong>GO</strong>) with one argument (<strong>64</strong>). For example, you can type <strong>GO64</strong>, <strong>GO 64</strong> or even <strong>GO 70-6</strong> and all will set the C128 in C64 mode. But in some ways, <strong>GO64</strong> behaves as a command on its own. For example, from the fact that <strong>GO 60+4</strong> does the job, you would perhaps expect <strong>GO 65</strong> to generate a ?ILLEGAL QUANTITY ERROR, but it generates a ?SYNTAX ERROR. The fact that typing <strong>GO 8*8</strong> sets the machine in C64 mode is strange enough.</p>
<p><strong>Sound</strong><br />
The <strong>PLAY</strong> command plays notes and the SOUND command audio in any frequency. <strong>PLAY</strong> can deal with notes and volume envelopes but not pitch bending. <strong>SOUND</strong> can pitch bend but not deal with volume envelopes. This plays three notes, C, D and E, with a volume envelope that emulates a piano:</p>
<pre>PLAY "CDE"</pre>
<p>This plays a C-maj chord:</p>
<pre>PLAY "V1 C V2 E V3 G"</pre>
<p>This plays a pitch bending sound without a volume envelope:</p>
<pre>SOUND 1, 8000, 40, 2, 7000, 100</pre>
<p>The arguments are <em>channel, frequency, duration, direction</em> (2 means oscillate) and <em>stepvalue</em>.</p>
<p>If I make a program with a <strong>PLAY</strong> command that is directly followed by a <strong>SOUND</strong> command that plays a sound in the same voice channel, they are combined! This gives a pitch bending sound with a volume envelope! <strong>T5</strong> means that I use the predefined guitar volume envelope, and <strong>HC</strong> means half note of C (two quarters long C).</p>
<pre>10 SOUND 1, 8000, 50, 7000, 100
20 PLAY "V1 T5 HC"</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/05/the-oddities-go64-and-sound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The sprite engine</title>
		<link>http://www.winsoft.se/2010/05/the-sprite-engine/</link>
		<comments>http://www.winsoft.se/2010/05/the-sprite-engine/#comments</comments>
		<pubDate>Sat, 29 May 2010 12:04:49 +0000</pubDate>
		<dc:creator>Anders Hesselbom</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[C128]]></category>

		<guid isPermaLink="false">http://www.winsoft.se/?p=1171</guid>
		<description><![CDATA[One of the built in applications in the C128 is the sprite editor. Enter it by typing SPRDEF. Choose a sprite number, use the cursor keys to move the cursor and numeric keys to draw. 1 will delete a pixel, 2 will draw with the first color. In multicolor mode, you can also use 3 [...]]]></description>
			<content:encoded><![CDATA[<p>One of the built in applications in the C128 is the sprite editor. Enter it by typing <strong>SPRDEF</strong>. Choose a sprite number, use the cursor keys to move the cursor and numeric keys to draw. 1 will delete a pixel, 2 will draw with the first color. In multicolor mode, you can also use 3 and 4. To save and close the editor, press SHIFT+ENTER followed by ENTER.</p>
<p><img alt="" src="http://imghost.winsoft.se/upload/227881275133889sprites.jpg" class="alignnone" width="384" height="272" /></p>
<p>The sprite engine in Commodore Basic 7 lets you enable and disable sprites, and control sprite movement. The <strong>SPRITE</strong> command is used to turn sprites on or off and to set the sprite attributes. The arguments I have used is one-based sprite index (1), on (1), cyan color (4) in front of other graphics (0).</p>
<pre>10 SPRITE 1, 1, 4, 0</pre>
<p>My next line of code, will tell the sprite to move to the left using the <strong>MOVSPR</strong> command. The arguments I have used are one-based sprite index (1), 90 degrees at a speed of 4.</p>
<pre>20 MOVSPR 1, 90 # 4</pre>
<p>Type <strong>RUN</strong> to start the show.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.winsoft.se/2010/05/the-sprite-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
