Advertisement
cloudmax

ROM Patcher OoT Debug MM UI Btn Colors

Jan 28th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;Set up variables
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. var,dma,0x12F70
  5. var,code,[{dma}+0x10*28]
  6. var,codeRAM,0x8001CE60
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8. ;First we set var dma to the offset of the dma table
  9. ;Then we take that and add 0x10 multiplied by the
  10. ;code.zasm entry ID in the table, which is 28.
  11. ;We set var code to the pointer at that address.
  12. ;We set var codeRAM to the offset of the code.zasm
  13. ;file when it is loaded into RAM. This is so that
  14. ;we can convert RAM addresses into addresses
  15. ;relative to the code.zasm.
  16. ;Now by doing {code}+RAM ADDRESS-{codeRAM} we will
  17. ;get the ROM address.
  18. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  19. ;Patch
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21. ;A Button Red (0x64)
  22. {code}+0x80110F3C-{codeRAM}, 240E 0064 A5AE 0AC0
  23. ;A Button Green (0xC8)
  24. {code}+0x80110F08-{codeRAM}, 240F 00C8
  25. ;A Button Blue (0xFF)
  26. {code}+0x80110F1C-{codeRAM}, 2419 00FF
  27. ;B Button Red (0x64)
  28. {code}+0x80110EE8-{codeRAM}, 240E 0064
  29. ;B Button Green (0xFF)
  30. {code}+0x80110EF4-{codeRAM}, 2403 00FF
  31. ;B Button Blue (0x78)
  32. {code}+0x80110F10-{codeRAM}, 2419 0078 A719 06EE
  33. ;C Button Red (0xFF)
  34. {code}+0x801110E8-{codeRAM}, 240D 00FF
  35. ;C Button Green (0xFF)
  36. {code}+0x80111494-{codeRAM}, 2418 00FF
  37. ;C Button Blue (0x00)
  38. {code}+0x801114B4-{codeRAM}, 240E 0000 A72E 07E6
  39. ;START Button Red (0xFF), Green (0x82), Blue (0x3C)
  40. {code}+0x80089180-{codeRAM}, 3C01 FF82 3421 3C00
  41. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement