| |
Narciso
Registered: Mar 2019 Posts: 10 |
ThcMOD to an address other than $0801
Greetings to all. I am the Spanish musician Narcisound.
I have created a SID with ThcMOD which always appears exported by default to the address $0801.
Is there any way to export the SID to another address?
I have tried with SIDRELOC but it has not been able to relocate the SID.
Thanks and a big hello to all the musicians in the scene. |
|
| |
Bansai
Registered: Feb 2023 Posts: 49 |
Do you already have a PSID header attached to it (such that it will play on a site like DeepSID) or is it a standalone PRG executable run through something like psid64 given how it's at $0801?
For harder to relocate tunes, if it's a .SID file, I've had a lot of success in using this: SIDdecompiler V0.8
...however after it does its work, you'll need to reassemble it at your destination address using tmpx, acme, etc. |
| |
Narciso
Registered: Mar 2019 Posts: 10 |
I think it's an executable that starts by doing a sys $080d.
Thcmod generates a peculiar SID, with its own irq routine, so you don't have to make irq calls to the player's jsr. And that is very bad for many.
Why?
If we want that while our SID created with Thcmod is playing, a background bitmap is drawn, or have a keyboard control, or whatever, we have to modify the source code registered in the file: replayer.asm
I don't understand why the programmers have decided to do this with the SIDs created by ThcMOD, when the most common thing would have been for ThcMOD to create a SID like the rest of the programs (GoatTracker for example). I mean a SID that you initialize from the control of your assembler routine and you touch it in each raster scan. |
| |
Dano
Registered: Jul 2004 Posts: 234 |
The issue is that a THCMod is not just a simple music called once per frame.
It's using custom code to play the music (1) AND all the needed sample work (2).
Which includes the mixing of samples et all.
It's not something you call once per frame an be good.
Even switching on the screen might introduce jitter and deviation to the playback due to badlines.
TL;DR: The standard output is just meant to play music as optimal as possible and nothing else. |
| |
Narciso
Registered: Mar 2019 Posts: 10 |
I understand the complexity of reproducing the SID created by ThcMOD.
Do you know if there are versions of the replayer.asm file, where the random characters that appear while the music routine is running are removed.
I ask this because instead I want to put a graphic bitmap to accompany the song. |
| |
The Human Code Machine
Registered: Sep 2005 Posts: 112 |
Adding a picture displayer to the replayer source isn't a big deal, but you have to make sure that the song isn't too large. |