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 > Action Replay Freezed Multiple Part Images
2010-04-02 15:14
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?
2010-04-02 15:30
algorithm

Registered: May 2002
Posts: 702
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
2010-04-02 18:31
tlr

Registered: Sep 2003
Posts: 1714
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. ;)
2010-04-02 20:32
iAN CooG

Registered: May 2002
Posts: 3132
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
2010-04-03 04:21
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.

2010-04-04 01:08
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.
2010-04-04 02:35
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Alright. ok :D
2010-04-04 07:41
chatGPZ

Registered: Dec 2001
Posts: 11114
and now rambones will buy a book about song progressions ? =P
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
St0rmfr0nt/Quantum
cba
theK/ATL
Steffan/BOOM!
Jammer
Low Spirit
Linus/MSL
Guests online: 107
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 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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 NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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