Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Goodwell ! (Registered 2025-05-31) You are not logged in - nap
CSDb User Forums


Forums > C64 Composing > Universal SID Relocator
2013-09-30 03:02
The Shadow

Registered: Oct 2007
Posts: 304
Universal SID Relocator

Is there a reliable relocation tool that can be used to take any SID music and relocate it to the memory of the users' choice, including with unconventional players found in game music?
2013-09-30 06:13
Cresh

Registered: Jan 2004
Posts: 354
http://www.linusakesson.net/software/sidreloc/index.php
2013-09-30 13:35
TheRyk

Registered: Mar 2009
Posts: 2451
yep also got an entry here on CSDb
Sidreloc V1.0
greatest tool ever
2013-09-30 15:09
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
practically, its nearly, but not completely impossible to do such a uni reloc tool.

but it has to be done on a pc, with complete auto decompile, and recompile, else it wont be possible. you cannot code this on a c64, there isnt ram or disk enough to do it total, imo.

krill and me once talked how to do it, but its a huge job.
i mean, if TOTAL, always works, solution.

IMO, some supercoder is required, and a cross tool is the only way to do it.

imo :)

(i have tried)
2013-09-30 16:25
The Shadow

Registered: Oct 2007
Posts: 304
Thank you guys!
SIDwave: It would probably take Crossbow to be able to create this on the C=64 ;)
2013-09-30 16:50
algorithm

Registered: May 2002
Posts: 707
Emulation of 6502 and keeping track of memory reads and offsets as well as checks that writes back to code (self modifying) would work, and I believe this is how LFT has done it. (I assume his tool is a universal reloc tool)
2013-09-30 17:16
chatGPZ

Registered: Dec 2001
Posts: 11502
it would be doable using the same approach on C64 too.... but it'd be slooooooooooow =)
2013-09-30 18:16
titan_ae
Account closed

Registered: Jun 2002
Posts: 46
for the sidburners i used Machine-Code Relocator

ofcourse i had to change the adressing tables and fixed low and high bytes by hand :)
2013-10-01 10:02
Krill

Registered: Apr 2002
Posts: 3077
If these automated tools fail, you can always dis-assemble code and then compile to another location. Might need a bit of massaging, but still! :)
2013-12-05 01:45
theWizard
Account closed

Registered: Jul 2007
Posts: 109
Quote: Is there a reliable relocation tool that can be used to take any SID music and relocate it to the memory of the users' choice, including with unconventional players found in game music?

expert cartridge and a bit of knowledge can relocate any tune.


titan_ae thats correct.


most tunes use hard coded offsets at certain locations in the tune its self for example

tune data start ( after the player routine ) [0x04,0x13]

where 0x1304 is a pointer to lets say block 5 of the tune. etc etc

to relocate to i dunno 8000 you would change it to 0x04,0x83 and so on for every pointer that the player is using.

i suppose you could do it by looking in memory ranges that the tune is known to be in and illiminate all other offsets from the relocation ( ie they will be tune data not offset data )this could be done with something along the lines of what SIDwave suggested using dissasembly but it might on the odd occasion get it totally wrong and then you would be back to square 1 , so back to doing it manually which i suggested would be the best aproach.
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
Jedfox/Skylight Desi..
Mixer
zscs
Exile/Anubis
ThunderBlade/BLiSS
iAN CooG/HVSC
NthSt4r
SplAtterpunk
Knobby/Role
Scrap/Genesis Project
Guests online: 94
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.6)
4 Codeboys & Endians  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 What Is The Matrix 2  (9.6)
9 Uncensored  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Nine  (9.7)
2 Two 4 One  (9.7)
3 Scan and Spin  (9.7)
4 Layers  (9.6)
5 Cubic Dream  (9.6)
6 Party Elk 2  (9.6)
7 Copper Booze  (9.5)
8 Onscreen 5k  (9.5)
9 Libertongo  (9.5)
10 Dawnfall V1.1  (9.5)
Top Groups
1 Artline Designs  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Archmage  (9.7)
2 Mirage  (9.7)
3 Sulevi  (9.6)
4 Carrion  (9.6)
5 Pal  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.064 sec.