Previous Thread
Next Thread
Print Thread
Page 47 of 120 1 2 45 46 47 48 49 119 120
Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
Just saw that the SGB BIOS was dumped, neat.
http://www.its.caltech.edu/~costis/sgb_hack/

Reminded me of my old work on emulating the Super Game Boy. Unfortunately, I got stuck due to my limited knowledge of the Game Boy hardware. While I myself was using gambatte as the Game Boy core, I imagine MESS is in a great position to use their own core.

So, how interested would you guys be in working with me to emulate something new for the very first time, as opposed to simply adding all these old chips in? smile

My research notes are here:
http://byuu.org/files/supergameboy.txt

The problem I'm having is explained under the $7800 register section, and I'm also quite stumped on the purpose of $6001.

I've gotten far enough to have the entire SGB BIOS running, all Gameboy non-SGB games running perfectly with full video, audio and input; and I've gotten a few SGB-specific commands to execute, but again, that $7800 problem makes almost everything unplayable.

I took out the code from the core because it was too unstable (and because I wanted to modularize the GB portion to a DLL/SO library), but if anyone is interested I can post one of the public v045 WIPs that had the aforementioned support.

Note: I'm looking for more than suggestions, eg actual help: testing ideas directly and such. Someone familiar with the GB-side of things would be quite valuable.

byuu #54114 09/19/09 07:08 AM
Joined: Apr 2004
Posts: 1,563
Likes: 12
J
Very Senior Member
Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,563
Likes: 12
Nice info there. I've been planning on removing the seperate supergb driver we have in MESS now and replace it with full snes+gb emulation so it can work more like the real thing did. But I have not done anything towards really adding it yet.

What I did notice is that after the initial sending the gameboy rom information the actual sgb games read back from ff00 and expect to not see the lowest 2 bits set. If both bits are set the games will not send any sgb games, otherwise they will. I don't think that explains anything about 6001 and 7800 though.

judge #54115 09/19/09 09:45 AM
Joined: Jan 2006
Posts: 3,691
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,691
fixing a small mirroring problem gives us Star Ocean title screen

[Linked Image from mamedev.emulab.it]

not sure still why it freezes when you press Start, however. I'm going to investigate SRAM in the afternoon, just to be sure the problem is not there.

otoh, it could well be a problem in our core emulation, since it's not the only game with this (annoying) behaviour


EDIT: you can play Star Ocean by underclocking maincpu below 50%! it's definitely a CPU sync issue. this means that S-DD1 is now supported in MESS smile

Last edited by etabeta78; 09/19/09 02:47 PM.
Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Maybe we need a " Thank You " button in the forum.

Thanks, etabeta78 smile

Last edited by Anna Wu; 09/19/09 11:19 AM.
Joined: May 2009
Posts: 2,214
Likes: 382
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
Hey byuu, who do I need to get permission from to include SPC7110 in MESS?

Joined: Jan 2006
Posts: 3,691
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,691
byuu itself did most of the research with the guys mentioned in the source / docs. I think it is enough to provide due credits in this case. wink

Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
Quote
Hey byuu, who do I need to get permission from to include SPC7110 in MESS?

neviksti was the one to crack the decompression engine, and I optimized a bit of that, removing some loops and generating a lookup table to de-interleave bits. I also emulated all the rest (data port, math, memory mapper, RTC units) by studying the hardware test.

neviksti said PD, as did I, so no credit needed as per the S-DD1, S-RTC and SuperFX modules.

And lastly, don't forget that you'll need proper S-RTC support: if you just give it the system time, you won't be able to pass the FEoEZ test program on startup without a hack.

Just be sure to keep compatibility with my .rtc save format if you port over my code. SNESGT and Snes9X WIP also use it. The crazy time_t handling is to allow it to work even after Y2k38 even on 32-bit time_t systems.

byuu #54137 09/19/09 05:14 PM
Joined: May 2009
Posts: 2,214
Likes: 382
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
Originally Posted by byuu
And lastly, don't forget that you'll need proper S-RTC support: if you just give it the system time, you won't be able to pass the FEoEZ test program on startup without a hack.

I'll burn that bridge as I cross it, for now I'm just trying to get Momotarou Dentetsu Happy working, I'll worry about FEoEZ later. smile

Originally Posted by byuu
Just be sure to keep compatibility with my .rtc save format if you port over my code. SNESGT and Snes9X WIP also use it.

I'll look into it. My only worry is that the MAME and MESS architecture is very strict about how it handles saving NVRAM - the data is deserialized into an .nv file, and there are no methods provided for saving ancillary data streams in arbitrary files. I'm sure there's some way I can do it, I just can't think of any at the moment.

Joined: Jan 2006
Posts: 3,691
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,691
I fear at the moment we are strictly forced to save these data in gamename.nv. once MAME adds support for multiple nvram/sram files we may immediately add support for these .rtc files.

for the time being I fear we have to append the rtc content at the end of the sram frown

Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
What's in the .RTC files and why is compatibility such a big thing? Honestly it's in everyone's interest to discourage emulator-hopping lest it cause weird bugs that don't otherwise happen.

Page 47 of 120 1 2 45 46 47 48 49 119 120

Link Copied to Clipboard
Who's Online Now
4 members (ameath, Kale, robcfg, 1 invisible), 519 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,930
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com