Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OoT Debug ROM Button Colors
- This is a small ASM hack that allows you to set individual values for each color of the interface buttons.
- Unlike most (if not all?) other gameshark codes that change the interface colors, this hack changes the ASM that applies the colors, rather than the values that are set by it, making it possible to easily convert it into a ROM hack.
- Scroll to the bottom for a Gameshark code.
- ;;;;;;;;;;;;;;;;;
- ;;A BUTTON
- ;;;;;;;;;;;;;;;;;
- .org 0x80110F3C
- ADDIU T6, R0, 0x0064 ;A Button Red
- SH T6, 0x0AC0(T5)
- .org 0x80110F08
- ADDIU T7, R0, 0x00C8 ;A Button Green
- .org 0x80110F1C
- ADDIU T9, R0, 0x00FF ;A Button Blue
- ;;;;;;;;;;;;;;;;;
- ;;B BUTTON
- ;;;;;;;;;;;;;;;;;
- .org 0x80110EE8
- ADDIU T6, R0, 0x0064 ;B Button Red
- .org 0x80110EF4
- ADDIU V1, R0, 0x00FF ;B Button Green
- .org 0x80110F10
- ADDIU T9, R0, 0x0078 ;B Button Blue
- SH T9, 0x06EE(T8)
- ;;;;;;;;;;;;;;;;;
- ;;C BUTTONS
- ;;;;;;;;;;;;;;;;;
- .org 0x801110E8
- ADDIU T5, R0, 0x00FF ;C Button Red
- .org 0x80111494
- ADDIU T8, R0, 0x00FF ;C Button Green
- .org 0x801114B4
- ADDIU T6, R0, 0x0000 ;C Button Blue
- SH T6, 0x07E6(T9)
- ;;;;;;;;;;;;;;;;;
- ;;START BUTTON
- ;;;;;;;;;;;;;;;;;
- .org 0x80089180
- LUI AT, 0x7878 ;START Button Red & Green
- ORI AT, AT, 0x7800 ;START Button Blue
- And as a gameshark code:
- 81110F3C 240E
- 81110F3E 00XX ;XX = A Button Red (0x64 for MM color)
- 81110F40 A5AE
- 81110F42 0AC0
- 81110F08 240F
- 81110F0A 00XX ;XX = A Button Green (0xC8 for MM color)
- 81110F1C 2419
- 81110F1E 00XX ;XX = A Button Blue (0xFF for MM color)
- 81110EE8 240E
- 81110EEA 00XX ;XX = B Button Red (0x64 for MM color)
- 81110EF4 2403
- 81110EF6 00XX ;XX = B Button Green (0xFF for MM color)
- 81110F10 2419
- 81110F12 00XX ;XX = B Button Blue (0x78 for MM color)
- 81110F14 A719
- 81110F16 06EE
- 811110E8 240D
- 811110EA 00XX ;XX = C Button Red (0xFF for MM color)
- 81111494 2418
- 81111496 00XX ;XX = C Button Green (0xFF for MM color)
- 811114B4 240E
- 811114B6 00XX ;XX = C Button Blue (0x00 for MM color)
- 811114B8 A72E
- 811114BA 07E6
- 81089180 3C01
- 81089182 XXYY ;XX = START Button Red (0x78 for MM color) YY = START Button Green (0x78 for MM color)
- 81089184 3421
- 81089186 XX00 ;XX = START Button Blue (0x78 for MM color)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement