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: 66
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: 1814
exomizer sfx 0x080d -Di_load_addr=0x4000 FILES...
2020-04-29 12:07
chatGPZ

Registered: Dec 2001
Posts: 11523
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: 1814
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: 11523
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: 1814
...and in subsizer it's: -Xjmp=0x080d,load=0x4000
2020-04-29 14:16
wil

Registered: Jan 2019
Posts: 66
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
Grue/Extend
zscs
kbs/Pht/Lxt
psych
Guests online: 432
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Performers  (9.3)
4 Oxyron  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Sulevi  (9.6)
4 Pal  (9.6)
5 Hein  (9.6)

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