Nope. He must've used some sort of program, that READS the music, outside the game itself. ...I really don't get how this is done... Anyone have any possible predictions/thoughts? | Nothing to put here at the time being. |
Thanks to Tom Servo for the awesome new layout! |
http://byuu.org/msu1
It changed since I last played wavs with it but this quick example looks OK. Looks like the mapping is done with XML now so you'd need to include that in your ROM folder too.
Code
rep #$20 lda #... ;the number of the wav file to play sta $2004 sep #$20 - bit $2000 ;wait until audio port ready bvs - lda #$FF ;max vol sta $2006 lda #$03 sta $2007 ;start playback with looping
There's also the option of including an extra .bin file if somehow the 4MB or 8MB you normally get is not enough. Anyway there is no fancy ASM needed, just some extra files and a tiny bit of code.