<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: JavaScript Raster Bar Effect</title>
	<atom:link href="http://ajaxian.com/archives/javascript-raster-bar-effect/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/javascript-raster-bar-effect</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Diodeus</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269919</link>
		<dc:creator>Diodeus</dc:creator>
		<pubDate>Wed, 17 Dec 2008 13:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269919</guid>
		<description>sys 64802</description>
		<content:encoded><![CDATA[<p>sys 64802</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aurora</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269909</link>
		<dc:creator>aurora</dc:creator>
		<pubDate>Wed, 17 Dec 2008 08:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269909</guid>
		<description>nice one!</description>
		<content:encoded><![CDATA[<p>nice one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Breton</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269908</link>
		<dc:creator>Breton</dc:creator>
		<pubDate>Wed, 17 Dec 2008 05:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269908</guid>
		<description>hei wait a second, I&#039;m pretty sure &quot;RasterBar&quot; is not a built in type, and I don&#039;t see it defined anywhere in that code. What are you trying to pull here?</description>
		<content:encoded><![CDATA[<p>hei wait a second, I&#8217;m pretty sure &#8220;RasterBar&#8221; is not a built in type, and I don&#8217;t see it defined anywhere in that code. What are you trying to pull here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomasHansen</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269905</link>
		<dc:creator>ThomasHansen</dc:creator>
		<pubDate>Wed, 17 Dec 2008 01:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269905</guid>
		<description>@cromwellian
 -- *RESPECT*...!! :P</description>
		<content:encoded><![CDATA[<p>@cromwellian<br />
 &#8212; *RESPECT*&#8230;!! :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rlopes</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269903</link>
		<dc:creator>rlopes</dc:creator>
		<pubDate>Wed, 17 Dec 2008 00:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269903</guid>
		<description>That&#039;s what I have been growing up with and these hacking days still influence me today.
Many among the best are from this period.

Great !</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I have been growing up with and these hacking days still influence me today.<br />
Many among the best are from this period.</p>
<p>Great !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cromwellian</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269901</link>
		<dc:creator>cromwellian</dc:creator>
		<pubDate>Tue, 16 Dec 2008 21:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269901</guid>
		<description>Yeah, 6502 doesn&#039;t even have sin/cos unless you want to do powerseries expansion. I would typically write a short basic program to generate a table by poking values into memory at $c000, and then I&#039;d use an ML monitor to hex dump these into ASM data sections.

My favorite table was to use an exponentially decaying cosine table to implement a &#039;bounce&#039; gravity effect, something like

for i = 0 to 4
for j = 0 to 64
  poke 49152 + i * 64 + j, cos(j/64 * pi/2) / exp(i)
next j
next i

(apologies, I forgot most of basic)</description>
		<content:encoded><![CDATA[<p>Yeah, 6502 doesn&#8217;t even have sin/cos unless you want to do powerseries expansion. I would typically write a short basic program to generate a table by poking values into memory at $c000, and then I&#8217;d use an ML monitor to hex dump these into ASM data sections.</p>
<p>My favorite table was to use an exponentially decaying cosine table to implement a &#8216;bounce&#8217; gravity effect, something like</p>
<p>for i = 0 to 4<br />
for j = 0 to 64<br />
  poke 49152 + i * 64 + j, cos(j/64 * pi/2) / exp(i)<br />
next j<br />
next i</p>
<p>(apologies, I forgot most of basic)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PieturP</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269897</link>
		<dc:creator>PieturP</dc:creator>
		<pubDate>Tue, 16 Dec 2008 21:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269897</guid>
		<description>Whoops, didn&#039;t read cromwellian well enough...</description>
		<content:encoded><![CDATA[<p>Whoops, didn&#8217;t read cromwellian well enough&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PieturP</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269896</link>
		<dc:creator>PieturP</dc:creator>
		<pubDate>Tue, 16 Dec 2008 21:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269896</guid>
		<description>You wouldn&#039;t use cos/sin Math, but use a lookup table instead ;-)</description>
		<content:encoded><![CDATA[<p>You wouldn&#8217;t use cos/sin Math, but use a lookup table instead ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spocke</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269895</link>
		<dc:creator>Spocke</dc:creator>
		<pubDate>Tue, 16 Dec 2008 20:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269895</guid>
		<description>Yeah! Retro. This brings me back to the good old days. jmp #fc0000</description>
		<content:encoded><![CDATA[<p>Yeah! Retro. This brings me back to the good old days. jmp #fc0000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: starkraving</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269894</link>
		<dc:creator>starkraving</dc:creator>
		<pubDate>Tue, 16 Dec 2008 19:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269894</guid>
		<description>And you tell that to the young kids of today, and they won&#039;t believe you...</description>
		<content:encoded><![CDATA[<p>And you tell that to the young kids of today, and they won&#8217;t believe you&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cromwellian</title>
		<link>http://ajaxian.com/archives/javascript-raster-bar-effect/comment-page-1#comment-269892</link>
		<dc:creator>cromwellian</dc:creator>
		<pubDate>Tue, 16 Dec 2008 18:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5409#comment-269892</guid>
		<description>Amiga? Atari? Bah, these machines were much too powerful for Raster Bars, like having a Copper chip coprocessor to doing them. Back in the Commie 64 dayz, we did it the hard way, with cycle accurate delay timing of register pokes, and the code was smaller! :)

wait lda $d012
       cmp #$20
       bne wait
       ldx #$0
loop lda colorTable, x
       sta $d020
       ldy delayTable, x
spin dey
       bne spin
       inx
       cpx #8
       bne loop

(ok, you wouldn&#039;t use lda $d012/cmp/bne, but use a raster interrupt)</description>
		<content:encoded><![CDATA[<p>Amiga? Atari? Bah, these machines were much too powerful for Raster Bars, like having a Copper chip coprocessor to doing them. Back in the Commie 64 dayz, we did it the hard way, with cycle accurate delay timing of register pokes, and the code was smaller! :)</p>
<p>wait lda $d012<br />
       cmp #$20<br />
       bne wait<br />
       ldx #$0<br />
loop lda colorTable, x<br />
       sta $d020<br />
       ldy delayTable, x<br />
spin dey<br />
       bne spin<br />
       inx<br />
       cpx #8<br />
       bne loop</p>
<p>(ok, you wouldn&#8217;t use lda $d012/cmp/bne, but use a raster interrupt)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

