Thread: Development: The 4th gen class split in 3rd gen
View Single Post
  #162    
Old December 12th, 2012 (11:57 PM).
dreamengine's Avatar
dreamengine dreamengine is offline
     
    Join Date: Aug 2012
    Gender: Male
    Posts: 68
    Quote:
    Originally Posted by Jambo51 View Post
    I haven't posted it since then because I was:
    1) Testing the damned thing to make sure it worked
    2) Being busy with exams and coursework
    3) Having a life beyond hacking

    Code:
    .text
    .align 2
    .thumb
    .thumb_func
    .global LCDPSSGlitchFix
    main:
     ldr r0, [sp, #0x8]
     lsl r1, r0, #0x1
     add r1, r1, r0
     lsl r1, r1, #0x2
     ldr r0, attackdata
     add r0, r0, r1
     ldrb r0, [r0, #0x2]
     mov r11, r0
     mov r2, r11
     cmp r2, #0xD
     bne continue
     mov r0, #0x0
     str r0, [sp, #0x0]
     ldr r0, return
     bx r0
    continue: ldr r3, returntwo
     bx r3
    .align
    return: .word 0x0803F10D
    returntwo: .word 0x0803F127
    attackdata: .word 0x08250C04
    At 0x3F102, change the code to 01 4A 10 47 00 00 XX XX XX 08.

    That isn't all though, you also need to change:

    0803F126: 5B 46
    0803F14A: 58 46
    0803F17A: 5A 46
    0803F1AA: 58 46
    0803F1DA: 5A 46

    You should be good to go after that.
    What does this fix do? Is the ASM code part of the fix?
    Reply With Quote