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.

240 lines
13 KiB

6 years ago
  1. ccm_seg7_light_0700EA00: # 0x0700EA00 - 0x0700EA08
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ccm_seg7_light_0700EA08: # 0x0700EA08 - 0x0700EA18
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ccm_seg7_light_0700EA18: # 0x0700EA18 - 0x0700EA20
  7. .byte 0x33, 0x33, 0x33, 0x00, 0x33, 0x33, 0x33, 0x00
  8. ccm_seg7_light_0700EA20: # 0x0700EA20 - 0x0700EA30
  9. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ccm_seg7_light_0700EA30: # 0x0700EA30 - 0x0700EA38
  12. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  13. ccm_seg7_light_0700EA38: # 0x0700EA38 - 0x0700EA48
  14. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ccm_seg7_vertex_0700EA48: # 0x0700EA48 - 0x0700EAE8
  17. vertex -116, 100, 541, -3130, 1874, 0x16, 0x7A, 0x17, 0xFF
  18. vertex 573, 100, -99, 2, 1874, 0x16, 0x7A, 0x17, 0xFF
  19. vertex 44, 307, -669, 2, -710, 0x16, 0x7A, 0x17, 0xFF
  20. vertex -611, 307, 9, -3130, -540, 0x19, 0x7A, 0x18, 0xFF
  21. vertex -116, 100, 541, -3130, 1874, 0x19, 0x7A, 0x18, 0xFF
  22. vertex 44, 307, -669, 2, -710, 0x19, 0x7A, 0x18, 0xFF
  23. vertex -176, 565, -440, -1424, 1602, 0x00, 0x7F, 0x00, 0xFF
  24. vertex 524, 565, -137, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  25. vertex 36, 565, -662, -1460, 990, 0x00, 0x7F, 0x00, 0xFF
  26. vertex 299, 565, 71, 0, 1602, 0x00, 0x7F, 0x00, 0xFF
  27. ccm_seg7_vertex_0700EAE8: # 0x0700EAE8 - 0x0700EBD8
  28. vertex 221, -511, 214, 4566, 990, 0x56, 0x00, 0x5D, 0xFF
  29. vertex 289, -378, 151, 5486, -338, 0x56, 0x00, 0x5D, 0xFF
  30. vertex 221, -255, 214, 4566, -1566, 0x56, 0x00, 0x5D, 0xFF
  31. vertex 364, -378, 81, 3442, 0, 0x00, 0x7F, 0x00, 0xFF
  32. vertex 219, -378, 76, 2420, 990, 0x00, 0x7F, 0x00, 0xFF
  33. vertex 289, -378, 151, 2420, 0, 0x00, 0x7F, 0x00, 0xFF
  34. vertex 294, -378, 6, 3442, 990, 0x00, 0x7F, 0x00, 0xFF
  35. vertex -115, -511, 527, 0, 990, 0x56, 0x00, 0x5C, 0xFF
  36. vertex 109, -511, 318, 3034, 990, 0x56, 0x00, 0x5C, 0xFF
  37. vertex -115, 92, 527, 0, -5040, 0x56, 0x00, 0x5C, 0xFF
  38. vertex 109, -255, 318, 3034, -1566, 0x56, 0x00, 0x5C, 0xFF
  39. vertex -115, 92, 527, 0, -5040, 0x56, 0x00, 0x5D, 0xFF
  40. vertex 109, -255, 318, 3034, -1566, 0x56, 0x00, 0x5D, 0xFF
  41. vertex 559, 92, -99, 9166, -5040, 0x56, 0x00, 0x5D, 0xFF
  42. vertex 289, -275, 151, 5486, -1360, 0x56, 0x00, 0x5D, 0xFF
  43. ccm_seg7_vertex_0700EBD8: # 0x0700EBD8 - 0x0700ECB8
  44. vertex 36, -511, -662, -7694, 990, 0x5D, 0x00, 0xAA, 0xFF
  45. vertex 36, 307, -662, -7694, -7186, 0x5D, 0x00, 0xAA, 0xFF
  46. vertex 559, 92, -99, 0, -5040, 0x5D, 0x00, 0xAA, 0xFF
  47. vertex 289, -275, 151, 5486, -1360, 0x56, 0x00, 0x5C, 0xFF
  48. vertex 364, -275, 81, 6508, -1360, 0x56, 0x00, 0x5C, 0xFF
  49. vertex 559, 92, -99, 9166, -5040, 0x56, 0x00, 0x5C, 0xFF
  50. vertex 559, 92, -99, 9166, -5040, 0x56, 0x00, 0x5D, 0xFF
  51. vertex 364, -275, 81, 6508, -1360, 0x56, 0x00, 0x5D, 0xFF
  52. vertex 559, -511, -99, 9166, 990, 0x56, 0x00, 0x5D, 0xFF
  53. vertex 364, -378, 81, 6508, -338, 0x56, 0x00, 0x5D, 0xFF
  54. vertex 364, -378, 81, 6508, -338, 0x56, 0x00, 0x5C, 0xFF
  55. vertex 289, -378, 151, 5486, -338, 0x56, 0x00, 0x5C, 0xFF
  56. vertex 221, -511, 214, 4566, 990, 0x56, 0x00, 0x5C, 0xFF
  57. vertex 221, -511, 214, 4566, 990, 0x56, 0x00, 0x5D, 0xFF
  58. ccm_seg7_vertex_0700ECB8: # 0x0700ECB8 - 0x0700ED98
  59. vertex -115, -511, 527, 0, 990, 0xA3, 0x00, 0x56, 0xFF
  60. vertex -115, 92, 527, 0, -5040, 0xA3, 0x00, 0x56, 0xFF
  61. vertex -603, -511, 2, -7184, 990, 0xA3, 0x00, 0x56, 0xFF
  62. vertex -603, 297, 2, -7184, -7084, 0xA3, 0x00, 0x56, 0xFF
  63. vertex 36, -511, -662, -7694, 990, 0x5D, 0x00, 0xAA, 0xFF
  64. vertex 559, 92, -99, 0, -5040, 0x5D, 0x00, 0xAA, 0xFF
  65. vertex 559, -511, -99, 0, 990, 0x5D, 0x00, 0xAA, 0xFF
  66. vertex -176, 565, -440, -7006, -3494, 0xA3, 0x00, 0x55, 0xFF
  67. vertex -176, 307, -440, -7004, -916, 0xA3, 0x00, 0x55, 0xFF
  68. vertex -10, 237, -258, -4546, -214, 0xA3, 0x00, 0x55, 0xFF
  69. vertex 524, 116, -137, 3030, 990, 0x56, 0x00, 0x5D, 0xFF
  70. vertex 524, 565, -137, 3030, -3494, 0x56, 0x00, 0x5D, 0xFF
  71. vertex 299, 116, 71, 0, 990, 0x56, 0x00, 0x5D, 0xFF
  72. vertex 299, 565, 71, 0, -3494, 0x56, 0x00, 0x5D, 0xFF
  73. ccm_seg7_vertex_0700ED98: # 0x0700ED98 - 0x0700EE38
  74. vertex 36, 307, -662, -7176, -916, 0x5D, 0x00, 0xAA, 0xFF
  75. vertex 524, 565, -137, 0, -3494, 0x5D, 0x00, 0xAA, 0xFF
  76. vertex 524, 116, -137, 0, 990, 0x5D, 0x00, 0xAA, 0xFF
  77. vertex 36, 565, -662, -7176, -3494, 0x5D, 0x00, 0xAA, 0xFF
  78. vertex 299, 116, 71, 0, 990, 0xA4, 0x00, 0x56, 0xFF
  79. vertex 299, 565, 71, 0, -3494, 0xA4, 0x00, 0x56, 0xFF
  80. vertex -10, 237, -258, -4546, -214, 0xA4, 0x00, 0x56, 0xFF
  81. vertex 299, 565, 71, 0, -3494, 0xA3, 0x00, 0x56, 0xFF
  82. vertex -176, 565, -440, -7006, -3494, 0xA3, 0x00, 0x56, 0xFF
  83. vertex -10, 237, -258, -4546, -214, 0xA3, 0x00, 0x56, 0xFF
  84. ccm_seg7_vertex_0700EE38: # 0x0700EE38 - 0x0700EF38
  85. vertex 109, -255, 318, 0, 0, 0x00, 0x81, 0x00, 0xFF
  86. vertex 39, -255, 243, 0, 990, 0x00, 0x81, 0x00, 0xFF
  87. vertex 221, -255, 214, 1500, 0, 0x00, 0x81, 0x00, 0xFF
  88. vertex 219, -378, 76, -1052, -338, 0x5C, 0x00, 0xAA, 0xFF
  89. vertex 219, -275, 76, -1052, -1360, 0x5C, 0x00, 0xAA, 0xFF
  90. vertex 289, -275, 151, 0, -1360, 0x5C, 0x00, 0xAA, 0xFF
  91. vertex 289, -275, 151, 2420, 0, 0x00, 0x81, 0x00, 0xFF
  92. vertex 219, -275, 76, 2420, 990, 0x00, 0x81, 0x00, 0xFF
  93. vertex 364, -275, 81, 3442, 0, 0x00, 0x81, 0x00, 0xFF
  94. vertex 294, -275, 6, 3442, 990, 0x00, 0x81, 0x00, 0xFF
  95. vertex 294, -378, 6, -1052, -338, 0xA4, 0x00, 0x56, 0xFF
  96. vertex 364, -275, 81, 0, -1360, 0xA4, 0x00, 0x56, 0xFF
  97. vertex 294, -275, 6, -1052, -1360, 0xA4, 0x00, 0x56, 0xFF
  98. vertex 39, -255, 243, -1052, -1564, 0x5C, 0x00, 0xAA, 0xFF
  99. vertex 109, -255, 318, 0, -1564, 0x5C, 0x00, 0xAA, 0xFF
  100. vertex 39, -511, 243, -1052, 990, 0x5C, 0x00, 0xAA, 0xFF
  101. ccm_seg7_vertex_0700EF38: # 0x0700EF38 - 0x0700EF98
  102. vertex 39, -255, 243, 0, 990, 0x00, 0x81, 0x00, 0xFF
  103. vertex 152, -255, 139, 1500, 990, 0x00, 0x81, 0x00, 0xFF
  104. vertex 221, -255, 214, 1500, 0, 0x00, 0x81, 0x00, 0xFF
  105. vertex 152, -255, 139, -1052, -1564, 0xA3, 0x00, 0x55, 0xFF
  106. vertex 152, -511, 139, -1052, 990, 0xA3, 0x00, 0x55, 0xFF
  107. vertex 221, -255, 214, 0, -1564, 0xA3, 0x00, 0x55, 0xFF
  108. ccm_seg7_vertex_0700EF98: # 0x0700EF98 - 0x0700F058
  109. vertex 289, -378, 151, 0, -338, 0x5C, 0x00, 0xAA, 0xFF
  110. vertex 219, -378, 76, -1052, -338, 0x5C, 0x00, 0xAA, 0xFF
  111. vertex 289, -275, 151, 0, -1360, 0x5C, 0x00, 0xAA, 0xFF
  112. vertex 294, -378, 6, -1052, -338, 0xA4, 0x00, 0x56, 0xFF
  113. vertex 364, -378, 81, 0, -338, 0xA4, 0x00, 0x56, 0xFF
  114. vertex 364, -275, 81, 0, -1360, 0xA4, 0x00, 0x56, 0xFF
  115. vertex 221, -511, 214, 0, 990, 0xA3, 0x00, 0x55, 0xFF
  116. vertex 221, -255, 214, 0, -1564, 0xA3, 0x00, 0x55, 0xFF
  117. vertex 152, -511, 139, -1052, 990, 0xA3, 0x00, 0x55, 0xFF
  118. vertex 39, -511, 243, -1052, 990, 0x5C, 0x00, 0xAA, 0xFF
  119. vertex 109, -255, 318, 0, -1564, 0x5C, 0x00, 0xAA, 0xFF
  120. vertex 109, -511, 318, 0, 990, 0x5C, 0x00, 0xAA, 0xFF
  121. ccm_seg7_vertex_0700F058: # 0x0700F058 - 0x0700F148
  122. vertex 173, -511, -439, 0, -5654, 0x56, 0x00, 0x5D, 0xFF
  123. vertex -314, -100, 13, 3964, 1050, 0x56, 0x00, 0x5D, 0xFF
  124. vertex -314, -511, 13, -132, 988, 0x56, 0x00, 0x5D, 0xFF
  125. vertex 452, -100, -139, 6612, -3098, 0x00, 0x81, 0x00, 0xFF
  126. vertex -314, -100, 13, 0, 990, 0x00, 0x81, 0x00, 0xFF
  127. vertex 173, -100, -439, 6612, 990, 0x00, 0x81, 0x00, 0xFF
  128. vertex -35, -100, 313, 0, -3098, 0x00, 0x81, 0x00, 0xFF
  129. vertex 452, -511, -139, 0, 990, 0xA4, 0x00, 0x56, 0xFF
  130. vertex 452, -100, -139, 4068, 990, 0xA4, 0x00, 0x56, 0xFF
  131. vertex 173, -100, -439, 4068, -3098, 0xA4, 0x00, 0x56, 0xFF
  132. vertex 173, -511, -439, 0, -3098, 0xA4, 0x00, 0x56, 0xFF
  133. vertex -314, -511, 13, 0, -3098, 0x5C, 0x00, 0xAA, 0xFF
  134. vertex -35, -100, 313, 4068, 990, 0x5C, 0x00, 0xAA, 0xFF
  135. vertex -35, -511, 313, 0, 990, 0x5C, 0x00, 0xAA, 0xFF
  136. vertex -314, -100, 13, 4068, -3098, 0x5C, 0x00, 0xAA, 0xFF
  137. ccm_seg7_vertex_0700F148: # 0x0700F148 - 0x0700F1B8
  138. vertex -314, -501, 13, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  139. vertex 452, -501, -139, 6612, -3098, 0x00, 0x7F, 0x00, 0xFF
  140. vertex 173, -501, -439, 6612, 990, 0x00, 0x7F, 0x00, 0xFF
  141. vertex 173, -511, -439, 0, -5654, 0x56, 0x00, 0x5D, 0xFF
  142. vertex 173, -100, -439, 4068, -5590, 0x56, 0x00, 0x5D, 0xFF
  143. vertex -314, -100, 13, 3964, 1050, 0x56, 0x00, 0x5D, 0xFF
  144. vertex -35, -501, 313, 0, -3098, 0x00, 0x7F, 0x00, 0xFF
  145. ccm_seg7_dl_0700F1B8: # 0x0700F1B8 - 0x0700F210
  146. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008800
  147. gsDPLoadSync
  148. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  149. gsSPLight ccm_seg7_light_0700EA08, 1
  150. gsSPLight ccm_seg7_light_0700EA00, 2
  151. gsSPVertex ccm_seg7_vertex_0700EA48, 10, 0
  152. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  153. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  154. gsSPEndDisplayList
  155. ccm_seg7_dl_0700F210: # 0x0700F210 - 0x0700F3B0
  156. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09005000
  157. gsDPLoadSync
  158. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  159. gsSPVertex ccm_seg7_vertex_0700EAE8, 15, 0
  160. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  161. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  162. gsSP2Triangles 8, 10, 9, 0x0, 11, 12, 13, 0x0
  163. gsSP2Triangles 12, 2, 13, 0x0, 2, 14, 13, 0x0
  164. gsSP1Triangle 14, 2, 1, 0x0
  165. gsSPVertex ccm_seg7_vertex_0700EBD8, 14, 0
  166. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  167. gsSP2Triangles 6, 7, 8, 0x0, 7, 9, 8, 0x0
  168. gsSP2Triangles 10, 11, 12, 0x0, 8, 9, 13, 0x0
  169. gsSPVertex ccm_seg7_vertex_0700ECB8, 14, 0
  170. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  171. gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
  172. gsSP2Triangles 10, 11, 12, 0x0, 11, 13, 12, 0x0
  173. gsSPVertex ccm_seg7_vertex_0700ED98, 10, 0
  174. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  175. gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
  176. gsSPLight ccm_seg7_light_0700EA20, 1
  177. gsSPLight ccm_seg7_light_0700EA18, 2
  178. gsSPVertex ccm_seg7_vertex_0700EE38, 16, 0
  179. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  180. gsSP2Triangles 6, 7, 8, 0x0, 7, 9, 8, 0x0
  181. gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
  182. gsSPVertex ccm_seg7_vertex_0700EF38, 6, 0
  183. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  184. gsSPLight ccm_seg7_light_0700EA38, 1
  185. gsSPLight ccm_seg7_light_0700EA30, 2
  186. gsSPVertex ccm_seg7_vertex_0700EF98, 12, 0
  187. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  188. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  189. gsSPEndDisplayList
  190. ccm_seg7_dl_0700F3B0: # 0x0700F3B0 - 0x0700F440
  191. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000
  192. gsDPLoadSync
  193. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  194. gsSPLight ccm_seg7_light_0700EA20, 1
  195. gsSPLight ccm_seg7_light_0700EA18, 2
  196. gsSPVertex ccm_seg7_vertex_0700F058, 15, 0
  197. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  198. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  199. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  200. gsSP1Triangle 11, 14, 12, 0x0
  201. gsSPVertex ccm_seg7_vertex_0700F148, 7, 0
  202. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  203. gsSP1Triangle 0, 6, 1, 0x0
  204. gsSPEndDisplayList
  205. glabel ccm_seg7_dl_0700F440 # 0x0700F440 - 0x0700F4C0
  206. gsDPPipeSync
  207. 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
  208. gsSPClearGeometryMode G_SHADING_SMOOTH
  209. 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
  210. gsSPTexture -1, -1, 0, 0, 1
  211. gsDPTileSync
  212. 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
  213. gsDPSetTileSize 0, 0, 0, 124, 124
  214. gsSPDisplayList ccm_seg7_dl_0700F1B8
  215. gsSPDisplayList ccm_seg7_dl_0700F210
  216. gsSPDisplayList ccm_seg7_dl_0700F3B0
  217. gsSPTexture -1, -1, 0, 0, 0
  218. gsDPPipeSync
  219. 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
  220. gsSPSetGeometryMode G_SHADING_SMOOTH
  221. gsSPEndDisplayList