Language…
12 users online: Batata Douce, DanMario24YT, ForthRightMC, Fozymandias, Isikoro, kurtistrydiz, LightAligns, mathew, Maw,  Saphros, simon.caio, TheOrangeToad - Guests: 262 - Bots: 346
Users: 64,795 (2,378 active)
Latest user: mathew

SMW save routine

I disassembled the SMW save routine, the format is pretty simple. Basically what it does is:

1) Get the file index.
2) Index a table to get the SRAM address.
3) Copy the SRAM buffer to SRAM($1F49 which is actually a mirror of $7E:1EA2-$7E:1F2E).
4) While doing this it keeps a sum of the buffers contents, this is used to calculate the check sum complement.($8D contains the sum).
5) The check sum is subtracted from #$5A5A(the default checksum value) and written to SRAM as the last byte of the file.
6) Make a duplicate copy of the file, presumably this was to ensure data integrity. (Basically repeated from step 3, however 288 bytes are added to the SRAM index).

You can find a commented routine here.

Anyways, somebody should probably wiki this.
Ah, thank you very much. The checksum routine was giving me hell when I tried to figure out what I did, and I pretty much ended up bypassing it in all the stuff I made. Which, I suppose, isn't a wholly bad thing in and of itself, especially since the 's-ram' is being stored as a computer file, not hardware.
Now with extra girl and extra hacker
As per p4's request, I have "wikified" this info. It only contains what's found in this thread, so there's nothing new there (other than the starting address of the routine). Feel free to add more stuff if anyone has anything to contribute to it.