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 > 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: 2035
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: 702
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: 11088
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: 2804
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
Colt45RPM
Guests online: 319
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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