Banner
Views: 686,141,643
Time:
13 users online: anonimzwx, An_Professional, CosmicTiff, Darolac, Eevee, FailSandwich, Metal-yoshi, Nikushimi, Romano338, Super Stiviboy, Telinc1, VilelaBot, yygdrasil - Guests: 95 - Bots: 449Users: 36,029 (1,422 active)
Latest: Nikushimi
Tip: If you set the upper tile of the door to act like the lower tile, two-tile-high doors can be entered even while riding Yoshi.Not logged in.
SMW save routine
Forum Index - SMW Hacking - Resource & Tool Releases - SMW Data Repository - SMW save routine
Pages: « 1 »
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.
Pages: « 1 »
Forum Index - SMW Hacking - Resource & Tool Releases - SMW Data Repository - SMW save routine

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2018 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 23

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented