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 Coding > exomizer relocate SFX file
2020-04-29 09:57
wil

Registered: Jan 2019
Posts: 42
exomizer relocate SFX file

Is it possible to tell exomizer to place an sfx file at a given memory address? I know that there is an option -l (small L) with exomizer mem, but this does not add an sfx. Based on the set target (C64, VC20, C128, etc.) it seems that exomizer is able to place the sfx code at different memory locations, but so far I could not find out how to tell it to do so.

A different thing: when playing with the options, I also tried "exomizer sfx bin myfile.prg", but this fails because of a negative jmp address. What is the proper way to use "exomizer sfx bin"?
2020-04-29 10:17
tlr

Registered: Sep 2003
Posts: 1714
exomizer sfx 0x080d -Di_load_addr=0x4000 FILES...
2020-04-29 12:07
chatGPZ

Registered: Dec 2001
Posts: 11114
this makes a file that (unpacked) runs at 080d, but the packed file is located 4000- and will get depacked by jumping to 4000? i was asking myself the same a while ago, i was totally sure it can be done.... but i forgot :) where did you find this info in the first place?
2020-04-29 12:15
tlr

Registered: Sep 2003
Posts: 1714
Quote: this makes a file that (unpacked) runs at 080d, but the packed file is located 4000- and will get depacked by jumping to 4000? i was asking myself the same a while ago, i was totally sure it can be done.... but i forgot :) where did you find this info in the first place?

Correct.

The info is in exo20info.txt (also included in exo3 distributions), section "Reference for the sfx decruncher symbols".

When I use exomizer I use that and the i_ram_* + i_irq_* symbols almost always to add a custom start up and avoid unnecessary setting of $01 and SEI/CLI's.
2020-04-29 12:44
chatGPZ

Registered: Dec 2001
Posts: 11114
funky. i was totally convinced there was a (more simple) commandline option for this... and couldnt fine it :=)
2020-04-29 14:14
tlr

Registered: Sep 2003
Posts: 1714
...and in subsizer it's: -Xjmp=0x080d,load=0x4000
2020-04-29 14:16
wil

Registered: Jan 2019
Posts: 42
Works like a charm, thanks a lot! I also think there should be a command line option for this, like "-l" to work also with sfx
2022-10-14 09:44
Strepto

Registered: Dec 2015
Posts: 11
Quote:
exomizer sfx 0x080d -Di_load_addr=0x4000 FILES...


I needed this! Thanks :)
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
soci/Singular
Guests online: 111
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (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.046 sec.