「DPCM」の編集履歴(バックアップ)一覧はこちら

DPCM」(2014/07/27 (日) 22:36:18) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

-[[dmc converter>リンク]]でWAVEファイルを変換し、wave.binという名前で保存します。 -(char *)0x0700は.cfgでDMAAREAとして設定したアドレスへのポインタです。 #highlight(c){{{ #include<kihon.h> #include<kanade.h> void NMIProc(void) { } // メイン関数 void NesMain() { InitPPU(); SetScroll(0, 0); SetPPU(0x08,0x1e); SetDpcm(0x4f,0x3f); PlayDpcm(0,0x2e8); SetChannel(0x10); while(1); } }}} -.asmの例 #highlight(c){{{ .segment "CHARS" .incbin "bg.chr" .incbin "sprite.chr" ↓ .segment "PCMDATA" .incbin "wave.bin" .segment "CHARS" .incbin "bg.chr" .incbin "sprite.chr" }}} -.cfgの例 #highlight(c){{{ ROMST: start = $8000, size = $7ffa, type = ro, file = %O, fill = yes, define = yes; ROMINFO: start = $fffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; ↓ ROMST: start = $8000, size = $4000, type = ro, file = %O, fill = yes, define = yes; ROMST2: start = $c000, size = $3ffa, type = ro, file = %O, fill = yes, define = yes; ROMINFO: start = $fffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; }}} #highlight(c){{{ CODE: load = ROMST, type = ro, define = yes; CHARS: load = ROMCHR, type = ro; ↓ CODE: load = ROMST, type = ro, define = yes; PCMDATA: load = ROMST2, type = ro, define = yes; CHARS: load = ROMCHR, type = ro; }}}
-[[dmc converter>リンク]]でWAVEファイルを変換し、wave.binという名前で保存します。 #highlight(c){{{ #include<kihon.h> #include<kanade.h> void NMIProc(void) { } // メイン関数 void NesMain() { InitPPU(); SetScroll(0, 0); SetPPU(0x08,0x1e); SetDpcm(0x4f,0x3f); PlayDpcm(0,0x2e8); SetChannel(0x10); while(1); } }}} -.asmの例 #highlight(c){{{ .segment "CHARS" .incbin "bg.chr" .incbin "sprite.chr" ↓ .segment "PCMDATA" .incbin "wave.bin" .segment "CHARS" .incbin "bg.chr" .incbin "sprite.chr" }}} -.cfgの例 #highlight(c){{{ ROMST: start = $8000, size = $7ffa, type = ro, file = %O, fill = yes, define = yes; ROMINFO: start = $fffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; ↓ ROMST: start = $8000, size = $4000, type = ro, file = %O, fill = yes, define = yes; ROMST2: start = $c000, size = $3ffa, type = ro, file = %O, fill = yes, define = yes; ROMINFO: start = $fffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; }}} #highlight(c){{{ CODE: load = ROMST, type = ro, define = yes; CHARS: load = ROMCHR, type = ro; ↓ CODE: load = ROMST, type = ro, define = yes; PCMDATA: load = ROMST2, type = ro, define = yes; CHARS: load = ROMCHR, type = ro; }}}

表示オプション

横に並べて表示:
変化行の前後のみ表示: