It is currently Sun May 26, 2019 10:22 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Dec 21, 2018 3:10 pm 
Offline

Joined: Mon Nov 11, 2013 2:55 pm
Posts: 50
Location: Minsk, Belarus
Sour wrote:
What's the benefit "Dendy with NTSC fallback"?

If an emulator doesn't support Dendy for some reason, it will use NTSC. Also, if an old emulator (which isn't aware of changes in the spec) treats bit 0 to distinguish between NTSC and PAL ROMs (as spec says), it will use NTSC. We shouldn't change meaning of bit 0 if we care about compatibility. Old emulators should handle new files which use new features (and old mappers) properly. Otherwise I would not use the new features of the format.


Top
 Profile  
 
PostPosted: Fri Dec 21, 2018 3:39 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 7469
Location: Canada
I said this already but most old emulators don't use any bits of the header to determine PAL vs NTSC.


Top
 Profile  
 
PostPosted: Thu Jan 10, 2019 1:13 am 
Offline

Joined: Mon Nov 11, 2013 2:55 pm
Posts: 50
Location: Minsk, Belarus
rainwarrior wrote:
I said this already but most old emulators don't use any bits of the header to determine PAL vs NTSC.
It is not true. I have checked at least a few emulators (Mesen, FCEUX), and they use this bit. "Old emulators" means not only emulators from 90's and 00's, it means all the emulators before 2019, when the extension probably will be added to the spec.


Top
 Profile  
 
PostPosted: Thu Jan 10, 2019 1:26 am 
Offline

Joined: Mon Nov 11, 2013 2:55 pm
Posts: 50
Location: Minsk, Belarus
Oh, I see that NewRisingSun has already forced his own proposal to the NES 2.0 spec on the nesdev wiki. Congratulations. You've just made NES 2.0 worse. I was interested in the feature of the format, but I won't use this extension because of its drawbacks and poor backward compatibility.


Top
 Profile  
 
PostPosted: Fri Jan 11, 2019 2:03 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 7469
Location: Canada
VEG wrote:
rainwarrior wrote:
I said this already but most old emulators don't use any bits of the header to determine PAL vs NTSC.
It is not true. I have checked at least a few emulators (Mesen, FCEUX), and they use this bit. "Old emulators" means not only emulators from 90's and 00's, it means all the emulators before 2019, when the extension probably will be added to the spec.

FCEUX does not use the old late addition iNES 1 TV field. It either uses iNES 2, or it uses the filename:
https://github.com/TASVideos/fceux/blob/5be92d3ee50fcdc04ec4d727cef5201fa8fba378/src/ines.cpp#L916

Mesen does have this code, though also seems to have header sanitization that clears it out before even looking at it, which is a bizarre paradox? However, whether or not it actually could use byte 9, Mesen is not an old emulator, not even close.

The vast majority of PAL ROMs out there do not use this field, and a lot of NTSC ROMs have garbage here too, so in almost all cases it's useless for identifying when to use PAL mode. I'm not going to spend hours digging up more code examples, but IIRC Nestopia just used a ROM CRC and header database to figure this out. FCEUX used the filename, like I just pointed out. Other solutions are just as ad-hoc. Byte 9 was never a de-facto standard solution for determining iNES 1 region.


Top
 Profile  
 
PostPosted: Fri Jan 11, 2019 5:25 am 
Offline

Joined: Sun Feb 07, 2016 6:16 pm
Posts: 668
rainwarrior wrote:
Mesen does have this code, though also seems to have header sanitization that clears it out before even looking at it, which is a bizarre paradox?
That code is only run if the header's PRG size is greater than the ROM's actual size (to prevent out of bounds memory accesses), so byte 9 isn't set to 0 normally.

That being said, I don't think I've ever actually seen a rom that used byte 9 to specify NTSC vs PAL..


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 5 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