Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Composing > ThcMOD to an address other than $0801
2024-11-02 22:41
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.
2024-11-03 21:01
Bansai

Registered: Feb 2023
Posts: 48
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.
2024-11-04 10:28
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.
2024-11-04 10:50
Dano

Registered: Jul 2004
Posts: 231
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.
2024-11-04 11:17
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.
2024-11-04 12:15
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Wayne/Art Ravers
JackAsser/Booze Design
BYB/Hokuto Force
Guests online: 114
Top Demos
1 Next Level  (9.7)
2 What Is The Matrix 2  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Mojo  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Mikael  (9.6)
5 Carrion  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.048 sec.