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.

215 lines
12 KiB

6 years ago
  1. ccm_seg7_light_07012C38: # 0x07012C38 - 0x07012C40
  2. .byte 0xCC, 0xCC, 0xCC, 0x00, 0xCC, 0xCC, 0xCC, 0x00
  3. ccm_seg7_light_07012C40: # 0x07012C40 - 0x07012C50
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ccm_seg7_vertex_07012C50: # 0x07012C50 - 0x07012D50
  7. vertex 0, -62, 195, 990, 1396, 0x00, 0xD9, 0x78, 0xFF
  8. vertex 92, -107, 148, 1448, 1980, 0x37, 0xBD, 0x5C, 0xFF
  9. vertex 92, 0, 183, 2012, 1592, 0x3F, 0x00, 0x6D, 0xFF
  10. vertex -204, 0, 0, 4056, 3032, 0x82, 0x00, 0x00, 0xFF
  11. vertex -173, 0, 108, 4056, 2312, 0x96, 0x00, 0x44, 0xFF
  12. vertex -173, 102, 33, 3710, 2820, 0x96, 0x41, 0x14, 0xFF
  13. vertex -91, 108, 148, 3492, 1980, 0xC0, 0x40, 0x58, 0xFF
  14. vertex -91, 0, 183, 4056, 1592, 0xC8, 0x00, 0x71, 0xFF
  15. vertex -91, 174, 57, 3348, 2668, 0xC8, 0x6C, 0x23, 0xFF
  16. vertex -91, 0, 183, 936, -202, 0xC8, 0x00, 0x71, 0xFF
  17. vertex 0, -62, 195, 166, 270, 0x00, 0xD9, 0x78, 0xFF
  18. vertex 0, 63, 195, 1104, 526, 0x00, 0x27, 0x78, 0xFF
  19. vertex 92, 0, 183, 344, 980, 0x3F, 0x00, 0x6D, 0xFF
  20. vertex 0, 63, 195, 3034, 1396, 0x00, 0x27, 0x78, 0xFF
  21. vertex 92, 108, 148, 2576, 1980, 0x38, 0x43, 0x5C, 0xFF
  22. vertex -173, 63, -86, 3830, 3604, 0x96, 0x28, 0xC9, 0xFF
  23. ccm_seg7_vertex_07012D50: # 0x07012D50 - 0x07012E50
  24. vertex -173, 102, 33, 3710, 2820, 0x96, 0x41, 0x14, 0xFF
  25. vertex -91, 174, -56, 3348, 3396, 0xC0, 0x68, 0xDF, 0xFF
  26. vertex -173, 63, -86, 3830, 3604, 0x96, 0x28, 0xC9, 0xFF
  27. vertex -91, 174, 57, 3348, 2668, 0xC8, 0x6C, 0x23, 0xFF
  28. vertex -91, 108, -147, 3492, 4084, 0xC8, 0x42, 0xA4, 0xFF
  29. vertex 0, 166, 120, 3034, 2214, 0x00, 0x66, 0x4A, 0xFF
  30. vertex 0, 205, 0, 3034, 3032, 0x00, 0x7E, 0x00, 0xFF
  31. vertex 92, 108, 148, 2576, 1980, 0x38, 0x43, 0x5C, 0xFF
  32. vertex 92, 174, 57, 2720, 2668, 0x40, 0x68, 0x21, 0xFF
  33. vertex 92, 174, -56, 2720, 3396, 0x38, 0x6C, 0xDD, 0xFF
  34. vertex -204, 0, 0, 0, 3032, 0x82, 0x00, 0x00, 0xFF
  35. vertex -173, 63, -86, -256, 3604, 0x96, 0x28, 0xC9, 0xFF
  36. vertex -173, -62, -86, 194, 3604, 0x96, 0xD8, 0xC9, 0xFF
  37. vertex -91, 0, -182, 0, 4472, 0xC0, 0x00, 0x93, 0xFF
  38. vertex -91, -107, -147, 532, 4084, 0xC8, 0xBD, 0xA4, 0xFF
  39. vertex -91, 0, -182, 4056, 4472, 0xC0, 0x00, 0x93, 0xFF
  40. ccm_seg7_vertex_07012E50: # 0x07012E50 - 0x07012F50
  41. vertex -91, 108, -147, 3492, 4084, 0xC8, 0x42, 0xA4, 0xFF
  42. vertex 0, 166, -119, 3034, 3850, 0x00, 0x66, 0xB6, 0xFF
  43. vertex 0, 63, -194, 3034, 4668, 0x00, 0x27, 0x88, 0xFF
  44. vertex 92, 108, -147, 2576, 4084, 0x3F, 0x40, 0xA8, 0xFF
  45. vertex 92, 174, -56, 2720, 3396, 0x38, 0x6C, 0xDD, 0xFF
  46. vertex 92, 0, -182, 2012, 4472, 0x37, 0x00, 0x8E, 0xFF
  47. vertex -204, 0, 0, 0, 3032, 0x82, 0x00, 0x00, 0xFF
  48. vertex -173, -62, -86, 194, 3604, 0x96, 0xD8, 0xC9, 0xFF
  49. vertex -173, -101, 33, 314, 2820, 0x96, 0xBF, 0x14, 0xFF
  50. vertex -91, -173, -56, 676, 3396, 0xC0, 0x98, 0xDF, 0xFF
  51. vertex -91, -107, -147, 532, 4084, 0xC8, 0xBD, 0xA4, 0xFF
  52. vertex -91, -173, 57, 676, 2668, 0xC8, 0x94, 0x23, 0xFF
  53. vertex 0, -62, -194, 990, 4668, 0x00, 0xD9, 0x88, 0xFF
  54. vertex 0, -165, -119, 990, 3850, 0x00, 0x9A, 0xB6, 0xFF
  55. vertex 92, -107, -147, 1448, 4084, 0x3F, 0xC0, 0xA8, 0xFF
  56. vertex 92, -173, -56, 1304, 3396, 0x38, 0x94, 0xDD, 0xFF
  57. ccm_seg7_vertex_07012F50: # 0x07012F50 - 0x07013050
  58. vertex -204, 0, 0, 0, 3032, 0x82, 0x00, 0x00, 0xFF
  59. vertex -173, -101, 33, 314, 2820, 0x96, 0xBF, 0x14, 0xFF
  60. vertex -173, 0, 108, 0, 2312, 0x96, 0x00, 0x44, 0xFF
  61. vertex -91, -107, 148, 532, 1980, 0xC1, 0xC0, 0x58, 0xFF
  62. vertex -91, -173, 57, 676, 2668, 0xC8, 0x94, 0x23, 0xFF
  63. vertex -91, 0, 183, 0, 1592, 0xC8, 0x00, 0x71, 0xFF
  64. vertex 0, -204, 0, 990, 3032, 0x00, 0x82, 0x00, 0xFF
  65. vertex 0, -165, 120, 990, 2214, 0x00, 0x9A, 0x4A, 0xFF
  66. vertex 92, -173, 57, 1304, 2668, 0x40, 0x98, 0x21, 0xFF
  67. vertex 92, -173, -56, 1304, 3396, 0x38, 0x94, 0xDD, 0xFF
  68. vertex 92, -107, 148, 1448, 1980, 0x37, 0xBD, 0x5C, 0xFF
  69. vertex 205, 0, 0, 2012, 3032, 0x7E, 0x00, 0x00, 0xFF
  70. vertex 174, 0, -107, 2012, 3752, 0x6A, 0x00, 0xBC, 0xFF
  71. vertex 174, 102, -32, 2358, 3244, 0x6A, 0x41, 0xEB, 0xFF
  72. vertex 92, 108, -147, 2576, 4084, 0x3F, 0x40, 0xA8, 0xFF
  73. vertex 92, 0, -182, 2012, 4472, 0x37, 0x00, 0x8E, 0xFF
  74. ccm_seg7_vertex_07013050: # 0x07013050 - 0x07013150
  75. vertex 174, 102, -32, 2358, 3244, 0x6A, 0x41, 0xEB, 0xFF
  76. vertex 92, 108, -147, 2576, 4084, 0x3F, 0x40, 0xA8, 0xFF
  77. vertex 92, 174, -56, 2720, 3396, 0x38, 0x6C, 0xDD, 0xFF
  78. vertex 92, 0, -182, -264, 390, 0x37, 0x00, 0x8E, 0xFF
  79. vertex 0, -62, -194, 802, 1062, 0x00, 0xD9, 0x88, 0xFF
  80. vertex 0, 63, -194, -8, -50, 0x00, 0x27, 0x88, 0xFF
  81. vertex -91, 0, -182, 1038, 620, 0xC0, 0x00, 0x93, 0xFF
  82. vertex 0, -62, -194, 990, 4668, 0x00, 0xD9, 0x88, 0xFF
  83. vertex -91, -107, -147, 532, 4084, 0xC8, 0xBD, 0xA4, 0xFF
  84. vertex -91, 0, -182, 0, 4472, 0xC0, 0x00, 0x93, 0xFF
  85. vertex 0, 63, -194, 3034, 4668, 0x00, 0x27, 0x88, 0xFF
  86. vertex -91, 0, -182, 4056, 4472, 0xC0, 0x00, 0x93, 0xFF
  87. vertex -91, 108, -147, 3492, 4084, 0xC8, 0x42, 0xA4, 0xFF
  88. vertex 205, 0, 0, 2012, 3032, 0x7E, 0x00, 0x00, 0xFF
  89. vertex 174, 63, 87, 2238, 2460, 0x6A, 0x28, 0x37, 0xFF
  90. vertex 92, 174, 57, 2720, 2668, 0x40, 0x68, 0x21, 0xFF
  91. ccm_seg7_vertex_07013150: # 0x07013150 - 0x07013250
  92. vertex 174, 63, 87, 2238, 2460, 0x6A, 0x28, 0x37, 0xFF
  93. vertex 92, 174, 57, 2720, 2668, 0x40, 0x68, 0x21, 0xFF
  94. vertex 92, 108, 148, 2576, 1980, 0x38, 0x43, 0x5C, 0xFF
  95. vertex 92, 174, -56, 2720, 3396, 0x38, 0x6C, 0xDD, 0xFF
  96. vertex 0, 166, -119, 3034, 3850, 0x00, 0x66, 0xB6, 0xFF
  97. vertex 0, 205, 0, 3034, 3032, 0x00, 0x7E, 0x00, 0xFF
  98. vertex -91, 174, -56, 3348, 3396, 0xC0, 0x68, 0xDF, 0xFF
  99. vertex -91, 108, -147, 3492, 4084, 0xC8, 0x42, 0xA4, 0xFF
  100. vertex -91, 174, 57, 3348, 2668, 0xC8, 0x6C, 0x23, 0xFF
  101. vertex 205, 0, 0, 2012, 3032, 0x7E, 0x00, 0x00, 0xFF
  102. vertex 174, -62, 87, 1786, 2460, 0x6A, 0xD8, 0x37, 0xFF
  103. vertex 92, 0, 183, 2012, 1592, 0x3F, 0x00, 0x6D, 0xFF
  104. vertex 92, -107, 148, 1448, 1980, 0x37, 0xBD, 0x5C, 0xFF
  105. vertex 0, 166, 120, 3034, 2214, 0x00, 0x66, 0x4A, 0xFF
  106. vertex 0, 63, 195, 3034, 1396, 0x00, 0x27, 0x78, 0xFF
  107. vertex -91, 108, 148, 3492, 1980, 0xC0, 0x40, 0x58, 0xFF
  108. ccm_seg7_vertex_07013250: # 0x07013250 - 0x07013350
  109. vertex 0, 63, 195, 3034, 1396, 0x00, 0x27, 0x78, 0xFF
  110. vertex -91, 108, 148, 3492, 1980, 0xC0, 0x40, 0x58, 0xFF
  111. vertex -91, 0, 183, 4056, 1592, 0xC8, 0x00, 0x71, 0xFF
  112. vertex 205, 0, 0, 2012, 3032, 0x7E, 0x00, 0x00, 0xFF
  113. vertex 174, -62, 87, 1786, 2460, 0x6A, 0xD8, 0x37, 0xFF
  114. vertex 174, -101, -32, 1666, 3244, 0x6A, 0xBF, 0xEC, 0xFF
  115. vertex 92, -107, 148, 1448, 1980, 0x37, 0xBD, 0x5C, 0xFF
  116. vertex 92, -173, 57, 1304, 2668, 0x40, 0x98, 0x21, 0xFF
  117. vertex 92, -173, -56, 1304, 3396, 0x38, 0x94, 0xDD, 0xFF
  118. vertex 0, -62, 195, 990, 1396, 0x00, 0xD9, 0x78, 0xFF
  119. vertex 0, -165, 120, 990, 2214, 0x00, 0x9A, 0x4A, 0xFF
  120. vertex -91, -107, 148, 532, 1980, 0xC1, 0xC0, 0x58, 0xFF
  121. vertex -91, 0, 183, 0, 1592, 0xC8, 0x00, 0x71, 0xFF
  122. vertex -91, -173, 57, 676, 2668, 0xC8, 0x94, 0x23, 0xFF
  123. vertex 174, 0, -107, 2012, 3752, 0x6A, 0x00, 0xBC, 0xFF
  124. vertex 92, -107, -147, 1448, 4084, 0x3F, 0xC0, 0xA8, 0xFF
  125. ccm_seg7_vertex_07013350: # 0x07013350 - 0x070133E0
  126. vertex 0, -165, -119, 990, 3850, 0x00, 0x9A, 0xB6, 0xFF
  127. vertex -91, -173, -56, 676, 3396, 0xC0, 0x98, 0xDF, 0xFF
  128. vertex -91, -107, -147, 532, 4084, 0xC8, 0xBD, 0xA4, 0xFF
  129. vertex 174, 0, -107, 2012, 3752, 0x6A, 0x00, 0xBC, 0xFF
  130. vertex 92, -107, -147, 1448, 4084, 0x3F, 0xC0, 0xA8, 0xFF
  131. vertex 92, 0, -182, 2012, 4472, 0x37, 0x00, 0x8E, 0xFF
  132. vertex 92, -173, -56, 1304, 3396, 0x38, 0x94, 0xDD, 0xFF
  133. vertex 0, -204, 0, 990, 3032, 0x00, 0x82, 0x00, 0xFF
  134. vertex -91, -173, 57, 676, 2668, 0xC8, 0x94, 0x23, 0xFF
  135. ccm_seg7_dl_070133E0: # 0x070133E0 - 0x070136D0
  136. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07011958
  137. gsDPLoadSync
  138. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  139. gsSPLight ccm_seg7_light_07012C40, 1
  140. gsSPLight ccm_seg7_light_07012C38, 2
  141. gsSPVertex ccm_seg7_vertex_07012C50, 16, 0
  142. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  143. gsSP2Triangles 4, 6, 5, 0x0, 4, 7, 6, 0x0
  144. gsSP2Triangles 5, 6, 8, 0x0, 9, 10, 11, 0x0
  145. gsSP2Triangles 10, 12, 11, 0x0, 13, 2, 14, 0x0
  146. gsSP1Triangle 3, 5, 15, 0x0
  147. gsSPVertex ccm_seg7_vertex_07012D50, 16, 0
  148. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  149. gsSP2Triangles 2, 1, 4, 0x0, 3, 5, 6, 0x0
  150. gsSP2Triangles 5, 7, 8, 0x0, 5, 8, 6, 0x0
  151. gsSP2Triangles 6, 8, 9, 0x0, 10, 11, 12, 0x0
  152. gsSP2Triangles 11, 13, 12, 0x0, 12, 13, 14, 0x0
  153. gsSP1Triangle 2, 4, 15, 0x0
  154. gsSPVertex ccm_seg7_vertex_07012E50, 16, 0
  155. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  156. gsSP2Triangles 1, 4, 3, 0x0, 2, 3, 5, 0x0
  157. gsSP2Triangles 6, 7, 8, 0x0, 7, 9, 8, 0x0
  158. gsSP2Triangles 7, 10, 9, 0x0, 8, 9, 11, 0x0
  159. gsSP2Triangles 10, 12, 13, 0x0, 12, 14, 13, 0x0
  160. gsSP2Triangles 12, 5, 14, 0x0, 13, 14, 15, 0x0
  161. gsSPVertex ccm_seg7_vertex_07012F50, 16, 0
  162. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  163. gsSP2Triangles 1, 4, 3, 0x0, 2, 3, 5, 0x0
  164. gsSP2Triangles 4, 6, 7, 0x0, 6, 8, 7, 0x0
  165. gsSP2Triangles 6, 9, 8, 0x0, 7, 8, 10, 0x0
  166. gsSP2Triangles 11, 12, 13, 0x0, 12, 14, 13, 0x0
  167. gsSP1Triangle 12, 15, 14, 0x0
  168. gsSPVertex ccm_seg7_vertex_07013050, 16, 0
  169. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  170. gsSP2Triangles 4, 6, 5, 0x0, 7, 8, 9, 0x0
  171. gsSP2Triangles 10, 11, 12, 0x0, 13, 0, 14, 0x0
  172. gsSP2Triangles 0, 15, 14, 0x0, 0, 2, 15, 0x0
  173. gsSPVertex ccm_seg7_vertex_07013150, 16, 0
  174. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  175. gsSP2Triangles 4, 6, 5, 0x0, 4, 7, 6, 0x0
  176. gsSP2Triangles 5, 6, 8, 0x0, 9, 0, 10, 0x0
  177. gsSP2Triangles 0, 11, 10, 0x0, 0, 2, 11, 0x0
  178. gsSP2Triangles 10, 11, 12, 0x0, 2, 13, 14, 0x0
  179. gsSP2Triangles 13, 15, 14, 0x0, 13, 8, 15, 0x0
  180. gsSPVertex ccm_seg7_vertex_07013250, 16, 0
  181. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  182. gsSP2Triangles 4, 6, 7, 0x0, 4, 7, 5, 0x0
  183. gsSP2Triangles 5, 7, 8, 0x0, 6, 9, 10, 0x0
  184. gsSP2Triangles 9, 11, 10, 0x0, 9, 12, 11, 0x0
  185. gsSP2Triangles 10, 11, 13, 0x0, 3, 5, 14, 0x0
  186. gsSP2Triangles 5, 15, 14, 0x0, 5, 8, 15, 0x0
  187. gsSPVertex ccm_seg7_vertex_07013350, 9, 0
  188. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  189. gsSP2Triangles 6, 7, 0, 0x0, 7, 1, 0, 0x0
  190. gsSP1Triangle 7, 8, 1, 0x0
  191. gsSPEndDisplayList
  192. glabel ccm_seg7_dl_070136D0 # 0x070136D0 - 0x07013730
  193. gsDPPipeSync
  194. 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
  195. 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
  196. gsSPTexture -1, -1, 0, 0, 1
  197. gsDPTileSync
  198. 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
  199. gsDPSetTileSize 0, 0, 0, 124, 124
  200. gsSPDisplayList ccm_seg7_dl_070133E0
  201. gsSPTexture -1, -1, 0, 0, 0
  202. gsDPPipeSync
  203. 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
  204. gsSPEndDisplayList