MagicEngine
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Japanese English 

MagicEngine save states

 
Post new topic   Reply to topic    MagicEngine Forum Index -> General
View previous topic :: View next topic  
Author Message
Tomaitheous
Elder
Elder


Joined: 27 Sep 2005
Posts: 306
Location: Tucson

PostPosted: Sat Mar 18, 2006 11:17 pm    Post subject: MagicEngine save states Reply with quote

David, do you have a break down of were eveything is saved in the ME save states? Like the CPU regs, RAM, VDC VRAM/REGS, ROM, VCE regs, etc.

Thanks,
Rich
_________________
www.pcedev.net
Back to top
View user's profile Send private message
dmichel
Admin
Admin


Joined: 04 Apr 2002
Posts: 1166
Location: France

PostPosted: Sun Mar 19, 2006 7:52 am    Post subject: Reply with quote

No, I don't have this info, everything is written sequentialy in big chuncks (one for the CPU, one for the VDC, etc..), there are no structs. Is this important?
_________________
David Michel
Back to top
View user's profile Send private message
Tomaitheous
Elder
Elder


Joined: 27 Sep 2005
Posts: 306
Location: Tucson

PostPosted: Sun Mar 19, 2006 8:36 am    Post subject: Reply with quote

Quote:
Is this important?


It would help in translation/gfx hack projects. Locating the VRAM and rebuilding the BAT from the save state shouldn't be a problem, but trying to find the SATB pointer, palette data, MMU, RAM, etc in the save state would require a good amount of time.
_________________
www.pcedev.net
Back to top
View user's profile Send private message
kingshriek
Visitor
Visitor


Joined: 19 Mar 2006
Posts: 3

PostPosted: Sun Mar 19, 2006 8:46 am    Post subject: Reply with quote

This info applies to ME version 1.0.0 PR 10.

Data chunks (that dmichel mentioned) begin with an ASCII string (ex. "CPU", "IO", "PSG", "VCE", "VDC", "RAM", etc.).

Specific data (specified as offset from beginning of ASCII string):
IO+0x1C - current counter value (TIQ)
IO+0x20 - counter modulo ($1FEC00)
CPU+0x30...CPU+0x37 - MPR0-MPR7
RAM+0x14 - standard 8K RAM begins here (loc. of $1F0000)

additional RAM (if present) follows right after standard 8K RAM ends

That's about all I know (really just what's useful for HES ripping).
Back to top
View user's profile Send private message
Tomaitheous
Elder
Elder


Joined: 27 Sep 2005
Posts: 306
Location: Tucson

PostPosted: Sun Mar 19, 2006 9:36 am    Post subject: Reply with quote

Hey, that helps alot Kingshriek! Nice - I found the VCE palette data @ 0x8C80 in the Aldynes save state file.

Update:

Ok, palette data might not start at 0x8C80. I'll have to do some demo tests. Strange thing is that what looks like the palette data, appears to be store as a 32bit value instead of a 16 value.

Anyway, thanks for the point in the right direction Very Happy
_________________
www.pcedev.net
Back to top
View user's profile Send private message
dmichel
Admin
Admin


Joined: 04 Apr 2002
Posts: 1166
Location: France

PostPosted: Mon Mar 20, 2006 9:26 am    Post subject: Reply with quote

Tomaitheous wrote:
Ok, palette data might not start at 0x8C80. I'll have to do some demo tests. Strange thing is that what looks like the palette data, appears to be store as a 32bit value instead of a 16 value.


Yes, all the registers are saved in 32-bit words, even the CPU 8-bit registers.
_________________
David Michel
Back to top
View user's profile Send private message
Tomaitheous
Elder
Elder


Joined: 27 Sep 2005
Posts: 306
Location: Tucson

PostPosted: Tue Apr 04, 2006 1:06 am    Post subject: Reply with quote

Cool, thanks David Very Happy
_________________
www.pcedev.net
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MagicEngine Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group