Login
Back to forumSee the full topicGo to last reply

Posted By

Luca
on 2009-05-14
12:55:09
 Re: TED Music Collection?

IstvanV: digi tunes have one single init/play address, you let'em run and that's all; in normal tune files, JSR$init at the very beginning and JSR$play usually into an irq (yes one time per frame, 50Hz), thalassa is 2x, hence you have to JSR two different addresses (that's the TLCplay) per frame.

A player for Thalassa as an example:

. 2000 78 SEI
. 2001 8D 3F FF STA $FF3F
. 2004 A2 40 LDX #$40
. 2006 A0 20 LDY #$20
. 2008 8E FE FF STX $FFFE
. 200B 8C FF FF STY $FFFF
. 200E 20 93 6F JSR $6F93
. 2011 A9 40 LDA #$40
. 2013 8D 0B FF STA $FF0B
. 2016 58 CLI
. 2017 4C 17 20 JMP $2017

. 2040 48 PHA
. 2041 8A TXA
. 2042 48 PHA
. 2043 98 TYA
. 2044 48 PHA
. 2045 EE 15 FF INC $FF15
. 2048 EE 19 FF INC $FF19
. 204B 20 96 6F JSR $6F96
. 204E 20 99 6F JSR $6F99
. 2051 CE 15 FF DEC $FF15
. 2054 CE 19 FF DEC $FF19
. 2057 0E 09 FF ASL $FF09
. 205A 68 PLA
. 205B A8 TAY
. 205C 68 PLA
. 205D AA TAX
. 205E 68 PLA
. 205F 40 RTI

We are inventing a brand new format, and .sid is a good starting point to decide how it can be done. Moreover, we speculated enough about what it could need. So, feel free to test your own format, the features we liisted are all useful wink



Back to top


Copyright © Plus/4 World Team, 2001-2024