Page 1 of 1

IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 4:18 pm
by Zepper
It occurs even in Nintendulator. Pic from RockNES.
Super Mario Bros. 3 (J) 000.png
The only emulator that displays it perfectly is VirtuaNES (see below)
Super Mario Bros. 3 (J) 201702092119578.png
Super Mario Bros. 3 (J) 201702092119578.png (8.93 KiB) Viewed 5959 times

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 4:21 pm
by tepples
Splits in Super Mario Bros. 3, Mega Man 3, and possibly other early MMC3 games are glitchy on hardware. Have you compared this to the behavior of an authentic Super Mario Bros. 3 cassette in an authentic Family Computer?

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 4:23 pm
by Zepper
tepples wrote:Splits in Super Mario Bros. 3, Mega Man 3, and possibly other early MMC3 games are glitchy on hardware. Have you compared this to the behavior of an authentic Super Mario Bros. 3 cassette in an authentic Family Computer?
I don't own a Famicom.

EDIT: looks like it's not a bug after all.
https://www.youtube.com/watch?v=lXSJeKgbBeQ

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 5:47 pm
by zeroone
It is difficult to tell exactly what you are referring to based on your description and pics. Are you referring to one of these:

https://wiki.nesdev.com/w/index.php/Game_bugs

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 5:56 pm
by Zepper
zeroone wrote:It is difficult to tell exactly what you are referring to based on your description and pics. Are you referring to one of these:

https://wiki.nesdev.com/w/index.php/Game_bugs
Difficult!? :shock: Look again.
glitch1.png
glitch1.png (7.76 KiB) Viewed 5936 times

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 6:46 pm
by tepples
In case anyone missed it, Zepper refers to a white line between the copyright notice and the checkerboard.

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 6:51 pm
by zeroone
tepples wrote:In case anyone missed it, Zepper refers to a white line between the copyright notice and the checkerboard.
That actually look me a minute to notice.
Zepper wrote:EDIT: looks like it's not a bug after all.
As Zepper pointed out, there are plenty of videos of SMB3 (U) on YouTube recorded from real hardware and they do indeed have that white horizontal scanline on the title screen.

Re: IRQ timing bug in SMB3 (J)?

Posted: Thu Feb 09, 2017 6:57 pm
by zxbdragon
smb3 j
PRG0,is have this line
PRG1,is not have this line.

smb3 u
PRG0,PRG1 have this line.

Re: IRQ timing bug in SMB3 (J)?

Posted: Sun Feb 12, 2017 4:50 am
by Zepper
zeroone wrote:As Zepper pointed out, there are plenty of videos of SMB3 (U) on YouTube recorded from real hardware and they do indeed have that white horizontal scanline on the title screen.
I mean the japanese version! In other words, "there are a few videos of SMB3 (J) on YouTube recorded from real hardware and they have NO white horizontal scanline on the title screen".

Re: IRQ timing bug in SMB3 (J)?

Posted: Sun Feb 12, 2017 5:26 am
by zxbdragon
Zepper wrote:
zeroone wrote:As Zepper pointed out, there are plenty of videos of SMB3 (U) on YouTube recorded from real hardware and they do indeed have that white horizontal scanline on the title screen.
I mean the japanese version! In other words, "there are a few videos of SMB3 (J) on YouTube recorded from real hardware and they have NO white horizontal scanline on the title screen".
SMB3 J
PRG0 version is have this white horizontal scanline.
I have PRG1 version cart.

Re: IRQ timing bug in SMB3 (J)?

Posted: Sun Feb 12, 2017 5:33 am
by zxbdragon
this is USA version

Re: IRQ timing bug in SMB3 (J)?

Posted: Wed Apr 12, 2017 1:39 pm
by ap9
What makes it clear that there is an IRQ bug in the earlier MMC3-A Japanese ROM(s) is the glitch line produced in the castle levels where the ceiling drops. It's revealed in the YouTube video mentioned by Zepper in this thread, beginning at 6:08.

It appears that only one of the official releases for Super Mario Bros. 3 drops most of the white line on the title screen — the more common Japanese PRG1, so it's safe to assume that the black area was unintentional. (And if it was intentional, it's still not in the modern form expressed in all future releases, U.S.-on.)

There's more extensive research into the differences between the ROMs on The Cutting Room floor website, where the black area can be seen:

https://tcrf.net/Super_Mario_Bros._3/Ve ... ifferences

Re: IRQ timing bug in SMB3 (J)?

Posted: Fri Apr 14, 2017 9:57 pm
by kazblox
Comparison of IRQ line timings to the Japanese prototypes:

Re: IRQ timing bug in SMB3 (J)?

Posted: Sat Apr 15, 2017 1:15 am
by ap9
kazblox wrote:Comparison of IRQ line timings to the Japanese prototypes:
The early prototypes make it obvious that Mario is slightly intersecting the checkerboard pattern. Technically, he's always intersecting the first split line, but aesthetically, it may have been better to have the characters meet a black line first (as the sprites have black outlines). The white line is very much present in the prototype snapshots.

It was probably necessary to move the second part of the split a little lower due to DMC CPU read delays during DMC sound effects (the effects of the delays still show up in overscan-clipped areas). It would be interesting to know whether or not DMC sound effects were even used until later, considering the early test videos had no game play sound. The controller read / DMC DMA conflict bug only made things more complicated; however, we all know Super Mario Bros. 2 (U) used DMC in its 1988 release.

There were a number of bugs to work out, and some still present including occasional glitches during "water float" sequences while several actions are slowing down the game, so two extra black scanlines added considerable IRQ split leeway in the end. The top of the scoreboard split is one pixel lower in a level than it is on a world map.