nesdev.com
http://forums.nesdev.com/

Trying to get FME-7 IRQs right
http://forums.nesdev.com/viewtopic.php?f=2&t=12436
Page 2 of 2

Author:  koitsu [ Sun Mar 01, 2015 1:02 am ]
Post subject:  Re: Trying to get FME-7 IRQs right

I've now read the entire thread twice and I honestly can't figure out what the "correct" behaviour should be. Could we get a short/terse write-up that concisely explains what the proper behaviour should be? That should greatly help with submitted bug reports to emulator authors.

Author:  lidnariq [ Sun Mar 01, 2015 1:11 am ]
Post subject:  Re: Trying to get FME-7 IRQs right

Correct behavior: All writes to register "D" (i.e. writing to $Axxx after $0D has been written to $8xxx) should acknowledge the IRQ, regardless of the value written. Writes to registers "E" and "F" shouldn't.

Author:  tepples [ Sun Mar 01, 2015 12:03 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

Watch this space for progress of fixing FME-7 acknowledgment:

  • Nintendulator: In #nesdev, Quietust reports it fixed
  • FCEUX: I filed a bug report, and rainwarrior committed a fix (diff; Windows interim build).
  • Mednafen: I needed help with the registration form's CAPTCHA (and on identifying the mascot) on #nesdev, and then it took a while to receive registration confirmation from forum.fobby.net and a while after that for a moderator to approve the bug report.
  • Nestopia UE: GitHub issue report has been closed with a fix.
  • NO$NES: Haven't had time to download, install, and test, but the description of FME-7 in Everynes appears incomplete
  • RockNES, BizHawk: Reported fixed below
  • EverDrive: In #nesdev, tpw_rules said "krizz told me he'd fix it for everdrive"
  • PowerPak: In #nesdev, loopy reports that he has updated the FME-7 implementation in the mapper pack I use.

Author:  lidnariq [ Sun Mar 01, 2015 12:55 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

Nestopia UE bugtracker: https://github.com/rdanbrook/nestopia/issues

Author:  lidnariq [ Mon Mar 02, 2015 2:55 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

Tested Nestopia UE patch:
Code:
diff --git a/source/core/board/NstBoardSunsoftFme7.cpp b/source/core/board/NstBoardSunsoftFme7.cpp
index f3ee5d2..535456f 100644
--- a/source/core/board/NstBoardSunsoftFme7.cpp
+++ b/source/core/board/NstBoardSunsoftFme7.cpp
@@ -170,9 +170,8 @@ namespace Nes
 
                                                        irq.Update();
                                                        irq.unit.enabled = data & 0x01;
-
-                                                       if (!irq.Connect( data & 0x80 ))
-                                                               irq.ClearIRQ();
+                                                       irq.Connect( data & 0x80 );
+                                                       irq.ClearIRQ();
 
                                                        break;

Author:  koitsu [ Mon Mar 02, 2015 6:45 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

Nestopia UE -- filed issue 124

Author:  zxbdragon [ Tue Mar 03, 2015 12:04 am ]
Post subject:  Re: Trying to get FME-7 IRQs right

You can provide the copyrighted FME-7 cassette transformed into flash cassette , The test results on FC/NES?

Author:  Zepper [ Wed Mar 04, 2015 7:11 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

RockNES seems OK.
tepples wrote:
To save 16 cycles during vblank.

To eliminate unofficial opcodes as a factor in the test, I have added a second build-time option called AVOID_UNOFFICIAL_OPCODES, in addition to the existing build-time option called NESTOPIA_WORKAROUND, and built two more ROMs without unofficial opcodes, one with and one without the Nestopia workarounds. The ROMs built without unofficial opcodes behave (or misbehave) the same way in Mednafen as the corresponding ROMs with unofficial opcodes.


Works fine in RockNES now. The Nestopia version flashes the bottom of the image (around 40 or more lines).

Attachments:
fme7acktest 000.bmp
fme7acktest 000.bmp [ 900.05 KiB | Viewed 3525 times ]

Author:  zeromus [ Thu Mar 05, 2015 11:48 am ]
Post subject:  Re: Trying to get FME-7 IRQs right

fixed in bizhawk's neshawk and quicknes cores in r9193

Author:  koitsu [ Thu Mar 05, 2015 5:19 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

Nestopia UE issue 124 has been committed/fixed.

Binaries are usually made available over on EmuCR except it seems the last build they've offered is from 2014/10/07. I don't know what changed to make them stop doing builds, but I'll see if I can find out.

Edit: seems the builds on EmuCR aren't of master -- they're only when a new tag (I think) is made; the 2014/10/07 release correlates with the last/latest git tag 1.46.2. I'll see about asking if they can add one for master.

Author:  FrankWDoom [ Sat Mar 14, 2015 1:14 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

Does this still need testing on a real cart? I couldn't tell from the posts if someone actually did that.

Author:  tepples [ Sat Mar 14, 2015 1:57 pm ]
Post subject:  Re: Trying to get FME-7 IRQs right

l_oliveira ran it on a cart and got this result. The task has become to get emulators to give the same result.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/