Advertisement
cloudmax

OoT Debug MM UI Btn Color Patch

Jan 28th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;Patch written by CloudMax
  3. ;This patch is for TLoZ: Ocarina of Time Master Quest Debug ROM
  4. ;
  5. ;It will make a few minor changes to the games code to allow
  6. ;setting up all the RGB colors of the A, B, C and Start buttons
  7. ;on the Interface individually.
  8. ;
  9. ;The colors are set to the ones used in Majora's Mask.
  10. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  11. ;Check if ROM ID or Version is Incorrect
  12. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  13. ;We look up the ID and Version number of the ROM.
  14. ;If the ROM ID & Version isn't 0x4E5A4C450F or 0x435A4C450F
  15. ;an alert will appear, and the patch is aborted.
  16. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  17. var,romID,([0x3B]*0x100)+([0x3C]&0xFF)
  18. con,patchable,!({romID}==0x4E5A4C450F||{romID}==0x435A4C450F)
  19. alert,The provided ROM has an incorrect ID or Version.
  20. abort
  21. endCon,patchable
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23. ;Set up variables
  24. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  25. ;First we set variable dma to the address of the dma table.
  26. ;Then we take that and add 0x10 multiplied by the code.zasm
  27. ;entry ID in the table, which is 28.
  28. ;We set variable code to the pointer at that address.
  29. ;We set variable codeRAMtoROM to code subtracted by the offset
  30. ;of code.zasm when it is loaded into RAM so that we can convert
  31. ;RAM addresses to ROM addresses.
  32. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  33. var,dma,0x12F70
  34. var,code,[{dma}+0x10*28]
  35. var,codeRAMtoROM,{code}-0x8001CE60
  36. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ;Patch
  38. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  39. ;A Button Red (0x64) RR
  40. {codeRAMtoROM}+0x80110F3C, 240E 0064 A5AE 0AC0
  41. ;A Button Green (0xC8) GG
  42. {codeRAMtoROM}+0x80110F08, 240F 00C8
  43. ;A Button Blue (0xFF) BB
  44. {codeRAMtoROM}+0x80110F1C, 2419 00FF
  45. ;B Button Red (0x64) RR
  46. {codeRAMtoROM}+0x80110EE8, 240E 0064
  47. ;B Button Green (0xFF) GG
  48. {codeRAMtoROM}+0x80110EF4, 2403 00FF
  49. ;B Button Blue (0x78) BB
  50. {codeRAMtoROM}+0x80110F10, 2419 0078 A719 06EE
  51. ;C Button Red (0xFF) RR
  52. {codeRAMtoROM}+0x801110E8, 240D 00FF
  53. ;C Button Green (0xFF) GG
  54. {codeRAMtoROM}+0x80111494, 2418 00FF
  55. ;C Button Blue (0x00) BB
  56. {codeRAMtoROM}+0x801114B4, 240E 0000 A72E 07E6
  57. ;S Button RGB (0xFF,0x82,0x3C) RRGG BB
  58. {codeRAMtoROM}+0x80089180, 3C01 FF82 3421 3C00
  59. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement