Users browsing this thread: 1 Guest(s)
SRAM Expansion Patch (32Kb)

#2
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
I commented out one line in the code and updated the patch. I had some minor problems at RAM initialization because because init would be done too late and data would get erased if you had use $336000-$3375FF prior to this.

Code:
//=======================================
// SRAM init
//=======================================
scope lbl_sram_init_sram: {
    rep #$20
    tdc
    tax
init_sram:
    sta $306000,x                       // slot 1
    sta $316000,x                       // slot 2
    sta $326000,x                       // slot 3
    // sta $336000,x                    // you want this line commented likely
                                        // because if you use this RAM for things
                                        // done at game loading, init is done too late
                                        // and data get erased..
    inx
    inx
    cpx #$2000
    bne init_sram
    sep #$20
    rtl
}
  Find
Quote  



Messages In This Thread
SRAM Expansion Patch (32Kb) - by madsiur - 05-25-2018, 01:33 AM
RE: SRAM Expansion Patch (32Kb) - by madsiur - 10-04-2018, 01:46 AM
RE: SRAM Expansion Patch (32Kb) - by J92R - 01-03-2019, 12:01 PM
RE: SRAM Expansion Patch (32Kb) - by Imzogelmo - 06-03-2019, 11:51 AM
RE: SRAM Expansion Patch (32Kb) - by madsiur - 06-03-2019, 06:07 PM
RE: SRAM Expansion Patch (32Kb) - by Imzogelmo - 06-05-2019, 08:22 AM
RE: SRAM Expansion Patch (32Kb) - by madsiur - 06-08-2019, 08:14 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite