SHARE
TWEET

Untitled

a guest Nov 27th, 2010 125 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;assembly for multiplayer hack 2008-03-12/23:22:26
  2. 803EA190
  3. LBU      $T6,0x001C ($S0)    ; Load byte 1E from $S0 in $T6
  4. ADDIU    $T3,$zero,0x00F1      ; $T3 == 0xF1
  5. BEQ      $T6,$T3,0x803EA1C4  ;          branch if $T6 == 1
  6. NOP                          ; delay slot
  7. ADDIU    $T3,$zero,0x00F2            ; $T3 == 0xF2
  8. BEQ      $T6,$T3,0x803EA1CC  ;          branch if $T6 == 2
  9. NOP                          ; delay slot
  10. ADDIU    $T3,$zero,0x00F3            ; $T3 == 0xF3
  11. BEQ      $T6,$T3,0x803EA1D4  ;          branch if $T6 == 3
  12. NOP                          ; delay slot
  13. ADDIU    $T3,$zero,0x00F4            ; $T3 == 0xF4
  14. BEQ      $T6,$T3,0x803EA1DC  ;          branch if $T6 == 4
  15. NOP                          ; delay slot
  16. JAL      0x80600000 ; Player 1
  17. NOP
  18. JAL      0x80600074 ; Player 2
  19. NOP
  20. JAL      0x806000E0 ; Player 3
  21. NOP
  22. JAL      0x8060015C ; Player 4
  23. NOP
  24. BEQL T8, R0, 0x803EA20C
  25. OR A0, S0, R0
  26. NOP
  27. 80600000
  28. ;Player 1
  29. LWL T7, 0x0014 (S1)
  30. LWR T7, 0x0017 (S1)
  31. ADDIU T5, SP, 0x0044
  32. LUI V0, 0xFFFF
  33. SW T7, 0x0000 (T5)
  34. LWL T6, 0x0018 (S1)
  35. LWR T6, 0x001B (S1)
  36. SW T6, 0x0004 (T5)
  37. LWL T7, 0x001C (S1)
  38. LWR T7, 0x001F (S1)
  39. SW T7, 0x0008 (T5)
  40. LWL T6, 0x0020 (S1) ; Button input
  41. LWR T6, 0x0023 (S1) ; Button input
  42. SW T6, 0x000C (T5)
  43. LWL T7, 0x0024 (S1)
  44. LWR T7, 0x0027 (S1)
  45. SW T7, 0x0010 (T5)
  46. LWL T6, 0x0028 (S1) ; Analong stick
  47. LWR T6, 0x002B (S1) ; Analong stick
  48. SW T6, 0x0014 (T5)
  49. LBU T8, 0x088E (S0)
  50. LHU T9, 0x0044 (SP)
  51. NOP
  52. ADDIU T5,$zero,0x0092
  53. SB T5,0x014C (S0)
  54. JAL 0x803EA1E0
  55. NOP
  56. NOP
  57. NOP
  58. ;Player 2
  59. LWL T7, 0x0014 (S1)
  60. LWR T7, 0x0017 (S1)
  61. ADDIU T5, SP, 0x0044
  62. LUI V0, 0xFFFF
  63. SW T7, 0x0000 (T5)
  64. LWL T6, 0x0018 (S1)
  65. LWR T6, 0x001B (S1)
  66. SW T6, 0x0004 (T5)
  67. LWL T7, 0x001C (S1)
  68. LWR T7, 0x001F (S1)
  69. SW T7, 0x0008 (T5)
  70. LWL T6, 0x002C (S1) ; Button input
  71. LWR T6, 0x002F (S1) ; Button input
  72. SW T6, 0x000C (T5)
  73. LWL T7, 0x002E (S1)
  74. LWR T7, 0x0031 (S1)
  75. SW T7, 0x0010 (T5)
  76. LWL T6, 0x002E (S1) ; Analong stick
  77. LWR T6, 0x0031 (S1) ; Analong stick
  78. SW T6, 0x0014 (T5)
  79. LBU T8, 0x088E (S0)
  80. LHU T9, 0x0044 (SP)
  81. NOP
  82. ADDIU T5,$zero,0x007F
  83. SB T5,0x014C (S0)
  84. JAL 0x803EA1E0
  85. NOP
  86. NOP
  87. NOP
  88. ;Player 3
  89. LWL T7, 0x0014 (S1)
  90. LWR T7, 0x0017 (S1)
  91. ADDIU T5, SP, 0x0044
  92. LUI V0, 0xFFFF
  93. SW T7, 0x0000 (T5)
  94. LWL T6, 0x0018 (S1)
  95. LWR T6, 0x001B (S1)
  96. SW T6, 0x0004 (T5)
  97. LWL T7, 0x001C (S1)
  98. LWR T7, 0x001F (S1)
  99. SW T7, 0x0008 (T5)
  100. LWL T6, 0x0044 (S1) ; Button input
  101. LWR T6, 0x0047 (S1) ; Button input
  102. SW T6, 0x000C (T5)
  103. LWL T7, 0x0024 (S1)
  104. LWR T7, 0x0027 (S1)
  105. SW T7, 0x0010 (T5)
  106. LWL T6, 0x0046 (S1) ; Analong stick
  107. LWR T6, 0x0049 (S1) ; Analong stick
  108. SW T6, 0x0014 (T5)
  109. LBU T8, 0x088E (S0)
  110. LHU T9, 0x0044 (SP)
  111. NOP
  112. ADDIU T5,$zero,0x005C
  113. SB T5,0x014C (S0)
  114. JAL 0x803EA1E0
  115. NOP
  116. NOP
  117. NOP
  118. ;Player 4
  119. LWL T7, 0x0014 (S1)
  120. LWR T7, 0x0017 (S1)
  121. ADDIU T5, SP, 0x0044
  122. LUI V0, 0xFFFF
  123. SW T7, 0x0000 (T5)
  124. LWL T6, 0x0018 (S1)
  125. LWR T6, 0x001B (S1)
  126. SW T6, 0x0004 (T5)
  127. LWL T7, 0x001C (S1)
  128. LWR T7, 0x001F (S1)
  129. SW T7, 0x0008 (T5)
  130. LWL T6, 0x005C (S1) ; Button input
  131. LWR T6, 0x005F (S1) ; Button input
  132. SW T6, 0x000C (T5)
  133. LWL T7, 0x0024 (S1)
  134. LWR T7, 0x0027 (S1)
  135. SW T7, 0x0010 (T5)
  136. LWL T6, 0x005E (S1) ; Analong stick
  137. LWR T6, 0x0061 (S1) ; Analong stick
  138. SW T6, 0x0014 (T5)
  139. LBU T8, 0x088E (S0)
  140. LHU T9, 0x0044 (SP)
  141. NOP
  142. ADDIU T5,$zero,0x0088
  143. SB T5,0x014C (S0)
  144. JAL 0x803EA1E0
  145. NOP
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top