Advertisement
abitalive

SM64 Change Star Color

Feb 12th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. https://youtu.be/tHDElvEUnrU
  2.  
  3. Requires "All Stars Yellow Code" (guess I should rename this)
  4. https://sites.google.com/site/sm64gam...
  5.  
  6. US
  7. 8127F57C 0814
  8. 8127F57E 0000
  9. 81500000 3408
  10. 81500002 FC3F (RGBA 5/5/5/1 Value)
  11. 81500004 3C09
  12. 81500006 800D
  13. 81500008 3529
  14. 8150000A E6A0
  15. 8150000C 252A
  16. 8150000E 0800
  17. 81500010 340B
  18. 81500012 FFCB
  19. 81500014 952C
  20. 81500016 0000
  21. 81500018 158B
  22. 8150001A 0004
  23. 8150001C 2400
  24. 81500020 A528
  25. 81500022 0000
  26. 81500024 1549
  27. 81500026 FFFD
  28. 81500028 2529
  29. 8150002A 0002
  30. 8150002C 03E0
  31. 8150002E 0008
  32. 81500030 2400
  33.  
  34. JP
  35. 8127EFCC 0814
  36. 8127EFCE 0000
  37. 81500000 3408
  38. 81500002 FC3F (RGBA 5/5/5/1 Value)
  39. 81500004 3C09
  40. 81500006 800D
  41. 81500008 3529
  42. 8150000A B840
  43. 8150000C 252A
  44. 8150000E 0800
  45. 81500010 340B
  46. 81500012 FFCB
  47. 81500014 952C
  48. 81500016 0000
  49. 81500018 158B
  50. 8150001A 0004
  51. 8150001C 2400
  52. 81500020 A528
  53. 81500022 0000
  54. 81500024 1549
  55. 81500026 FFFD
  56. 81500028 2529
  57. 8150002A 0002
  58. 8150002C 03E0
  59. 8150002E 0008
  60. 81500030 2400
  61.  
  62. Some example 5/5/5/1 RGBA color values
  63. Black 0001
  64. Blue 003F
  65. Cyan 07FF
  66. Green 07C1
  67. Magenta F83F
  68. Red F801
  69. White FFFF
  70. Yellow FFC1
  71.  
  72. US ASM
  73. .org 8027f57c
  74. j 80500000 ; hook texture function
  75.  
  76. .org 80500000
  77. ori t0, r0, 0xfc3f ; new rgba value
  78. lui t1, 0x800d
  79. ori t1, t1, 0xe6a0 ; texture start ram 800de6a0
  80. addiu t2, t1, 0x0800 ; texture end ram 800deea0
  81. ori t3, r0, 0xffcb ; first 4 bytes of original star texture
  82. lhu t4, 0x0000 (t1) ; load halfword at 800de6a0
  83. bne t3, t4, 0x8050002c ; skip if it's not the star texture
  84. nop
  85. sh t0, 0x0000 (t1) ; store new color value
  86. bne t1, t2, 0x8050001c ; loop if not at end of star texture
  87. addiu t1, t1, 0x0002 ; increment loop
  88. jr ra ; return
  89. nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement