Advertisement
GoGoJJTech

Poketch routine

Jul 31st, 2014
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. .text
  2. .align 2
  3. .thumb
  4. .thumb_func
  5. .global poketchactivatehack
  6.  
  7. main:
  8. strb r0, [r1]
  9. ldr r0, poketchByte
  10. ldrb r0, [r0]
  11. cmp r0, #0x0
  12. beq end
  13. cmp r0, #0x2
  14. beq end
  15. ldr r0, buttonsStuff3
  16. ldrh r0, [r0]
  17. mov r1, #0x3
  18. lsl r1, r1, #0x8
  19. and r0, r1, r0
  20. cmp r0, #0x0
  21. beq end
  22. ldr r0, poketchRoutine
  23. bl bx_r0
  24. end:
  25. b +72
  26. bx_r0:
  27. bx r0
  28.  
  29. .align 2
  30. poketchByte: .word 0x0203C20E
  31. buttonsStuff3: .word 0x030030f0+0x2e
  32. poketchRoutine: .word 0x08A253e4+1
  33.  
  34. /*insert at 0x0813B8B8*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement