| |
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"? |
|
| |
tlr
Registered: Sep 2003 Posts: 1714 |
exomizer sfx 0x080d -Di_load_addr=0x4000 FILES... |
| |
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? |
| |
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. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11114 |
funky. i was totally convinced there was a (more simple) commandline option for this... and couldnt fine it :=) |
| |
tlr
Registered: Sep 2003 Posts: 1714 |
...and in subsizer it's: -Xjmp=0x080d,load=0x4000 |
| |
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 |
| |
Strepto
Registered: Dec 2015 Posts: 11 |
Quote: exomizer sfx 0x080d -Di_load_addr=0x4000 FILES...
I needed this! Thanks :) |