News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: [Solved]Snake's Revenge Big Mode Bug  (Read 925 times)

Dracula X

  • Full Member
  • ***
  • Posts: 113
    • View Profile
    • My YouTube Page for ROM hacking
[Solved]Snake's Revenge Big Mode Bug
« on: April 02, 2020, 04:03:01 pm »
I almost released this hack until I ran into this bug on this image:



The game freezes when I enter that mode. One of these codes might be the problem:

Code: [Select]
07:C3D3: A5 27     LDA $27 = #$00
 07:C3D5: 20 00 C4  JSR $C400
 07:C3D8: A5 28     LDA $28 = #$09
 07:C3DA: 4C E4 C3  JMP $C3E4
 07:C3DD: A9 0F     LDA #$0F
 07:C3DF: 20 00 C4  JSR $C400
 07:C3E2: A9 00     LDA #$00
 07:C3E4: 48        PHA
 07:C3E5: A9 01     LDA #$01
 07:C3E7: 85 24     STA $24 = #$01
 07:C3E9: 68        PLA
 07:C3EA: 8D 2B 51  STA $512B = #$00
 07:C3ED: 8D 27 51  STA $5127 = #$00
 07:C3F0: EA        NOP
 07:C3F1: EA        NOP
 07:C3F2: EA        NOP
 07:C3F3: EA        NOP
 07:C3F4: EA        NOP
 07:C3F5: EA        NOP
 07:C3F6: EA        NOP
 07:C3F7: EA        NOP
 07:C3F8: EA        NOP
 07:C3F9: EA        NOP
 07:C3FA: EA        NOP
 07:C3FB: EA        NOP
 07:C3FC: EA        NOP
 07:C3FD: 4C 57 C4  JMP $C457
 07:C400: 48        PHA
 07:C401: A9 01     LDA #$01
 07:C403: 85 24     STA $24 = #$01
 07:C405: 68        PLA
>07:C406: 8D 23 51  STA $5123 = #$00
 07:C409: EA        NOP
 07:C40A: EA        NOP
 07:C40B: EA        NOP
 07:C40C: EA        NOP
 07:C40D: EA        NOP
 07:C40E: EA        NOP
 07:C40F: EA        NOP
 07:C410: EA        NOP
 07:C411: EA        NOP
 07:C412: EA        NOP
 07:C413: EA        NOP
 07:C414: EA        NOP
 07:C415: EA        NOP
 07:C416: EA        NOP
 07:C417: EA        NOP
 07:C418: EA        NOP
 07:C419: 4C 57 C4  JMP $C457

Bankswitch, I think this is fine:
Code: [Select]
07:C43E: 48        PHA
 07:C43F: A9 01     LDA #$01
 07:C441: 85 24     STA $24 = #$01
 07:C443: 68        PLA
 07:C444: 0A        ASL
 07:C445: 09 80     ORA #$80
 07:C447: 8D 15 51  STA $5115 = #$00
 07:C44A: EA        NOP
 07:C44B: EA        NOP
 07:C44C: EA        NOP
 07:C44D: EA        NOP
 07:C44E: EA        NOP
 07:C44F: EA        NOP
 07:C450: EA        NOP
 07:C451: EA        NOP
 07:C452: EA        NOP
 07:C453: EA        NOP
 07:C454: EA        NOP
 07:C455: EA        NOP
 07:C456: EA        NOP
 07:C457: A9 00     LDA #$00
 07:C459: 85 24     STA $24 = #$01
 07:C45B: 60        RTS ----------------------------------------

Everything else in the game works.

Problem solved! It was the mirroring and other things I think.
« Last Edit: April 02, 2020, 04:51:42 pm by Dracula X »
I might go back to Thunder Force II hacking again.