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.

220 lines
11 KiB

6 years ago
  1. ccm_seg7_light_0700DE68: # 0x0700DE68 - 0x0700DE70
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ccm_seg7_light_0700DE70: # 0x0700DE70 - 0x0700DE80
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ccm_seg7_light_0700DE80: # 0x0700DE80 - 0x0700DE88
  7. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  8. ccm_seg7_light_0700DE88: # 0x0700DE88 - 0x0700DE98
  9. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ccm_seg7_light_0700DE98: # 0x0700DE98 - 0x0700DEA0
  12. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  13. ccm_seg7_light_0700DEA0: # 0x0700DEA0 - 0x0700DEB0
  14. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ccm_seg7_light_0700DEB0: # 0x0700DEB0 - 0x0700DEB8
  17. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  18. ccm_seg7_light_0700DEB8: # 0x0700DEB8 - 0x0700DEC8
  19. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  20. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  21. ccm_seg7_vertex_0700DEC8: # 0x0700DEC8 - 0x0700DF88
  22. vertex -355, 123, 357, 2592, -870, 0x00, 0x7D, 0xEE, 0xFF
  23. vertex 433, 123, 357, 0, -870, 0x00, 0x7D, 0xEE, 0xFF
  24. vertex 433, 41, -195, 0, 990, 0x00, 0x7D, 0xEE, 0xFF
  25. vertex -355, 41, -195, 2592, 990, 0x00, 0x7D, 0xEE, 0xFF
  26. vertex 433, 358, -52, 0, -372, 0x00, 0x7F, 0x00, 0xFF
  27. vertex 330, 358, 50, 308, 0, 0x00, 0x7F, 0x00, 0xFF
  28. vertex 433, 358, 357, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  29. vertex 330, 358, 255, 308, 650, 0x00, 0x7F, 0x00, 0xFF
  30. vertex 126, 358, 255, 990, 650, 0x00, 0x7F, 0x00, 0xFF
  31. vertex 23, 358, 357, 1330, 990, 0x00, 0x7F, 0x00, 0xFF
  32. vertex 126, 358, 50, 990, 0, 0x00, 0x7F, 0x00, 0xFF
  33. vertex 23, 358, -52, 1330, -372, 0x00, 0x7F, 0x00, 0xFF
  34. ccm_seg7_vertex_0700DF88: # 0x0700DF88 - 0x0700E068
  35. vertex 351, 0, 275, -2482, 2726, 0x00, 0x00, 0x7F, 0xFF
  36. vertex 105, 174, 275, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  37. vertex 105, 0, 275, 0, 2726, 0x00, 0x00, 0x7F, 0xFF
  38. vertex 351, 0, 275, -2482, 2726, 0x01, 0x01, 0x7E, 0xFF
  39. vertex 349, 174, 273, -2466, 990, 0x01, 0x01, 0x7E, 0xFF
  40. vertex 105, 174, 275, 0, 990, 0x01, 0x01, 0x7E, 0xFF
  41. vertex 23, 205, -52, 0, 2520, 0x81, 0x00, 0x00, 0xFF
  42. vertex 23, 358, 357, 4056, 990, 0x81, 0x00, 0x00, 0xFF
  43. vertex 23, 358, -52, 0, 990, 0x81, 0x00, 0x00, 0xFF
  44. vertex 23, 205, 357, 4056, 2520, 0x81, 0x00, 0x00, 0xFF
  45. vertex 433, 205, -52, -4118, 2520, 0x00, 0x00, 0x81, 0xFF
  46. vertex 23, 205, -52, 0, 2520, 0x00, 0x00, 0x81, 0xFF
  47. vertex 433, 358, -52, -4118, 990, 0x00, 0x00, 0x81, 0xFF
  48. vertex 23, 358, -52, 0, 990, 0x00, 0x00, 0x81, 0xFF
  49. ccm_seg7_vertex_0700E068: # 0x0700E068 - 0x0700E168
  50. vertex 126, 358, 50, 3034, -542, 0x00, 0x00, 0x7F, 0xFF
  51. vertex 126, 154, 50, 3034, 1498, 0x00, 0x00, 0x7F, 0xFF
  52. vertex 330, 154, 50, 990, 1500, 0x00, 0x00, 0x7F, 0xFF
  53. vertex 433, 205, 357, -4118, -3098, 0x2C, 0x8A, 0x00, 0xFF
  54. vertex 351, 174, 29, -3300, 172, 0x2C, 0x8A, 0x00, 0xFF
  55. vertex 433, 205, -52, -4118, 990, 0x2C, 0x8A, 0x00, 0xFF
  56. vertex 433, 205, 357, -4118, -3098, 0x2B, 0x89, 0x00, 0xFF
  57. vertex 349, 174, 273, -3284, -2264, 0x2B, 0x89, 0x00, 0xFF
  58. vertex 351, 174, 29, -3300, 172, 0x2B, 0x89, 0x00, 0xFF
  59. vertex 433, 205, -52, -4118, 990, 0x00, 0x8A, 0xD3, 0xFF
  60. vertex 351, 174, 29, -3300, 172, 0x00, 0x8A, 0xD3, 0xFF
  61. vertex 105, 174, 29, -848, 172, 0x00, 0x8A, 0xD3, 0xFF
  62. vertex 23, 205, -52, 0, 990, 0x00, 0x8A, 0xD3, 0xFF
  63. vertex 105, 174, 275, -848, -2280, 0xD4, 0x8A, 0x00, 0xFF
  64. vertex 23, 205, 357, 0, -3098, 0xD4, 0x8A, 0x00, 0xFF
  65. vertex 105, 174, 29, -848, 172, 0xD4, 0x8A, 0x00, 0xFF
  66. ccm_seg7_vertex_0700E168: # 0x0700E168 - 0x0700E268
  67. vertex 23, 205, 357, 0, -3098, 0xD4, 0x8A, 0x00, 0xFF
  68. vertex 23, 205, -52, 0, 990, 0xD4, 0x8A, 0x00, 0xFF
  69. vertex 105, 174, 29, -848, 172, 0xD4, 0x8A, 0x00, 0xFF
  70. vertex 330, 358, 50, 990, 990, 0x81, 0x00, 0x00, 0xFF
  71. vertex 330, 154, 50, 990, 3032, 0x81, 0x00, 0x00, 0xFF
  72. vertex 330, 154, 255, 3034, 3032, 0x81, 0x00, 0x00, 0xFF
  73. vertex 330, 358, 255, 3034, 990, 0x81, 0x00, 0x00, 0xFF
  74. vertex 126, 358, 255, 3034, -542, 0x00, 0x00, 0x81, 0xFF
  75. vertex 330, 154, 255, 990, 1500, 0x00, 0x00, 0x81, 0xFF
  76. vertex 126, 154, 255, 3034, 1498, 0x00, 0x00, 0x81, 0xFF
  77. vertex 126, 358, 50, 3034, -542, 0x00, 0x00, 0x7F, 0xFF
  78. vertex 330, 154, 50, 990, 1500, 0x00, 0x00, 0x7F, 0xFF
  79. vertex 330, 358, 50, 990, -542, 0x00, 0x00, 0x7F, 0xFF
  80. vertex 126, 154, 255, 3034, 3032, 0x7F, 0x00, 0x00, 0xFF
  81. vertex 126, 358, 50, 990, 990, 0x7F, 0x00, 0x00, 0xFF
  82. vertex 126, 358, 255, 3034, 990, 0x7F, 0x00, 0x00, 0xFF
  83. ccm_seg7_vertex_0700E268: # 0x0700E268 - 0x0700E2C8
  84. vertex 126, 154, 255, 3034, 3032, 0x7F, 0x00, 0x00, 0xFF
  85. vertex 126, 154, 50, 990, 3032, 0x7F, 0x00, 0x00, 0xFF
  86. vertex 126, 358, 50, 990, 990, 0x7F, 0x00, 0x00, 0xFF
  87. vertex 126, 358, 255, 3034, -542, 0x00, 0x00, 0x81, 0xFF
  88. vertex 330, 358, 255, 990, -542, 0x00, 0x00, 0x81, 0xFF
  89. vertex 330, 154, 255, 990, 1500, 0x00, 0x00, 0x81, 0xFF
  90. ccm_seg7_vertex_0700E2C8: # 0x0700E2C8 - 0x0700E3A8
  91. vertex 351, 174, 29, -2482, 990, 0x00, 0x00, 0x81, 0xFF
  92. vertex 351, 0, 29, -2482, 2726, 0x00, 0x00, 0x81, 0xFF
  93. vertex 105, 0, 29, 0, 2726, 0x00, 0x00, 0x81, 0xFF
  94. vertex 105, 174, 29, 0, 990, 0x00, 0x00, 0x81, 0xFF
  95. vertex 349, 174, 273, 2404, 990, 0x7E, 0x01, 0x01, 0xFF
  96. vertex 351, 0, 275, 2420, 2726, 0x7E, 0x01, 0x01, 0xFF
  97. vertex 351, 174, 29, 0, 990, 0x7E, 0x01, 0x01, 0xFF
  98. vertex 351, 0, 275, 2420, 2726, 0x7F, 0x00, 0x00, 0xFF
  99. vertex 351, 0, 29, 0, 2726, 0x7F, 0x00, 0x00, 0xFF
  100. vertex 351, 174, 29, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  101. vertex 105, 0, 29, 0, 2726, 0x81, 0x00, 0x00, 0xFF
  102. vertex 105, 174, 275, 2420, 990, 0x81, 0x00, 0x00, 0xFF
  103. vertex 105, 174, 29, 0, 990, 0x81, 0x00, 0x00, 0xFF
  104. vertex 105, 0, 275, 2420, 2726, 0x81, 0x00, 0x00, 0xFF
  105. ccm_seg7_vertex_0700E3A8: # 0x0700E3A8 - 0x0700E428
  106. vertex -334, -204, -154, -2340, -6676, 0x00, 0x00, 0x81, 0xFF
  107. vertex -334, 27, -154, 0, -6676, 0x00, 0x00, 0x81, 0xFF
  108. vertex 433, 27, -154, 0, 990, 0x00, 0x00, 0x81, 0xFF
  109. vertex 433, -204, -154, -2338, 990, 0x00, 0x00, 0x81, 0xFF
  110. vertex -334, -204, 357, -2340, -4120, 0x81, 0x00, 0x00, 0xFF
  111. vertex -334, 102, 357, 724, -4122, 0x81, 0x00, 0x00, 0xFF
  112. vertex -334, 27, -154, 0, 990, 0x81, 0x00, 0x00, 0xFF
  113. vertex -334, -204, -154, -2340, 990, 0x81, 0x00, 0x00, 0xFF
  114. ccm_seg7_vertex_0700E428: # 0x0700E428 - 0x0700E468
  115. vertex 433, 21, -192, 0, 0, 0x00, 0x83, 0x12, 0xFF
  116. vertex 433, 103, 360, 0, 0, 0x00, 0x83, 0x12, 0xFF
  117. vertex -355, 103, 360, 0, 0, 0x00, 0x83, 0x12, 0xFF
  118. vertex -355, 21, -192, 0, 0, 0x00, 0x83, 0x12, 0xFF
  119. ccm_seg7_vertex_0700E468: # 0x0700E468 - 0x0700E4A8
  120. vertex 126, 154, 50, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  121. vertex 126, 154, 255, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  122. vertex 330, 154, 50, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  123. vertex 330, 154, 255, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  124. ccm_seg7_dl_0700E4A8: # 0x0700E4A8 - 0x0700E530
  125. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800
  126. gsDPLoadSync
  127. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  128. gsSPLight ccm_seg7_light_0700DE70, 1
  129. gsSPLight ccm_seg7_light_0700DE68, 2
  130. gsSPVertex ccm_seg7_vertex_0700DEC8, 12, 0
  131. gsSP2Triangles 0, 1, 2, 0x0, 2, 3, 0, 0x0
  132. gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
  133. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  134. gsSP2Triangles 10, 9, 8, 0x0, 10, 11, 9, 0x0
  135. gsSP2Triangles 11, 10, 4, 0x0, 10, 5, 4, 0x0
  136. gsSPEndDisplayList
  137. ccm_seg7_dl_0700E530: # 0x0700E530 - 0x0700E668
  138. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09005000
  139. gsDPLoadSync
  140. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  141. gsSPVertex ccm_seg7_vertex_0700DF88, 14, 0
  142. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  143. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  144. gsSP2Triangles 10, 11, 12, 0x0, 11, 13, 12, 0x0
  145. gsSPLight ccm_seg7_light_0700DE88, 1
  146. gsSPLight ccm_seg7_light_0700DE80, 2
  147. gsSPVertex ccm_seg7_vertex_0700E068, 16, 0
  148. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  149. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  150. gsSP2Triangles 9, 11, 12, 0x0, 13, 14, 15, 0x0
  151. gsSPVertex ccm_seg7_vertex_0700E168, 16, 0
  152. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  153. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  154. gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
  155. gsSPVertex ccm_seg7_vertex_0700E268, 6, 0
  156. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  157. gsSPLight ccm_seg7_light_0700DEA0, 1
  158. gsSPLight ccm_seg7_light_0700DE98, 2
  159. gsSPVertex ccm_seg7_vertex_0700E2C8, 14, 0
  160. gsSP2Triangles 0, 1, 2, 0x0, 2, 3, 0, 0x0
  161. gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
  162. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  163. gsSPEndDisplayList
  164. ccm_seg7_dl_0700E668: # 0x0700E668 - 0x0700E6C0
  165. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000
  166. gsDPLoadSync
  167. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  168. gsSPLight ccm_seg7_light_0700DE70, 1
  169. gsSPLight ccm_seg7_light_0700DE68, 2
  170. gsSPVertex ccm_seg7_vertex_0700E3A8, 8, 0
  171. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  172. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  173. gsSPEndDisplayList
  174. ccm_seg7_dl_0700E6C0: # 0x0700E6C0 - 0x0700E708
  175. gsSPVertex ccm_seg7_vertex_0700E428, 4, 0
  176. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  177. gsSPLight ccm_seg7_light_0700DEB8, 1
  178. gsSPLight ccm_seg7_light_0700DEB0, 2
  179. gsSPVertex ccm_seg7_vertex_0700E468, 4, 0
  180. gsSP2Triangles 0, 1, 2, 0x0, 3, 2, 1, 0x0
  181. gsSPEndDisplayList
  182. glabel ccm_seg7_dl_0700E708 # 0x0700E708 - 0x0700E790
  183. gsDPPipeSync
  184. 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
  185. gsSPClearGeometryMode G_SHADING_SMOOTH
  186. 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
  187. gsSPTexture -1, -1, 0, 0, 1
  188. gsDPTileSync
  189. 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
  190. gsDPSetTileSize 0, 0, 0, 124, 124
  191. gsSPDisplayList ccm_seg7_dl_0700E4A8
  192. gsSPDisplayList ccm_seg7_dl_0700E530
  193. gsSPDisplayList ccm_seg7_dl_0700E668
  194. gsSPTexture -1, -1, 0, 0, 0
  195. gsDPPipeSync
  196. 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
  197. gsSPDisplayList ccm_seg7_dl_0700E6C0
  198. gsSPSetGeometryMode G_SHADING_SMOOTH
  199. gsSPEndDisplayList