Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in General Emulation.
Acmlm's Board - I2 Archive - General Emulation - ZST file format? | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Smallhacker

Green Birdo

SMW Hacking Moderator
Level: 68

Posts: 1433/2273
EXP: 2647223
For next: 81577

Since: 03-15-04
From: Söderhamn, Sweden

Since last post: 10 hours
Last activity: 9 hours
Posted on 03-31-05 04:33 PM Link | Quote
I've searched a bit, but I can't find it.
Does anyone know the ZSNES savestate file format?
creaothceann

Red Paragoomba
Level: 11

Posts: 10/50
EXP: 5903
For next: 82

Since: 01-27-05

Since last post: 21 hours
Last activity: 21 hours
Posted on 03-31-05 08:58 PM Link | Quote
http://oregonstate.edu/~robinsfr/docs.html

db = byte, dw = word, dd = double word.

The following data is part of "tempdat":

KeyOnStA	db 0
KeyOnStB db 0

SDD1BankA db 0
SDD1BankB db 0
SDD1BankC db 0
SDD1BankD db 0
vramread2 db 0 ; previous character for vram read
nosprincr db 0
poamaddrs dw 0
ioportval db 0
iohvlatch db 0
ppustatus db 0
Smallhacker

Green Birdo

SMW Hacking Moderator
Level: 68

Posts: 1434/2273
EXP: 2647223
For next: 81577

Since: 03-15-04
From: Söderhamn, Sweden

Since last post: 10 hours
Last activity: 9 hours
Posted on 03-31-05 09:31 PM Link | Quote
Thanks, but since that document is next to unreadable to me, can anyone tell me at what address the RAM memory starts?


(edited by Smallhacker on 03-31-05 11:31 AM)
creaothceann

Red Paragoomba
Level: 11

Posts: 11/50
EXP: 5903
For next: 82

Since: 01-27-05

Since last post: 21 hours
Last activity: 21 hours
Posted on 03-31-05 11:30 PM Link | Quote
This should be at offset 0090F1EF.
Smallhacker

Green Birdo

SMW Hacking Moderator
Level: 68

Posts: 1436/2273
EXP: 2647223
For next: 81577

Since: 03-15-04
From: Söderhamn, Sweden

Since last post: 10 hours
Last activity: 9 hours
Posted on 04-01-05 01:34 AM Link | Quote
Thanks again.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 3984/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 04-01-05 05:33 AM Link | Quote
Start addresses are easy to find. Use AR/GS codes to modify the first address to something easily-recognizable.
Smallhacker

Green Birdo

SMW Hacking Moderator
Level: 68

Posts: 1439/2273
EXP: 2647223
For next: 81577

Since: 03-15-04
From: Söderhamn, Sweden

Since last post: 10 hours
Last activity: 9 hours
Posted on 04-01-05 10:08 AM Link | Quote
Guh... Why didn't I think about that?
creaothceann

Red Paragoomba
Level: 11

Posts: 12/50
EXP: 5903
For next: 82

Since: 01-27-05

Since last post: 21 hours
Last activity: 21 hours
Posted on 04-01-05 07:20 PM Link | Quote
Originally posted by creaothceann
This should be at offset 0090F1EF.

Sorry, that's wrong. The correct one is offset 0C13 (hex) or 3091 (decimal).

I need to check my tools...
Gideon Zhi

Red Tektite
Level: 13

Posts: 4/79
EXP: 10265
For next: 2

Since: 04-02-05

Since last post: 47 days
Last activity: 2 days
Posted on 04-02-05 09:11 PM Link | Quote
That's basically correct. The first C13 bytes contain header information appended to the file by ZSNES itself.

What follows is 128 kilobytes of WRAM. $C13-$10C12 contains WRAM bank $7E $10C13-$20C12 contains WRAM bank $7F. If you're looking for (for example) statistical data in an RPG, it'll be somewhere in that range, but it'll change drastically between games as you are probably aware.

The 32 kilobytes following ($20C13-$28C12) are where VRAM is stored. This is mainly picture data, but there's tilemap stuff in there too - could be useful if you're trying to find layout data in a ROM. The rest of it I'm not sure about - some of it contains the graphical data for the preview, and I'm not sure where the sprite tables get stored. That'd probably be something useful for me to learn at some point...
creaothceann

Red Paragoomba
Level: 11

Posts: 13/50
EXP: 5903
For next: 82

Since: 01-27-05

Since last post: 21 hours
Last activity: 21 hours
Posted on 04-04-05 04:31 PM Link | Quote
Originally posted by Gideon Zhi
The 32 kilobytes following ($20C13-$28C12) are where VRAM is stored. This is mainly picture data, but there's tilemap stuff in there too - could be useful if you're trying to find layout data in a ROM. The rest of it I'm not sure about - some of it contains the graphical data for the preview, and I'm not sure where the sprite tables get stored. That'd probably be something useful for me to learn at some point...

The size of VRAM is 64 KB, and the sprite data is in OAM. Tilemap addresses are in bg?ptr and tile addresses in bg?objptr.
The preview data (64x56 16-bit pixel) is in the last 7168 bytes, or may be missing...
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - General Emulation - ZST file format? | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.013 seconds.