It is currently Sun Oct 22, 2017 7:50 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jun 14, 2016 7:46 am 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 710
Location: New York, NY
The attract mode (the demo) of Atari RBI Baseball (VS) freezes in Nintendulator, puNES and my emulator just prior to the moment that the first batter swings at the ball. Below is a screenshot from Nintendulator illustrating when all 3 emulators freeze (it's using the incorrect palette, but it's an MMC3 game, which should run perfectly).

Image

It's stuck here:

Code:
09:A1DF:4C DF A1  JMP $A1DF


It looks like it is waiting for an interrupt that never happens.

The game runs correctly in Nestopia, FCEUX and RockNES.

If anyone has an insight into this, please let me know. Thanks.

Edit: I noticed that Nestopia lists the game as Mapper 206 (NES-DRROM), not MMC3.


Last edited by zeroone on Tue Jun 14, 2016 11:40 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Jun 14, 2016 10:34 am 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 285
Mesen had the same freeze issue so I took a look.

This is a copy protection scheme - FCEUX & Nestopia both emulate it.
If you check FCEUX or Nestopia's source, they both implement 2 extra read-only registers ($5E00 & $5E01) and the game expects specific values from $5E01 after a number of consecutive reads.

This is mentioned very vaguely on the wiki in the NES 2.0 specs:
Quote:
M: Vs. mode:

0 - Normal- no special mode(s)
1 - RBI Baseball (protection hardware at port 5E0xh)
2 - TKO Boxing (other protection hardware at port 5E0xh)
3 - Super Xevious (protection hardware at port 5xxxh)


Implementing the same fix as FCEUX/Nestopia fixes the freeze on my end.


Top
 Profile  
 
PostPosted: Tue Jun 14, 2016 10:39 am 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6297
Location: Seattle
zeroone wrote:
Edit: I noticed that Nestopia lists the game as Mapper 206 (NES-DRROM), not MMC3.
The only Vs. System game that added hardware with an IRQ was Platoon, on the Sunsoft-3 IC.


Top
 Profile  
 
PostPosted: Tue Jun 14, 2016 11:44 am 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 710
Location: New York, NY
Sour wrote:
This is a copy protection scheme - FCEUX & Nestopia both emulate it.
If you check FCEUX or Nestopia's source, they both implement 2 extra read-only registers ($5E00 & $5E01) and the game expects specific values from $5E01 after a number of consecutive reads.


That's it! Providing the security values with those registered solved this issue. Thanks.

lidnariq wrote:
The only Vs. System game that added hardware with an IRQ was Platoon, on the Sunsoft-3 IC.


I switched to mapper 206 per Nestopia's recommendation. It works under that mapper, but as mentioned above, the security values were required to solve the issue.

Thanks so much guys.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 9 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group