正文开始
名词解释:
nsf:是一种从NES游戏rom中提取出来的声音格式文件。
需要说明的是nsf文件并不纯粹是声音数据,它还包含一段用于播放这些声音数据的6502汇编代码,必须数据与代码一同提取出来才能够正常播放,并且不同的游戏的播放代码都是不一样的。
nsf文件格式
既然要导出NSF,必须要先了解nsf文件格式,其格式如下:
offset # of bytes Function----------------------------
$000 5 STRING 'N','E','S','M',$1A (denotes an NES sound format file)
$005 1 BYTE Version number (currently $01)
$006 1 BYTE Total songs (1=1 song, 2=2 songs, etc)
$007 1 BYTE Starting song (1=1st song, 2=2nd song, etc)
$008 2 WORD (lo, hi) load address of data ($8000-FFFF)
$00A 2 WORD (lo, hi) init address of data ($8000-FFFF)
$00C 2 WORD (lo, hi) play address of data ($8000-FFFF)
$00E 32 STRING The name of the song, null terminated
$02E 32 STRING The artist, if known, null terminated
$04E 32 STRING The copyright holder, null terminated
$06E 2 WORD (lo, hi) Play speed, in 1/1000000th sec ticks, NTSC (see text)
$070 8 BYTE Bankswitch Init Values (see text, and FDS section)
$078 2 WORD (lo, hi) Play speed, in 1/1000000th sec ticks, PAL (see text)
$07A 1 BYTE PAL/NTSC bits
$07B 1 BYTE Extra Sound Chip Support
$07C 4 ---- 4 extra bytes for expansion (must be $00)
$080 nnn ---- The music program/data follows until end of file
名词解释:
nsf:是一种从NES游戏rom中提取出来的声音格式文件。
需要说明的是nsf文件并不纯粹是声音数据,它还包含一段用于播放这些声音数据的6502汇编代码,必须数据与代码一同提取出来才能够正常播放,并且不同的游戏的播放代码都是不一样的。
nsf文件格式
既然要导出NSF,必须要先了解nsf文件格式,其格式如下:
offset # of bytes Function----------------------------
$000 5 STRING 'N','E','S','M',$1A (denotes an NES sound format file)
$005 1 BYTE Version number (currently $01)
$006 1 BYTE Total songs (1=1 song, 2=2 songs, etc)
$007 1 BYTE Starting song (1=1st song, 2=2nd song, etc)
$008 2 WORD (lo, hi) load address of data ($8000-FFFF)
$00A 2 WORD (lo, hi) init address of data ($8000-FFFF)
$00C 2 WORD (lo, hi) play address of data ($8000-FFFF)
$00E 32 STRING The name of the song, null terminated
$02E 32 STRING The artist, if known, null terminated
$04E 32 STRING The copyright holder, null terminated
$06E 2 WORD (lo, hi) Play speed, in 1/1000000th sec ticks, NTSC (see text)
$070 8 BYTE Bankswitch Init Values (see text, and FDS section)
$078 2 WORD (lo, hi) Play speed, in 1/1000000th sec ticks, PAL (see text)
$07A 1 BYTE PAL/NTSC bits
$07B 1 BYTE Extra Sound Chip Support
$07C 4 ---- 4 extra bytes for expansion (must be $00)
$080 nnn ---- The music program/data follows until end of file











