IRQ timing bug in SMB3 (J)?

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
IRQ timing bug in SMB3 (J)?
by on (#188898)
It occurs even in Nintendulator. Pic from RockNES.
Attachment:
Super Mario Bros. 3 (J) 000.png
Super Mario Bros. 3 (J) 000.png [ 23.68 KiB | Viewed 4345 times ]

The only emulator that displays it perfectly is VirtuaNES (see below)
Attachment:
Super Mario Bros. 3 (J) 201702092119578.png
Super Mario Bros. 3 (J) 201702092119578.png [ 8.93 KiB | Viewed 4342 times ]
Re: IRQ timing bug in SMB3 (J)?
by on (#188899)
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)?
by on (#188900)
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)?
by on (#188905)
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)?
by on (#188906)
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.
Attachment:
glitch1.png
glitch1.png [ 7.76 KiB | Viewed 4319 times ]
Re: IRQ timing bug in SMB3 (J)?
by on (#188908)
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)?
by on (#188909)
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)?
by on (#188910)
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)?
by on (#188997)
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)?
by on (#188998)
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)?
by on (#188999)
this is USA version
Re: IRQ timing bug in SMB3 (J)?
by on (#193103)
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)?
by on (#193316)
Comparison of IRQ line timings to the Japanese prototypes:
Re: IRQ timing bug in SMB3 (J)?
by on (#193319)
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.