[Sonic 1] Extra Music Slots in S1

Discussion in 'Approved' started by PsychoSk8r, Aug 12, 2007.

Thread Status:
Not open for further replies.
  1. PsychoSk8r

    PsychoSk8r HighKnights Member

    Joined:
    Aug 9, 2007
    Messages:
    267
    Location:
    Birmingham, UK
    I'm not sure who credit is to be given, but if you know who it is, let me know and i'll put the name here.


    ======================


    To add more music slots to the sound test, search for this code in the level select routine:



    Code:
    
    LevSel_NoCheat:
    
            cmpi.w    #$94,d0    ; is sound $80-$94 being played?
    
            bcs.s    LevSel_PlaySnd; if yes, branch
    
            cmpi.w    #$A0,d0    ; is sound $95-$A0 being played?
    
            bcs.s    LevelSelect; if yes, branch
    
                                             
    Change the line:



    Code:
    
            cmpi.w    #$94,d0    ; is sound $80-$94 being played?
    so it reads:



    Code:
            cmpi.w    #$9F,d0    ; is sound $80-$94 being played?

    then Rebuild the rom.


    And now the sound test will have the music slots going up to 9F, instead of 94,
     
    Last edited by a moderator: Aug 12, 2007
  2. Tweaker

    Tweaker OI! MIRON! Member

    Joined:
    Aug 10, 2007
    Messages:
    322
    Not bad. I've moved this to the archives - hopefully this will start a trend.
     
  3. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    Is it possible to do something similar in Sonic 2 without porting the Sonic 1 sound driver? Apparently the Sonic 2 sound driver is less flexible due to it being in Z80.
     
  4. puto

    puto Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    52
    Not unless you disassemble the driver or something...
     
  5. shobiz

    shobiz Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    198
    Location:
    Karachi, Pakistan
    Heh ... Z80 code makes my eyes burn (I've only seen around 10 lines, admittedly, but still). I suppose it would be nice if the Sonic 2 driver was disassembled and examined in detail, but since it's possible to port the Sonic 1 driver to Sonic 2 with almost no side-effects, I suppose such work would be pretty useless.
     
Thread Status:
Not open for further replies.