<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ChipMusic.org - .prg export from Goattracker]]></title>
		<link>https://chipmusic.org/forums/topic/2777/prg-export-from-goattracker/</link>
		<description><![CDATA[The most recent posts in .prg export from Goattracker.]]></description>
		<lastBuildDate>Mon, 08 Nov 2010 18:33:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: .prg export from Goattracker]]></title>
			<link>https://chipmusic.org/forums/post/45610/#p45610</link>
			<description><![CDATA[<b><i>tRasH cAn maN says:</i></b><p>Thanks a lot mate!<br />After I tried your file and it was working beautifully, I realized that there was something in the export from Goattracker that wasn&#039;t right.<br />What solved the problem was to say no to &quot;Use zeropage ghost regs&quot;. Then it worked like a charm. <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Next, reading up on raster interrupts and the memory map.</p>]]></description>
			<pubDate>Mon, 08 Nov 2010 18:33:48 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/45610/#p45610</guid>
		</item>
		<item>
			<title><![CDATA[Re: .prg export from Goattracker]]></title>
			<link>https://chipmusic.org/forums/post/45590/#p45590</link>
			<description><![CDATA[<b><i>4mat says:</i></b><p>while I&#039;m here, this is some timer friendly code to do the same thing:</p><div class="codebox"><pre><code>sei

; init song
lda #$00
jsr $7000

; point hardware interrupt registers at our play routine
lda #&lt;raster
sta $0314
lda #&gt;raster
sta $0315
; set raster position (in this case, below bottom border on PAL machines)
lda #252                        
sta $d012                      
lda $d011
and #$7f                        
sta $d011                      
; init interrupts
lda #$7f                       
sta $dc0d
lda #$01                        
sta $d01a
lda $dc0d                     
; return to system now interrupts are running.
cli
rts

; play routine, just calls a frame of the music and changes border colour so we have some visuals.
raster
dec $d020
jsr $7003
inc $d020
; ack interrupts
dec $d019
jmp $ea31
 </code></pre></div>]]></description>
			<pubDate>Mon, 08 Nov 2010 14:28:54 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/45590/#p45590</guid>
		</item>
		<item>
			<title><![CDATA[Re: .prg export from Goattracker]]></title>
			<link>https://chipmusic.org/forums/post/45540/#p45540</link>
			<description><![CDATA[<b><i>4mat says:</i></b><p>Yep that should be ok, just tried it.&nbsp; <a href="http://dl.dropbox.com/u/4816829/sys24576.prg" target="_blank">Here&#039;s my compile</a> (Player at $6000, song at $7000)</p>]]></description>
			<pubDate>Mon, 08 Nov 2010 00:23:44 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/45540/#p45540</guid>
		</item>
		<item>
			<title><![CDATA[Re: .prg export from Goattracker]]></title>
			<link>https://chipmusic.org/forums/post/45539/#p45539</link>
			<description><![CDATA[<b><i>tRasH cAn maN says:</i></b><p>Thanks for your help. It all makes sense.<br />I&#039;m not yet familiar with the 6010&#039;s raster lines and interrupts. I&#039;ve tried your piece of code in Vice but unfortunately I&#039;m not getting any sound. <br />I&#039;ve tried loading up a game in Vice so I know the audio works.<br />If I put the above code @ address $6000, I should enter SYS24576 to start it, right?<br />Do I need to do anything else?</p>]]></description>
			<pubDate>Mon, 08 Nov 2010 00:14:14 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/45539/#p45539</guid>
		</item>
		<item>
			<title><![CDATA[Re: .prg export from Goattracker]]></title>
			<link>https://chipmusic.org/forums/post/45537/#p45537</link>
			<description><![CDATA[<b><i>4mat says:</i></b><p>GoatTracker doesn&#039;t have a timer-enabled driver attached to it when you export.&nbsp; (afaik, unless they added one in 2.x series)</p><p>$7000 will init the song<br />$7003 will play a frame of the song only.</p><p>So you&#039;d need a little bit of code to play it like:</p><p>SEI<br />; init<br />LDA #$00<br />JSR $7000<br />; loop, wait for raster ($d012) to hit line 128<br />RASTER LDA $D012<br />CMP #$80<br />BNE RASTER<br />; play frame of song<br />JSR $7003<br />; jump back to raster loop<br />JMP RASTER</p>]]></description>
			<pubDate>Sun, 07 Nov 2010 23:22:37 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/45537/#p45537</guid>
		</item>
		<item>
			<title><![CDATA[.prg export from Goattracker]]></title>
			<link>https://chipmusic.org/forums/post/45510/#p45510</link>
			<description><![CDATA[<b><i>tRasH cAn maN says:</i></b><p>Could someone be so kind to give me a walk-through on how to play a song packed as a .prg from Goattracker?<br />I&#039;ve tried exporting using all default settings (Start address $7000, etc)<br />Then tried loading the .prg in VICE (File -&gt; Autostart disk/tape image)<br />and then in monitor I&#039;ve added:<br /></p><div class="codebox"><pre><code>.a $6F00 LDA $00
.a $6F02 JSR $7000</code></pre></div><p>Then moved the PC to $6F00 with SYS28416<br />This didn&#039;t do anything so I tried adding <br /></p><div class="codebox"><pre><code>.a $6F05 JSR $7003</code></pre></div><p>But still nothing. What am I missing here?</p>]]></description>
			<pubDate>Sun, 07 Nov 2010 14:24:52 +0000</pubDate>
			<guid>https://chipmusic.org/forums/post/45510/#p45510</guid>
		</item>
	</channel>
</rss>
