$FAFF40
A5 1C      LDA $1C            //Load music value
F0 05      BEQ $FAFF49        //If zero, skip to RTS
8D 04 20   STA $2004          //Store music value in MSU1 audio track register
64 1C      STZ $1C            //Set music value to zero
$FAFF49
60         RTS                //return from subroutine . Works nicely, thanks very very very much. Buuut.... some quirks ^^
. Works nicely, thanks very very very much. Buuut.... some quirks ^^ Yes, seems to work fine. At a first small test. (Need to work tomorrow ^^) Last thing I stumbled upon up to now is the MSU to SPC fallback not working. If I misread that line in your documentation mentioning it existing, it's no problem either, fallback only would be needed to leave stuff as it is, like the winning Diddy/Dixie chimes etc. I don't want to steal even more of your time ^^
 Yes, seems to work fine. At a first small test. (Need to work tomorrow ^^) Last thing I stumbled upon up to now is the MSU to SPC fallback not working. If I misread that line in your documentation mentioning it existing, it's no problem either, fallback only would be needed to leave stuff as it is, like the winning Diddy/Dixie chimes etc. I don't want to steal even more of your time ^^Phyreburnz wrote:I got it patched (I think correctly) but it won't work. I've never been able to get any patched roms to run.
Bsnes won't recognize it at all and higen will open it, but do nothing with it. It's just a black screen.



46 ; We need to status check here. If the track is no good, then we need to branch to PlayNonMSUTrack 
47 LDA $2000 ;Load A into MSU_Status 
48 AND #$08 ;AND the error bit 
49 BNE PullAAndPlay ;If the error bit is set, the audio track is missing 
50 PLA ;Pull A off the stack 
51 RTL ;Return to where we were in code 
PullAAndPlay: 
54 PLA ;Pull A off the stack 
55 BRA PlayNonMSUTrack ;Play the non-MSU track 
56 
57 PlayNonMSUTrack: 
58 STA $2140 ;Load the bgm command normally into $2140 
59 STA $0133 ;Also set it here 
60 PHA ;Push A onto the stack 
61 LDA #$00 ; 
62 STA $2007 ;Make the MSU-1 stop playing audio 
63 PLA ;Pull A off the stack 
64 RTL ;Return 




 Hope you'll ever feel for porting your hack ^^
 Hope you'll ever feel for porting your hack ^^![[K] :k:](./images/smilies/k.png) 
  ![[O] :o:](./images/smilies/o.png) 
  ![[N] :n:](./images/smilies/n.png) 
  ![[G] :g:](./images/smilies/g.png)
Users browsing this forum: No registered users and 6 guests