Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
8.7 KiB

6 years ago
  1. ttm_seg7_light_07010AD8: # 0x07010AD8 - 0x07010AE0
  2. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  3. ttm_seg7_light_07010AE0: # 0x07010AE0 - 0x07010AF0
  4. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_07010AF0: # 0x07010AF0 - 0x07010AF8
  7. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  8. ttm_seg7_light_07010AF8: # 0x07010AF8 - 0x07010B08
  9. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_07010B08: # 0x07010B08 - 0x07010B10
  12. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  13. ttm_seg7_light_07010B10: # 0x07010B10 - 0x07010B20
  14. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_07010B20: # 0x07010B20 - 0x07010C10
  17. vertex -406, -306, 375, 2336, -3000, 0xD7, 0x8E, 0xDE, 0xFF
  18. vertex -205, -306, 137, 1666, -2210, 0xD7, 0x8E, 0xDE, 0xFF
  19. vertex -81, -409, 330, 1254, -2852, 0xD7, 0x8E, 0xDE, 0xFF
  20. vertex -81, -409, 330, 1254, -2852, 0xE3, 0x8F, 0x31, 0xFF
  21. vertex -186, -306, 506, 1604, -3436, 0xE3, 0x8F, 0x31, 0xFF
  22. vertex -406, -306, 375, 2336, -3000, 0xE3, 0x8F, 0x31, 0xFF
  23. vertex -81, 205, 330, 924, -3514, 0xC4, 0x97, 0xDC, 0xFF
  24. vertex -188, 410, -90, 1278, -2114, 0xC4, 0x97, 0xDC, 0xFF
  25. vertex 180, 205, -109, 50, -2052, 0xC4, 0x97, 0xDC, 0xFF
  26. vertex 161, 410, -477, 112, -824, 0xC6, 0x9D, 0xCC, 0xFF
  27. vertex 180, 205, -109, 50, -2052, 0xC6, 0x9D, 0xCC, 0xFF
  28. vertex -188, 410, -90, 1278, -2114, 0xC6, 0x9D, 0xCC, 0xFF
  29. vertex 180, 205, -109, 50, -2052, 0xF1, 0x92, 0xC4, 0xFF
  30. vertex 161, 410, -477, 112, -824, 0xF1, 0x92, 0xC4, 0xFF
  31. vertex 442, 410, -549, -820, -588, 0xF1, 0x92, 0xC4, 0xFF
  32. ttm_seg7_vertex_07010C10: # 0x07010C10 - 0x07010C40
  33. vertex 337, -204, -373, 0, -1872, 0x06, 0xAC, 0xA2, 0xFF
  34. vertex 223, -204, -381, 308, -1736, 0x06, 0xAC, 0xA2, 0xFF
  35. vertex 390, -101, -461, 0, -2348, 0x06, 0xAC, 0xA2, 0xFF
  36. ttm_seg7_vertex_07010C40: # 0x07010C40 - 0x07010D30
  37. vertex 223, -204, -381, 1194, -4802, 0xBE, 0xE5, 0x98, 0xFF
  38. vertex 56, -101, -302, 1774, -5142, 0xBE, 0xE5, 0x98, 0xFF
  39. vertex 249, -101, -425, 1028, -5142, 0xBE, 0xE5, 0x98, 0xFF
  40. vertex 223, -204, -381, 308, -1736, 0xE3, 0xD6, 0x8C, 0xFF
  41. vertex 249, -101, -425, 308, -2076, 0xE3, 0xD6, 0x8C, 0xFF
  42. vertex 390, -101, -461, 0, -2348, 0xE3, 0xD6, 0x8C, 0xFF
  43. vertex -29, -306, 242, 0, 990, 0x2D, 0xA7, 0xB3, 0xFF
  44. vertex -117, -306, 190, 308, 990, 0x2D, 0xA7, 0xB3, 0xFF
  45. vertex 127, 0, -21, 0, -428, 0x2D, 0xA7, 0xB3, 0xFF
  46. vertex -117, -306, 190, 308, 990, 0x07, 0xB4, 0x9B, 0xFF
  47. vertex -100, 0, -38, 650, -238, 0x07, 0xB4, 0x9B, 0xFF
  48. vertex 127, 0, -21, 0, -428, 0x07, 0xB4, 0x9B, 0xFF
  49. vertex -81, -409, 330, 1254, -2852, 0x2E, 0xA7, 0xB3, 0xFF
  50. vertex -205, -306, 137, 1666, -2210, 0x2E, 0xA7, 0xB3, 0xFF
  51. vertex -29, -306, 242, 1080, -2558, 0x2E, 0xA7, 0xB3, 0xFF
  52. ttm_seg7_vertex_07010D30: # 0x07010D30 - 0x07010D60
  53. vertex -100, 0, -38, 2762, -5482, 0x82, 0x00, 0xF7, 0xFF
  54. vertex -117, -306, 190, 3334, -4460, 0x82, 0x00, 0xF7, 0xFF
  55. vertex -117, 0, 190, 3334, -5482, 0x82, 0x00, 0xF7, 0xFF
  56. ttm_seg7_vertex_07010D60: # 0x07010D60 - 0x07010DA0
  57. vertex -29, 0, 242, 650, 3032, 0xC0, 0x00, 0x6D, 0xFF
  58. vertex -117, -306, 190, 308, 4054, 0xC0, 0x00, 0x6D, 0xFF
  59. vertex -29, -306, 242, 650, 4054, 0xC0, 0x00, 0x6D, 0xFF
  60. vertex -117, 0, 190, 308, 3032, 0xC0, 0x00, 0x6D, 0xFF
  61. ttm_seg7_vertex_07010DA0: # 0x07010DA0 - 0x07010E00
  62. vertex 180, -101, -109, 1962, -17424, 0xFD, 0x8A, 0x2C, 0xFF
  63. vertex 223, -204, -381, 2048, -17966, 0xFD, 0x8A, 0x2C, 0xFF
  64. vertex 337, -204, -373, 2276, -17950, 0xFD, 0x8A, 0x2C, 0xFF
  65. vertex 180, -101, -109, 1962, -17424, 0xCC, 0x92, 0x21, 0xFF
  66. vertex 56, -101, -302, 1716, -17808, 0xCC, 0x92, 0x21, 0xFF
  67. vertex 223, -204, -381, 2048, -17966, 0xCC, 0x92, 0x21, 0xFF
  68. ttm_seg7_vertex_07010E00: # 0x07010E00 - 0x07010F00
  69. vertex 127, 0, -21, 1858, -17248, 0x00, 0x7F, 0x00, 0xFF
  70. vertex -117, 0, 190, 1368, -16826, 0x00, 0x7F, 0x00, 0xFF
  71. vertex -29, 0, 242, 1544, -16722, 0x00, 0x7F, 0x00, 0xFF
  72. vertex -406, -306, 375, 792, -16456, 0x00, 0x7F, 0x00, 0xFF
  73. vertex -186, -306, 506, 1230, -16194, 0x00, 0x7F, 0x00, 0xFF
  74. vertex -205, -306, 137, 1192, -16930, 0x00, 0x7F, 0x00, 0xFF
  75. vertex 161, 410, -477, 1926, -18160, 0x00, 0x7F, 0x00, 0xFF
  76. vertex -188, 410, -90, 1226, -17386, 0x00, 0x7F, 0x00, 0xFF
  77. vertex 23, 410, 154, 1648, -16896, 0x00, 0x7F, 0x00, 0xFF
  78. vertex -188, 410, -90, 1226, -17386, 0xBB, 0x57, 0x3C, 0xFF
  79. vertex -81, 205, 330, 1440, -16546, 0xBB, 0x57, 0x3C, 0xFF
  80. vertex 23, 410, 154, 1648, -16896, 0xBB, 0x57, 0x3C, 0xFF
  81. vertex 442, 410, -549, 2486, -18302, 0x00, 0x7F, 0x00, 0xFF
  82. vertex 390, -101, -461, 2382, -18126, 0x00, 0x7F, 0x00, 0xFF
  83. vertex 249, -101, -425, 2102, -18054, 0x00, 0x7F, 0x00, 0xFF
  84. vertex 56, -101, -302, 1716, -17808, 0x00, 0x7F, 0x00, 0xFF
  85. ttm_seg7_vertex_07010F00: # 0x07010F00 - 0x07010F90
  86. vertex 390, -101, -461, 2382, -18126, 0x00, 0x7F, 0x00, 0xFF
  87. vertex 56, -101, -302, 1716, -17808, 0x00, 0x7F, 0x00, 0xFF
  88. vertex 180, -101, -109, 1962, -17424, 0x00, 0x7F, 0x00, 0xFF
  89. vertex 127, 0, -21, 1858, -17248, 0x00, 0x7F, 0x00, 0xFF
  90. vertex -100, 0, -38, 1402, -17282, 0x00, 0x7F, 0x00, 0xFF
  91. vertex -117, 0, 190, 1368, -16826, 0x00, 0x7F, 0x00, 0xFF
  92. vertex -29, -306, 242, 1544, -16722, 0x00, 0x7F, 0x00, 0xFF
  93. vertex -205, -306, 137, 1192, -16930, 0x00, 0x7F, 0x00, 0xFF
  94. vertex -186, -306, 506, 1230, -16194, 0x00, 0x7F, 0x00, 0xFF
  95. ttm_seg7_dl_07010F90: # 0x07010F90 - 0x07011078
  96. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000
  97. gsDPLoadSync
  98. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  99. gsSPLight ttm_seg7_light_07010AE0, 1
  100. gsSPLight ttm_seg7_light_07010AD8, 2
  101. gsSPVertex ttm_seg7_vertex_07010B20, 15, 0
  102. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  103. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  104. gsSP1Triangle 12, 13, 14, 0x0
  105. gsSPVertex ttm_seg7_vertex_07010C10, 3, 0
  106. gsSP1Triangle 0, 1, 2, 0x0
  107. gsSPLight ttm_seg7_light_07010AF8, 1
  108. gsSPLight ttm_seg7_light_07010AF0, 2
  109. gsSPVertex ttm_seg7_vertex_07010C40, 15, 0
  110. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  111. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  112. gsSP1Triangle 12, 13, 14, 0x0
  113. gsSPVertex ttm_seg7_vertex_07010D30, 3, 0
  114. gsSP1Triangle 0, 1, 2, 0x0
  115. gsSPLight ttm_seg7_light_07010B10, 1
  116. gsSPLight ttm_seg7_light_07010B08, 2
  117. gsSPVertex ttm_seg7_vertex_07010D60, 4, 0
  118. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  119. gsSPEndDisplayList
  120. ttm_seg7_dl_07011078: # 0x07011078 - 0x07011128
  121. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  122. gsDPLoadSync
  123. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  124. gsSPLight ttm_seg7_light_07010AE0, 1
  125. gsSPLight ttm_seg7_light_07010AD8, 2
  126. gsSPVertex ttm_seg7_vertex_07010DA0, 6, 0
  127. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  128. gsSPLight ttm_seg7_light_07010B10, 1
  129. gsSPLight ttm_seg7_light_07010B08, 2
  130. gsSPVertex ttm_seg7_vertex_07010E00, 16, 0
  131. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  132. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  133. gsSP2Triangles 12, 6, 8, 0x0, 13, 14, 15, 0x0
  134. gsSPVertex ttm_seg7_vertex_07010F00, 9, 0
  135. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  136. gsSP1Triangle 6, 7, 8, 0x0
  137. gsSPEndDisplayList
  138. glabel ttm_seg7_dl_07011128 # 0x07011128 - 0x070111A0
  139. gsDPPipeSync
  140. gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
  141. gsSPClearGeometryMode G_SHADING_SMOOTH
  142. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD
  143. gsSPTexture -1, -1, 0, 0, 1
  144. gsDPTileSync
  145. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  146. gsDPSetTileSize 0, 0, 0, 124, 124
  147. gsSPDisplayList ttm_seg7_dl_07010F90
  148. gsSPDisplayList ttm_seg7_dl_07011078
  149. gsSPTexture -1, -1, 0, 0, 0
  150. gsDPPipeSync
  151. gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_SHADE, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
  152. gsSPSetGeometryMode G_SHADING_SMOOTH
  153. gsSPEndDisplayList