Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > How to set PAL-Flag in NSF-Header? Owner: EvGS New post
Page 1 of 1 Sort:  
How to set PAL-Flag in NSF-Header? Posted: 2010-07-06 17:54  (Last Edited: 2010-07-06 18:01) Reply | Quote
EvGS

Avatar

Member for: 5260 days
Location: Russia, Moscow
Status: Offline

#6925
Hi, sorry for newbie question.
How to set PAL-Flag in NSF-Header?

[color=yellow]http://kevtris.org/nes/nsfspec.txt

Here's an overview of the header:

offset # of bytes Function
----------------------------
007a 1 BYTE PAL/NTSC bits:
bit 0: if clear, this is an NTSC tune
bit 0: if set, this is a PAL tune
bit 1: if set, this is a dual PAL/NTSC tune
bits 2-7: not used. they *must* be 0


[color=yellow]http://img695.imageshack.us/i/palflag.gif/

0000 0000 = 00h = NTSC
0000 0001 = 01h = PAL
0000 0010 = 02h = NTSC/PAL

It's correct?

Posted: 2010-07-07 04:47  (Last Edited: 2010-07-07 04:55) Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#6934
This is totally correct. Offset 7A is where you need to change the bit-value.

I see you did the logic correctly, too; 00h )0000 0000) is NTSC, 01h (0000 0001) is PAL & 02h (0000 0010) is both. They must be values of 00h, 01h or 02h because the file's header will be corrupted.

So you've followed the instructions in the text file perfectly.

If you're using FamiTracker, you don't need to export the music to NSF & hack it in a hex editor, though.

In FamiTracker, move your mouse to the top of the window & go to the Tracker option. Near the bottom of the list, you can choose between NTSC, PAL or a custom speed; click on PAL & you'll be able to export NSF files with offset 7A set to 01h automatically.

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Posted: 2010-07-07 09:19  (Last Edited: 2010-07-07 15:07) Reply | Quote
EvGS

Avatar

Member for: 5260 days
Location: Russia, Moscow
Status: Offline

#6939
Thank you for answer, TechEmporium
I want to hack standard NTSC NSF-collection [color=yellow]http://akumunsf.good-evil.net/
and play it at 50FPS using NSFplay/NSFplug.

I want to recieve tempo like Famiclones (Dendy, MicroGenius, etc) system.

Posted: 2010-07-08 05:21  (Last Edited: 2010-07-08 05:23) Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#6964
Then you're hacking the NSFs perfectly.

SÉCAM is the same as PAL (& I understand Russia uses SÉCAM). It's nothing more than PAL with several color modifications, so you're doing it perfect.

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Page 1 of 1 Sort: