| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
Action Replay Freezed Multiple Part Images
Good Day, All. I have a few files I have froze and they went over the 202 block limit so it split them into two different files. I found that they do not play nicely with disk menus. Anyway, I would love to make them one file and compress them somehow. I assume I would have to de-compile both PRG files and some how match them up. Or, another method, is saving the 'turbo' version (1 file) and removing the trubo load piece (if possible.) Has anyone done this (I know you have ;) )? What would be the best way about doing this? Also, is there any program that does it automatically? |
|
| |
algorithm
Registered: May 2002 Posts: 705 |
Action replay compressed files use simple RLE compression. You can always use a program such as Exomizer to compress them further. Pack rate obviously depends on the data that is packed, but i would guess you would be able to reduce the files size by around 40% or so
If there are similarities in the code for each seperate prg file, you can join the code/data area's together and compress them using LZ compression and then when decompressing, to decompress the required code sections to the correct place but that would require the 'unsnapshot' of the AR file |
| |
tlr
Registered: Sep 2003 Posts: 1790 |
Sounds like you want something like this: Anti-Isepic V2.0 but for AR.
Assuming the number of freeze/reset-crackers out there it should already exist. ;) |
| |
iAN CooG
Registered: May 2002 Posts: 3194 |
I have a dejavu. =)
It's very simple, when you save a "Standard" AR freeze, and the packed freeze goes after $cfff, it saves a loader "yourgame" with the memory at $D000-(end of mem) relocated at $0847, and a file "1yourgame" with the packed freeze memory from $0801 to $cfff. The loader firts relocates $0847 to $d000, then loads and executes all the program like it's loaded in one big chunk.
080D 78 SEI
080E E6 01 INC $01
0810 A2 08 LDX #$08
0812 A0 00 LDY #$00
0814 B9 47 08 LDA $0847,Y
0817 99 00 D0 STA $D000,Y
081A C8 INY
081B D0 F7 BNE $0814
081D EE 16 08 INC $0816
0820 EE 19 08 INC $0819
0823 CA DEX
0824 D0 EE BNE $0814
(then there is the loading part)
to onefile the 2 parts just use cbmcombine from pucrunch package, or build a custom assembler source to load the loader at $cfba ($d000-847+801) making sure you load the 2nd file as 2nd, so the mem at $cfba-$cfff will be overwritten by the correct ones =)
cbmcombine ASTERIX.prg,$cfba 1ASTERIX.prg -oasterix1filed.prg
then exomize asterix1filed.prg
My fixed cbmcombine is here
http://iancoog.altervista.org/C/pucrunch_src+mod_by_ian.rar |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
Dear Mister MSK:
Before you do anything more, please get a C64 coding book, and start learning what you are doing, by doing examples from the book, and learning the basics.
We cannot explain you things when you dont know the basics.
We are not your mother, and you have already the ability to read and talk and walk, thats all you need to learn yourself, and not get poked by us.
If you want to learn, you do it yourself
Then ask questions, when it really starts getting technical, and you lack skills.
Its just best for you.
I will give you a hint on this file stuff.
Take random programs, and read the depacker, and hack it so it stops after unpacking, and resets the machine.
Do it until you can depack any game/demo you want.
Then you know a bit more about what youre doing.
|
| |
MisterMSK Account closed
Registered: Jul 2009 Posts: 37 |
@iAN CooG, tlr, algorithm
Thank you guys for the help.
@Jan Harries
Actually, I used to program in the 80s for the 64 but I am really rusty at it. As well as, I did buy books and have complete a few of them. However, I like to engage the community since I am noticing the books seem to do things the 'old' way. I am finding engaging the community helps finding new tricks of the trade as you might say. Also, the books don't cover the messin' with Action Replay Freezes and I am sure people on here did, that is why I asked.
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
Alright. ok :D
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
and now rambones will buy a book about song progressions ? =P |