Bo Frost said:
i tried all my original wii snapshots and the only one thats working fine is international karate.
here is what i get when trying to load those snaps in the custom frodo:
-paradroid,international karate+ and nebulus dont work. frodo just closes.
-uridium shows error "error reading snapshot file"
-california games shows error "illegal opcode 02 at 0a70. press ok to reset." after that, i see some colored blocks and then frodo resets.
-the last ninja 1 shows error "illegal opcode 52 at 64af" and rest the same as cg.
-impossible mission first starts, then tries to load from floppy(!) ,8 and then drops to c64 prompt(ready with blinking cursor). the led of the emulated floppy device blinks, like it does on "file not found".
here we can see that either the disk image is used too for this game or its one of the other files that come with this game, that the emu attempts to load.
for impossible mission, there are 3 files beside the snapshot and disk image which are between 1 to 6 kb big.
Well it's normal, it's based on the ik+ (or is it just ik?) snapshot file. It seems that there are a few snapshot formats. I just saw two of them for now, one of them is ik+ and the other one is california games.
Here is what I do when loading wii snapshot (ik+),
skip first 8 bytes, load the vic state (swapping hi/low bytes for integer values), load sid state, dismiss cia state, load cpu state(swapping hi/low bytes for integer values), dismiss 92 bytes, load 64k ram, load color ram, skip 1541 ram (2k)
Well IK+ is a single file game so it doesn't do disk access. Hence my custom frodo won't load snapshots that rely on 1541 (c64 drive) state. IK+ snapshot doesn't seem to be containing the 1541 state so for disk based games another host should be analyzed and used.
I believe I can tweak saved snapshot from my custom frodo to work on wii.
What I need is to identify those 8 bytes in the header of the snapshot file, reveal those 92 bytes after the cpu state... And for all that I actually only need a clean c64 prompt snapshot taken from the wii. Then I could compare it with the frodo one and can identify parts.
By the way did you have the chance to load another game in my custom frodo, save snapshot and try on wii?