@@ -451,11 +451,11 @@ Function14d6c: ; unreferenced
451451 ret
452452
453453Function14d83: ; unreferenced
454- ld a , BANK(s4_a60c) ; aka BANK(s4_a60d) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
454+ ld a , BANK(s4_a60c) ; MBC30 bank used by JP Crystal; inaccessible by MBC3
455455 call OpenSRAM
456456 xor a
457457 ld [ s4_a60c ], a ; address of MBC30 bank
458- ld [ s4_a60d ], a ; address of MBC30 bank
458+ ld [ s4_a60c + 1 ], a ; address of MBC30 bank
459459 call CloseSRAM
460460 ret
461461
@@ -840,15 +840,15 @@ _SaveData:
840840 call CopyBytes
841841
842842 ; This block originally had some mobile functionality, but since we're still in
843- ; BANK(sCrystalData), it instead overwrites the sixteen wEventFlags starting at 1:s4_a60e with
844- ; garbage from wd479 . This isn't an issue, since ErasePreviousSave is followed by a regular
843+ ; BANK(sCrystalData), it instead overwrites the sixteen wEventFlags starting at 1:sCrystalFlags with
844+ ; garbage from wCrystalFlags . This isn't an issue, since ErasePreviousSave is followed by a regular
845845 ; save that unwrites the garbage.
846846
847- ld hl , wd479
847+ ld hl , wCrystalFlags
848848 ld a , [ hli ]
849- ld [ s4_a60e + 0 ], a
849+ ld [ sCrystalFlags + 0 ], a
850850 ld a , [ hli ]
851- ld [ s4_a60e + 1 ], a
851+ ld [ sCrystalFlags + 1 ], a
852852
853853 jp CloseSRAM
854854
@@ -861,12 +861,12 @@ _LoadData:
861861 call CopyBytes
862862
863863 ; This block originally had some mobile functionality to mirror _SaveData above, but instead it
864- ; (harmlessly) writes the aforementioned wEventFlags to the unused wd479 .
864+ ; (harmlessly) writes the aforementioned wEventFlags to the unused wCrystalFlags .
865865
866- ld hl , wd479
867- ld a , [ s4_a60e + 0 ]
866+ ld hl , wCrystalFlags
867+ ld a , [ sCrystalFlags + 0 ]
868868 ld [ hli ], a
869- ld a , [ s4_a60e + 1 ]
869+ ld a , [ sCrystalFlags + 1 ]
870870 ld [ hli ], a
871871
872872 jp CloseSRAM
0 commit comments