Previous Thread
Next Thread
Print Thread
Page 52 of 120 1 2 50 51 52 53 54 119 120
Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
Quote
I can expect that most of them fails their test, but the CG RAM failing is quite bogus...?

Are you buffering CGRAM accesses properly? When you write the first value it gets stored in a buffer, and it writes the 15-bit pair on the second write. Writing to $2121 clears the "latch" so to speak so that the next write after will be buffered. Reads are immediate, however. d7 of every second read returns the PPU2 MDR, or open bus.

How about wrapping around? After writing to $2122 at $01ff, it wraps back to $0000.

We're lucky that the test doesn't try writing to CGRAM during active display, heh.

Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Originally Posted by guigongas
What's wrong with Zelda? I can't see no error in it.

SVN r5826
snespal driver

[Linked Image from img17.imageshack.us]

This was the reason why I gave a comment.


SVN r5839
snespal driver

[Linked Image from img43.imageshack.us]

Seems to be ok now.

PS: Using GCC for compiling.

Last edited by Anna Wu; 09/22/09 06:51 AM.
Joined: Jan 2006
Posts: 3,691
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,691
I suggest you to use either nsrt or goodsnes to remove header from your roms. with proper headerless images you would have had no corruption.

however, we fixed the problem wink

Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Originally Posted by etabeta78
I suggest you to use either nsrt or goodsnes to remove header from your roms. with proper headerless images you would have had no corruption.

however, we fixed the problem wink

Thank you for the info, etabeta78. smile

Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
It'd be great if you guys were willing to enforce a no-copier-header rule for MAME/MESS images smile

They serve absolutely no purpose other than making IPS patch applications a crapshoot, and only remain due to popular emulators refusing to remove support for them.

byuu #54257 09/22/09 12:38 PM
Joined: Aug 2009
Posts: 1,261
Likes: 193
Kale Offline OP
Very Senior Member
OP Offline
Very Senior Member
Joined: Aug 2009
Posts: 1,261
Likes: 193
Originally Posted by byuu
Quote
I can expect that most of them fails their test, but the CG RAM failing is quite bogus...?

Are you buffering CGRAM accesses properly? When you write the first value it gets stored in a buffer, and it writes the 15-bit pair on the second write. Writing to $2121 clears the "latch" so to speak so that the next write after will be buffered. Reads are immediate, however. d7 of every second read returns the PPU2 MDR, or open bus.

How about wrapping around? After writing to $2122 at $01ff, it wraps back to $0000.

We're lucky that the test doesn't try writing to CGRAM during active display, heh.

It was a rather silly bug on the read cgram data, something like:


case RCGDATA: /* Read data from CGRAM */
if (cgram_address & 0x01)
{
snes_ppu.ppu2_open_bus = ((UINT8 *)snes_cgram)[cgram_address] & 0xff;
}
else
{
snes_ppu.ppu2_open_bus &= 0x80;
snes_ppu.ppu2_open_bus |= ((UINT8 *)snes_cgram)[cgram_address] & 0x7f;
}


...instead of...


if (!(cgram_address & 0x01))
{
snes_ppu.ppu2_open_bus = ((UINT8 *)snes_cgram)[cgram_address] & 0xff;
}
else
{
snes_ppu.ppu2_open_bus &= 0x80;
snes_ppu.ppu2_open_bus |= ((UINT8 *)snes_cgram)[cgram_address] & 0x7f;
}


...guess that I need to check the other errors as well (first off the APU fail) smile

Last edited by Kale; 09/22/09 01:32 PM. Reason: Corrected the fix
Joined: Jul 2009
Posts: 30
G
Member
Offline
Member
G
Joined: Jul 2009
Posts: 30
Originally Posted by guigongas
Regressions in svn 5824:

-Super Mario World has no sound.
-Rock 'n' Roll Racing resets when entering a race
-Many other games don't even start

What happened?
All working again. Thanks! smile

Joined: Jun 2008
Posts: 205
B
Senior Member
Offline
Senior Member
B
Joined: Jun 2008
Posts: 205
Quote
...guess that I need to check the other errors as well (first off the APU fail)

That may be a tough one. Surprisingly even Super Sleuth is failing it. Made this for fun / bragging. May help troubleshoot the remaining issues.
http://img242.imageshack.us/img242/8840/agingcassette.png

If you want to go at it anyway, I'd suggest referencing blargg's GME S-SMP core. It's also fully cycle-accurate for every testable opcode, and even emulates a special feature I don't, a glitch involving the counters.

But if you get them all, it's pretty neat. It runs a slightly different version of the SNES character test afterward while playing "When you wish upon a star" in the background. Would've been more fitting had I kept the name StarSNES wink

"EXT LATCH" would probably be the next one to target. It's probably using STAT78 and PIO for that.

byuu #54273 09/22/09 06:36 PM
Joined: Aug 2009
Posts: 1,261
Likes: 193
Kale Offline OP
Very Senior Member
OP Offline
Very Senior Member
Joined: Aug 2009
Posts: 1,261
Likes: 193
Originally Posted by byuu
"EXT LATCH" would probably be the next one to target. It's probably using STAT78 and PIO for that.

EXT LATCH tests the horizontal latch at 0x213c (OPHCT) (puts it at work ram $0054-5 then checks with various values, put a breakpoint at pc=9226 to quickly check it). I can workaround it but it's directly related to the maincpu/pixel clock timings, so it'll do damage in the long term. Same goes for the VH flag test, in the end the fault is shared of that 256/512 switch thing that I've putted up that shows one of the major flaws in MAME/MESS architecture...

Last edited by Kale; 09/22/09 06:44 PM.
Kale #54275 09/22/09 07:00 PM
Joined: Mar 2001
Posts: 17,234
Likes: 260
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,234
Likes: 260
The DMA MEMORY fail is probably a bit scarier smile

Page 52 of 120 1 2 50 51 52 53 54 119 120

Link Copied to Clipboard
Who's Online Now
1 members (AJR), 215 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,328
Posts122,128
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