Advertisement
abitalive

MK64 Rom Patch

Oct 19th, 2015
2,156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. /*
  2. MK64 ROM Patch 1.1 by abitalive
  3.  
  4. Includes the following codes:
  5.  
  6. All players can choose the same character
  7. Anamorphic widescreen
  8. Tempo fix
  9. */
  10.  
  11. .org 0x0029F0 // Disable cpu display function (RAM 0x80001DF0)
  12. NOP
  13.  
  14. // Tempo fix
  15. .org 0x002638 // Two player (RAM 0x80001A38)
  16. ADDIU T1,R0,0x0002
  17. NOP
  18.  
  19. .org 0x002890 // Three and four player (RAM 0x80001C90)
  20. ADDIU T2,R0,0x0002
  21. NOP
  22.  
  23. // Anamorphic widescreen
  24. .org 0x10E07C // Hook #1 (RAM 0x802A4A6C)
  25. JAL 0x80003FD4
  26. NOP
  27.  
  28. .org 0x10F048 // Hook #2 (RAM 0x802A5A38)
  29. JAL 0x80003FD4
  30. NOP
  31.  
  32. .org 0x10F330 // Hook #3 (RAM 0x802A5D20)
  33. JAL 0x80003FD4
  34. NOP
  35.  
  36. .org 0x10F628 // Hook #4 (RAM 0x802A6018)
  37. JAL 0x80003FD4
  38. NOP
  39.  
  40. .org 0x10F93C // Hook #5 (RAM 0x802A632C)
  41. JAL 0x80003FD4
  42. NOP
  43.  
  44. .org 0x10FC50 // Hook #6 (RAM 0x802A6640)
  45. JAL 0x80003FD4
  46. NOP
  47.  
  48. .org 0x10FF54 // Hook #7 (RAM 0x802A6944)
  49. JAL 0x80003FD4
  50. NOP
  51.  
  52. .org 0x110238 // Hook #8 (RAM 0x802A6C28)
  53. JAL 0x80003FD4
  54. NOP
  55.  
  56. .org 0x11051C // Hook #9 (RAM 0x802A6F0C)
  57. JAL 0x80003FD4
  58. NOP
  59.  
  60. .org 0x11084C // Hook #10 (RAM 0x802A723C)
  61. JAL 0x80003FD4
  62. NOP
  63.  
  64. .org 0x004BD4 // Anamorphic widescreen function. Replaces cpu display function (RAM 0x80003FD4)
  65. LUI T1,0x800E
  66. LB T1,0xC53B(T1) // Check players
  67. ORI T2,R0,0x0002
  68. BEQ T1,T2,2_Players
  69. NOP
  70. 1_3_4_Players:
  71. LUI A3,0x3FDF
  72. ORI A3,A3,0xAAAB // Return 3FDFAAAB
  73. BEQ R0,R0,Anamorphic_Skip
  74. NOP
  75. 2_Players:
  76. LUI A3,0x4060
  77. ORI A3,A3,0xAAAB // Return 4060AAAB
  78. Anamorphic_Skip:
  79. JR RA
  80. NOP
  81.  
  82. // All players can choose the same character
  83. .org 0x0B4524 // Move selector right (RAM 0x800B3924)
  84. NOP
  85.  
  86. .org 0x0B45A4 // Move selector left (RAM 0x800B39A4)
  87. NOP
  88.  
  89. .org 0x0B4638 // Move selector up/down hook (RAM 0x800B3A38)
  90. J 0x80004008
  91.  
  92. .org 0x004C08 // Move selector up/down function. Replaces cpu display function (RAM 0x80004008)
  93. LUI A0, 0x4900
  94. BEQ V0,R0,Players_Skip
  95. SB S0, 0x0000(T9)
  96. JAL 0x800C8E10 // Play sound
  97. ORI A0, A0, 0x8000 // Volume
  98. Players_Skip:
  99. J 0x800B3A50
  100. NOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement