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.

199 lines
11 KiB

6 years ago
  1. ccm_seg7_light_07010FB8: # 0x07010FB8 - 0x07010FC0
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ccm_seg7_light_07010FC0: # 0x07010FC0 - 0x07010FD0
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ccm_seg7_vertex_07010FD0: # 0x07010FD0 - 0x070110C0
  7. vertex -21, -19, 174, 990, 95, 0x8C, 0xCE, 0x00, 0xFF
  8. vertex -30, 2, 174, 990, 0, 0x8C, 0xCE, 0x00, 0xFF
  9. vertex -30, 2, 123, 0, 0, 0x8C, 0xCE, 0x00, 0xFF
  10. vertex 0, 32, 123, 990, 95, 0x32, 0x74, 0x00, 0xFF
  11. vertex 0, 32, 174, 0, 95, 0x32, 0x74, 0x00, 0xFF
  12. vertex 21, 23, 174, 0, 0, 0x32, 0x74, 0x00, 0xFF
  13. vertex 21, 23, 123, 990, 0, 0x32, 0x74, 0x00, 0xFF
  14. vertex 21, 23, 174, 990, 0, 0x74, 0x32, 0x00, 0xFF
  15. vertex 30, 2, 174, 990, 95, 0x74, 0x32, 0x00, 0xFF
  16. vertex 30, 2, 123, 0, 95, 0x74, 0x32, 0x00, 0xFF
  17. vertex 21, 23, 123, 0, 0, 0x74, 0x32, 0x00, 0xFF
  18. vertex 0, -28, 123, 990, 0, 0xCE, 0x8C, 0x00, 0xFF
  19. vertex -21, -19, 174, 0, 95, 0xCE, 0x8C, 0x00, 0xFF
  20. vertex -21, -19, 123, 990, 95, 0xCE, 0x8C, 0x00, 0xFF
  21. vertex 0, -28, 174, 0, 0, 0xCE, 0x8C, 0x00, 0xFF
  22. ccm_seg7_vertex_070110C0: # 0x070110C0 - 0x070111B0
  23. vertex -30, 2, 123, 0, 95, 0x8C, 0x32, 0x00, 0xFF
  24. vertex -21, 23, 174, 990, 0, 0x8C, 0x32, 0x00, 0xFF
  25. vertex -21, 23, 123, 0, 0, 0x8C, 0x32, 0x00, 0xFF
  26. vertex -21, -19, 174, 990, 95, 0x8C, 0xCE, 0x00, 0xFF
  27. vertex -30, 2, 123, 0, 0, 0x8C, 0xCE, 0x00, 0xFF
  28. vertex -21, -19, 123, 0, 95, 0x8C, 0xCE, 0x00, 0xFF
  29. vertex 30, 2, 123, 0, 0, 0x74, 0xCE, 0x00, 0xFF
  30. vertex 21, -19, 174, 990, 95, 0x74, 0xCE, 0x00, 0xFF
  31. vertex 21, -19, 123, 0, 95, 0x74, 0xCE, 0x00, 0xFF
  32. vertex 30, 2, 174, 990, 0, 0x74, 0xCE, 0x00, 0xFF
  33. vertex 21, -19, 174, 990, 0, 0x32, 0x8C, 0x00, 0xFF
  34. vertex 0, -28, 174, 990, 95, 0x32, 0x8C, 0x00, 0xFF
  35. vertex 0, -28, 123, 0, 95, 0x32, 0x8C, 0x00, 0xFF
  36. vertex 21, -19, 123, 0, 0, 0x32, 0x8C, 0x00, 0xFF
  37. vertex -30, 2, 174, 990, 95, 0x8C, 0x32, 0x00, 0xFF
  38. ccm_seg7_vertex_070111B0: # 0x070111B0 - 0x070112A0
  39. vertex 0, -24, -122, 990, 95, 0x32, 0x8C, 0x00, 0xFF
  40. vertex 21, -15, -173, 0, 0, 0x32, 0x8C, 0x00, 0xFF
  41. vertex 21, -15, -122, 990, 0, 0x32, 0x8C, 0x00, 0xFF
  42. vertex -21, 23, 174, 990, 95, 0xCE, 0x74, 0x00, 0xFF
  43. vertex 0, 32, 123, 0, 0, 0xCE, 0x74, 0x00, 0xFF
  44. vertex -21, 23, 123, 0, 95, 0xCE, 0x74, 0x00, 0xFF
  45. vertex 0, 32, 174, 990, 0, 0xCE, 0x74, 0x00, 0xFF
  46. vertex 30, 5, -122, 990, 95, 0x75, 0x30, 0x00, 0xFF
  47. vertex 30, 5, -173, 0, 95, 0x75, 0x30, 0x00, 0xFF
  48. vertex 21, 27, -173, 0, 0, 0x75, 0x30, 0x00, 0xFF
  49. vertex 21, 27, -122, 990, 0, 0x75, 0x30, 0x00, 0xFF
  50. vertex 21, 27, -173, 990, 0, 0x32, 0x74, 0x00, 0xFF
  51. vertex 0, 36, -173, 990, 95, 0x32, 0x74, 0x00, 0xFF
  52. vertex 0, 36, -122, 0, 95, 0x32, 0x74, 0x00, 0xFF
  53. vertex 21, 27, -122, 0, 0, 0x32, 0x74, 0x00, 0xFF
  54. ccm_seg7_vertex_070112A0: # 0x070112A0 - 0x07011390
  55. vertex -21, -15, -173, 990, 95, 0xCE, 0x8C, 0x00, 0xFF
  56. vertex 0, -24, -173, 990, 0, 0xCE, 0x8C, 0x00, 0xFF
  57. vertex 0, -24, -122, 0, 0, 0xCE, 0x8C, 0x00, 0xFF
  58. vertex 0, -24, -122, 990, 95, 0x32, 0x8C, 0x00, 0xFF
  59. vertex 0, -24, -173, 0, 95, 0x32, 0x8C, 0x00, 0xFF
  60. vertex 21, -15, -173, 0, 0, 0x32, 0x8C, 0x00, 0xFF
  61. vertex 21, -15, -173, 6, -30, 0x73, 0xCC, 0x00, 0xFF
  62. vertex 30, 5, -173, 6, 97, 0x73, 0xCC, 0x00, 0xFF
  63. vertex 30, 5, -122, 1026, 95, 0x73, 0xCC, 0x00, 0xFF
  64. vertex 21, -15, -122, 1026, 0, 0x73, 0xCC, 0x00, 0xFF
  65. vertex -30, 5, -122, 990, 0, 0x8D, 0xCC, 0x00, 0xFF
  66. vertex -30, 5, -173, 0, 0, 0x8D, 0xCC, 0x00, 0xFF
  67. vertex -21, -15, -173, 0, 95, 0x8D, 0xCC, 0x00, 0xFF
  68. vertex -21, -15, -122, 990, 95, 0x8D, 0xCC, 0x00, 0xFF
  69. vertex -21, -15, -122, 0, 95, 0xCE, 0x8C, 0x00, 0xFF
  70. ccm_seg7_vertex_07011390: # 0x07011390 - 0x07011410
  71. vertex -21, 27, -173, -30, 97, 0x8B, 0x30, 0x00, 0xFF
  72. vertex -30, 5, -122, 990, 0, 0x8B, 0x30, 0x00, 0xFF
  73. vertex -21, 27, -122, 990, 95, 0x8B, 0x30, 0x00, 0xFF
  74. vertex -30, 5, -173, -30, -29, 0x8B, 0x30, 0x00, 0xFF
  75. vertex 0, 36, -173, 0, 0, 0xCE, 0x74, 0x00, 0xFF
  76. vertex -21, 27, -122, 990, 95, 0xCE, 0x74, 0x00, 0xFF
  77. vertex 0, 36, -122, 990, 0, 0xCE, 0x74, 0x00, 0xFF
  78. vertex -21, 27, -173, 0, 95, 0xCE, 0x74, 0x00, 0xFF
  79. ccm_seg7_vertex_07011410: # 0x07011410 - 0x07011500
  80. vertex -21, 23, 174, 118, 118, 0x00, 0x00, 0x7F, 0xFF
  81. vertex 21, 23, 174, 840, 118, 0x00, 0x00, 0x7F, 0xFF
  82. vertex 0, 32, 174, 478, 0, 0x00, 0x00, 0x7F, 0xFF
  83. vertex 21, -19, 174, 840, 840, 0x00, 0x00, 0x7F, 0xFF
  84. vertex 30, 2, 174, 990, 480, 0x00, 0x00, 0x7F, 0xFF
  85. vertex 0, -28, 174, 480, 990, 0x00, 0x00, 0x7F, 0xFF
  86. vertex -21, -19, 174, 118, 840, 0x00, 0x00, 0x7F, 0xFF
  87. vertex -30, 2, 174, 0, 480, 0x00, 0x00, 0x7F, 0xFF
  88. vertex -21, -15, -173, 840, 840, 0x00, 0x00, 0x81, 0xFF
  89. vertex -30, 5, -173, 990, 480, 0x00, 0x00, 0x81, 0xFF
  90. vertex -21, 27, -173, 840, 118, 0x00, 0x00, 0x81, 0xFF
  91. vertex 21, -15, -173, 118, 840, 0x00, 0x00, 0x81, 0xFF
  92. vertex 0, -24, -173, 478, 990, 0x00, 0x00, 0x81, 0xFF
  93. vertex 30, 5, -173, 0, 480, 0x00, 0x00, 0x81, 0xFF
  94. vertex 21, 27, -173, 118, 118, 0x00, 0x00, 0x81, 0xFF
  95. ccm_seg7_vertex_07011500: # 0x07011500 - 0x07011600
  96. vertex -21, 27, -122, 840, 118, 0x00, 0x00, 0x7F, 0xFF
  97. vertex -21, -15, -122, 840, 840, 0x00, 0x00, 0x7F, 0xFF
  98. vertex 0, -24, -122, 478, 990, 0x00, 0x00, 0x7F, 0xFF
  99. vertex -21, -15, -173, 840, 840, 0x00, 0x00, 0x81, 0xFF
  100. vertex -21, 27, -173, 840, 118, 0x00, 0x00, 0x81, 0xFF
  101. vertex 0, 36, -173, 480, 0, 0x00, 0x00, 0x81, 0xFF
  102. vertex 21, 27, -173, 118, 118, 0x00, 0x00, 0x81, 0xFF
  103. vertex -21, -19, 123, 118, 840, 0x00, 0x00, 0x81, 0xFF
  104. vertex 21, -19, 123, 840, 840, 0x00, 0x00, 0x81, 0xFF
  105. vertex 0, -28, 123, 478, 990, 0x00, 0x00, 0x81, 0xFF
  106. vertex 21, 23, 123, 840, 118, 0x00, 0x00, 0x81, 0xFF
  107. vertex 30, 2, 123, 990, 480, 0x00, 0x00, 0x81, 0xFF
  108. vertex -21, 23, 123, 118, 118, 0x00, 0x00, 0x81, 0xFF
  109. vertex 0, 32, 123, 478, 0, 0x00, 0x00, 0x81, 0xFF
  110. vertex -30, 2, 123, 0, 480, 0x00, 0x00, 0x81, 0xFF
  111. vertex -30, 5, -122, 990, 480, 0x00, 0x00, 0x7F, 0xFF
  112. ccm_seg7_vertex_07011600: # 0x07011600 - 0x07011660
  113. vertex -21, 27, -122, 840, 118, 0x00, 0x00, 0x7F, 0xFF
  114. vertex 0, -24, -122, 478, 990, 0x00, 0x00, 0x7F, 0xFF
  115. vertex 21, -15, -122, 118, 840, 0x00, 0x00, 0x7F, 0xFF
  116. vertex 30, 5, -122, 0, 480, 0x00, 0x00, 0x7F, 0xFF
  117. vertex 21, 27, -122, 118, 118, 0x00, 0x00, 0x7F, 0xFF
  118. vertex 0, 36, -122, 478, 0, 0x00, 0x00, 0x7F, 0xFF
  119. ccm_seg7_dl_07011660: # 0x07011660 - 0x070117B8
  120. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07000800
  121. gsDPLoadSync
  122. gsDPLoadBlock 7, 0, 0, 0x07F, 0x100
  123. gsSPLight ccm_seg7_light_07010FC0, 1
  124. gsSPLight ccm_seg7_light_07010FB8, 2
  125. gsSPVertex ccm_seg7_vertex_07010FD0, 15, 0
  126. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  127. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  128. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  129. gsSP1Triangle 11, 14, 12, 0x0
  130. gsSPVertex ccm_seg7_vertex_070110C0, 15, 0
  131. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  132. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  133. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  134. gsSP1Triangle 0, 14, 1, 0x0
  135. gsSPVertex ccm_seg7_vertex_070111B0, 15, 0
  136. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  137. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  138. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  139. gsSP1Triangle 11, 13, 14, 0x0
  140. gsSPVertex ccm_seg7_vertex_070112A0, 15, 0
  141. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  142. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  143. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  144. gsSP1Triangle 0, 2, 14, 0x0
  145. gsSPVertex ccm_seg7_vertex_07011390, 8, 0
  146. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  147. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  148. gsSPEndDisplayList
  149. ccm_seg7_dl_070117B8: # 0x070117B8 - 0x070118B0
  150. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07001100
  151. gsDPLoadSync
  152. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  153. gsSPVertex ccm_seg7_vertex_07011410, 15, 0
  154. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  155. gsSP2Triangles 0, 5, 3, 0x0, 0, 6, 5, 0x0
  156. gsSP2Triangles 0, 7, 6, 0x0, 0, 4, 1, 0x0
  157. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 12, 0x0
  158. gsSP2Triangles 8, 13, 11, 0x0, 8, 14, 13, 0x0
  159. gsSPVertex ccm_seg7_vertex_07011500, 16, 0
  160. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  161. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  162. gsSP2Triangles 7, 10, 11, 0x0, 7, 12, 13, 0x0
  163. gsSP2Triangles 7, 14, 12, 0x0, 7, 11, 8, 0x0
  164. gsSP2Triangles 7, 13, 10, 0x0, 0, 15, 1, 0x0
  165. gsSPVertex ccm_seg7_vertex_07011600, 6, 0
  166. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  167. gsSP2Triangles 0, 3, 4, 0x0, 0, 4, 5, 0x0
  168. gsSPEndDisplayList
  169. glabel ccm_seg7_dl_070118B0 # 0x070118B0 - 0x07011940
  170. gsDPPipeSync
  171. 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
  172. gsSPClearGeometryMode G_SHADING_SMOOTH
  173. 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
  174. gsSPTexture -1, -1, 0, 0, 1
  175. gsDPTileSync
  176. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 2, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  177. gsDPSetTileSize 0, 0, 0, 124, 12
  178. gsSPDisplayList ccm_seg7_dl_07011660
  179. gsDPTileSync
  180. 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
  181. gsDPSetTileSize 0, 0, 0, 124, 124
  182. gsSPDisplayList ccm_seg7_dl_070117B8
  183. gsSPTexture -1, -1, 0, 0, 0
  184. gsDPPipeSync
  185. 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
  186. gsSPSetGeometryMode G_SHADING_SMOOTH
  187. gsSPEndDisplayList