Previous Thread
Next Thread
Print Thread
Page 92 of 120 1 2 90 91 92 93 94 119 120
#60901 - 04/06/10 01:48 PM Re: The SNES WIP topic [Re: Kale]  
Joined: Aug 2009
Posts: 1,131
Kale Offline
Very Senior Member
Kale  Offline
Very Senior Member

Joined: Aug 2009
Posts: 1,131
Naples, Italy
The Smurfs 2

85A57E: LDA $002140
85A582: CMP #$bbaa
85A585: BNE 85a5b7 ($30) <- ???


Enables some intense DMA transfers then checks sound port 0x2140, if it isn't 0xbbaa then it goes to an alternative route instead of just recheck the sound port. Timing bug.

Man, SNES programming tools must've been very very very ... very dire --"

#60906 - 04/06/10 04:01 PM Re: The SNES WIP topic [Re: Kale]  
Joined: Aug 2009
Posts: 1,131
Kale Offline
Very Senior Member
Kale  Offline
Very Senior Member

Joined: Aug 2009
Posts: 1,131
Naples, Italy
Another bug report, Final Fight (J) shows this at the Capcom logo, same issue as Super F1 Circus?



Sim City (garbage at the top of the title screen):



Super Tennis (U) / Super Tennis World Circuit (J) (mode 7 gfxs are offset when there's the change court animation):



Sim Earth has missing gfxs on gameplay (dunno why this was never reported before) and no sound



Pro Football (J) has flickering background, probably same issue of Daffy Duck and friends

Romancing SaGa (J) has misplaced gfxs just like Ardy Lightfoot:


Last edited by Kale; 04/06/10 07:12 PM.
#60914 - 04/06/10 06:24 PM Re: The SNES WIP topic [Re: Kale]  
Joined: Jan 2006
Posts: 3,685
etabeta78 Offline
Very Senior Member
etabeta78  Offline
Very Senior Member

Joined: Jan 2006
Posts: 3,685
Trondheim, Norway
Final Fight and Super Tennis have been like that since a long time (maybe since the beginning). I also thought I listed Super Tennis in the wiki bug page but I probably forgot about it

Sim City is otoh a regression happened after 0.137. I will try to find where it happened...

EDIT: Tin Star appears to have some glitch as well, appeared after 0.137. Give me a couple of days and I will have more time to find when these regressed and hopefully fix them.

btw, I finished going through Tafoid black screen. I will post the few new games which does not even reach title screen tomorrow (I still have to re-test a few of them)

#60915 - 04/06/10 08:03 PM Re: The SNES WIP topic [Re: etabeta78]  
Joined: Jun 2008
Posts: 205
byuu Offline
Senior Member
byuu  Offline
Senior Member

Joined: Jun 2008
Posts: 205
Finally, one I can answer.

Sim Earth needs proper vertical mosaic support to work.

Here's how you do it: take two variables, mosaicY and mosaicCounter. At Vcounter=1, reset mosaicY to 1, and mosaicCounter to the size value in MOSAIC ($4106.d7-d4). At each scanline, if mosaicCounter == 0, set mosaicY to the current Vcounter position. Now decrement mosaicCounter. If it's <= 0, reload the counter from MOSAIC's size value again.

Do that for each background independently. Simply writing to MOSAIC again won't reload the internal decrement counter, it'll have to reach zero to fetch in the new value.

Lastly, use mosaicY instead of the Vcounter for all purposes when rendering.

Obviously, you special case when $2106.d3-d0 has mosaic disabled for that BG by using the actual scanline instead.

#60916 - 04/06/10 08:12 PM Re: The SNES WIP topic [Re: byuu]  
Joined: Aug 2009
Posts: 1,131
Kale Offline
Very Senior Member
Kale  Offline
Very Senior Member

Joined: Aug 2009
Posts: 1,131
Naples, Italy
Super Famista (J) screen selection looks quite bogus:

MESS


BSNES


Guess it's some kind of subscreen issue.

#60918 - 04/06/10 09:11 PM Re: The SNES WIP topic [Re: Kale]  
Joined: Dec 2005
Posts: 443
Heretical_One Offline
Senior Member
Heretical_One  Offline
Senior Member

Joined: Dec 2005
Posts: 443
That looks like color addition/subtraction, Kale.

As a "quick test", try the pilot selection in UN Squadron. I suspect it is similar.

Suspected cause: color addition or subtraction with halving is not working rcorrectly (possibly only with 0,0,0 blends)

#60919 - 04/06/10 09:38 PM Re: The SNES WIP topic [Re: Heretical_One]  
Joined: Aug 2009
Posts: 1,131
Kale Offline
Very Senior Member
Kale  Offline
Very Senior Member

Joined: Aug 2009
Posts: 1,131
Naples, Italy
That works fine, but yeah, that looks like a color addition / subtraction crap.

#60922 - 04/07/10 12:36 AM Re: The SNES WIP topic [Re: Kale]  
Joined: Aug 2009
Posts: 1,131
Kale Offline
Very Senior Member
Kale  Offline
Very Senior Member

Joined: Aug 2009
Posts: 1,131
Naples, Italy
r7744 /src/mame/machine/snes.c: [SNES]: Basic implementation of the DMA master cycles steals

We started and here's the first results:

http://mamedev.emulab.it/kale/?p=1008

ETA: for some time, please don't report "minor" gfx glitches, just the black scren ones. I have to do many other tweaks to this thing hence it'll require some time. Please be patient.

Last edited by Kale; 04/07/10 01:55 AM.
#60925 - 04/07/10 03:15 AM Re: The SNES WIP topic [Re: Kale]  
Joined: Dec 2005
Posts: 443
Heretical_One Offline
Senior Member
Heretical_One  Offline
Senior Member

Joined: Dec 2005
Posts: 443
Did the SNES get changed to a 21.whatever MHz clock?

If not, Kale, then you're stealing way too many cycles smile

8 master cycles is ~1 cycle at 2.68 MHz, or 1.33 cycles of what I thought MESS ran the CPU as (3.57 Mhz-ish)

#60926 - 04/07/10 04:55 AM Re: The SNES WIP topic [Re: Heretical_One]  
Joined: Jan 2006
Posts: 3,685
etabeta78 Offline
Very Senior Member
etabeta78  Offline
Very Senior Member

Joined: Jan 2006
Posts: 3,685
Trondheim, Norway
Originally Posted By byuu
Finally, one I can answer.

Sim Earth needs proper vertical mosaic support to work.


ok I'll look into it, if Kale does not beat me. it's strange though, since we have some vertical mosaic support, but it seems to be not enough

Originally Posted By Heretical_One
That looks like color addition/subtraction, Kale.

As a "quick test", try the pilot selection in UN Squadron. I suspect it is similar.

Suspected cause: color addition or subtraction with halving is not working rcorrectly (possibly only with 0,0,0 blends)


the same color addition/subtraction seem to work fine with other games, though. it might be some edge case, I dunno, or a different reason

in general, if you want to test the various graphical modes and effects, you can simply recompile MESS with SNES_DEBUG_LAYER 1 in snes.h

then you can start to turn on/off modes and BGs (and isolate single priorities) and to enable/disable color math, horizontal mosaic effects and window masks.

of course, if the math/window/mosaic is enabled at the wrong time due to bogus read/write of the cpu, then these debug commands might not help much

Page 92 of 120 1 2 90 91 92 93 94 119 120

Who's Online Now
0 registered members (), 17 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,425
Posts109,185
Members4,759
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.036s Queries: 15 (0.016s) Memory: 5.0332 MB (Peak: 5.2618 MB) Zlib enabled. Server Time: 2017-10-17 06:00:09 UTC