Advertisement
Faschz

DKR - Tapping Script for Console

Nov 6th, 2017
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. ;Keeps script active at all times
  2.  
  3. .org 0x8001125C
  4. j 0x80500000
  5.  
  6. .org 0x80500000
  7. lui t0, 0x8012
  8. lw t0, 0xF1CC(t0) ;Load t0 with current frame
  9. ori t1, r0, 0x0004 ;Load t1 with a constant (4)
  10. divu t0, t1
  11. mfhi t0 ;Places the result of frame%4 into t0
  12. bne t0, r0, 0x80500028 ;If not a tapping frame skip
  13. lui t1, 0x8013
  14. lh t0, 0xE834(t1) ;Loads the current button presses
  15. ori t0, t0, 0x8000 ;bitwise OR t0 and 0x8000 (a button)
  16. sh t0, 0xE834(t1) ;Store the controller back into memory
  17. ;Skip 0x80500028
  18. jr ra
  19. sll r0, r0, 0 ;delay slot
  20.  
  21. 8101125C 0814
  22. 8101125E 0000
  23. 81500000 3C08
  24. 81500002 8012
  25. 81500004 8D08
  26. 81500006 F1CC
  27. 81500008 3409
  28. 8150000A 0004
  29. 8150000C 0109
  30. 8150000E 001B
  31. 81500010 0000
  32. 81500012 4010
  33. 81500014 1500
  34. 81500016 0004
  35. 81500018 3C09
  36. 8150001A 8013
  37. 8150001C 8528
  38. 8150001E E834
  39. 81500020 3508
  40. 81500022 8000
  41. 81500024 A528
  42. 81500026 E834
  43. 81500028 03E0
  44. 8150002A 0008
  45. 8150002C 0000
  46. 8150002E 0000
  47.  
  48. ;D-Pad up turns on script, D-Pad down turns off script
  49. .org 0x8001125C
  50. j 0x80500000
  51.  
  52. .org 0x80500000
  53. lui t0, 0x8013
  54. lh t1, 0xE834(t0)
  55. ;D-Pad Up 0x80500008
  56. ori t2, r0, 0x0800
  57. and t3, t1, t2
  58. bne t2, t3, 0x80500020 ;Branch to check for d-pad down
  59. ori t2, r0, 0x0001
  60. lui t3, 0x8050
  61. sb t2, 0x006C(t3)
  62. ;D-Pad Down 0x80500020
  63. ori t2, r0, 0x0400
  64. and t3, t1, t2
  65. bne t2, t3, 0x80500038 ;Branch to compare if auto-tap is on
  66. ori t2, r0, 0x0000
  67. lui t3, 0x8050
  68. sb t2, 0x006C(t3)
  69. ;Compare 0x80500038
  70. lui t2, 0x8050
  71. lb t2, 0x006C(t2)
  72. beq t2, r0, 0x80500064 ;Skips if auto-tap is off
  73. lui t2, 0x8012
  74. lw t2, 0xF1CC(t2)
  75. ori t3, r0, 0x0004
  76. divu t2, t3
  77. mfhi t2
  78. bne t2, r0, 0x80500064 ;Skips if not tapping frame
  79. ori t1, t1, 0x8000
  80. sh t1, 0xE834(t0)
  81. ;Skip 0x80500064
  82. jr ra
  83. sll r0, r0, 0
  84.  
  85.  
  86. 8101125C 0814
  87. 8101125E 0000
  88. 81500000 3C08
  89. 81500002 8013
  90. 81500004 8509
  91. 81500006 E834
  92. 81500008 340A
  93. 8150000A 0800
  94. 8150000C 012A
  95. 8150000E 5824
  96. 81500010 154B
  97. 81500012 0003
  98. 81500014 340A
  99. 81500016 0001
  100. 81500018 3C0B
  101. 8150001A 8050
  102. 8150001C A16A
  103. 8150001E 006C
  104. 81500020 340A
  105. 81500022 0400
  106. 81500024 012A
  107. 81500026 5824
  108. 81500028 154B
  109. 8150002A 0003
  110. 8150002C 340A
  111. 8150002E 0000
  112. 81500030 3C0B
  113. 81500032 8050
  114. 81500034 A16A
  115. 81500036 006C
  116. 81500038 3C0A
  117. 8150003A 8050
  118. 8150003C 814A
  119. 8150003E 006C
  120. 81500040 1140
  121. 81500042 0008
  122. 81500044 3C0A
  123. 81500046 8012
  124. 81500048 8D4A
  125. 8150004A F1CC
  126. 8150004C 340B
  127. 8150004E 0004
  128. 81500050 014B
  129. 81500052 001B
  130. 81500054 0000
  131. 81500056 5010
  132. 81500058 1540
  133. 8150005A 0002
  134. 8150005C 3529
  135. 8150005E 8000
  136. 81500060 A509
  137. 81500062 E834
  138. 81500064 03E0
  139. 81500066 0008
  140. 81500068 0000
  141. 8150006A 0000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement