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.

207 lines
11 KiB

6 years ago
  1. ccm_seg7_light_0701FEE0: # 0x0701FEE0 - 0x0701FEE8
  2. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  3. ccm_seg7_light_0701FEE8: # 0x0701FEE8 - 0x0701FEF8
  4. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ccm_seg7_light_0701FEF8: # 0x0701FEF8 - 0x0701FF00
  7. .byte 0x3F, 0x3F, 0x3F, 0x00, 0x3F, 0x3F, 0x3F, 0x00
  8. ccm_seg7_light_0701FF00: # 0x0701FF00 - 0x0701FF10
  9. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ccm_seg7_vertex_0701FF10: # 0x0701FF10 - 0x0701FF70
  12. vertex 5124, 0, -8124, 224, 479, 0x00, 0x00, 0x7F, 0xFF
  13. vertex 5124, -8191, -8124, 479, 479, 0x00, 0x00, 0x7F, 0xFF
  14. vertex 8308, 0, -8124, 223, 0, 0x00, 0x00, 0x7F, 0xFF
  15. vertex 8308, -8191, -8124, 479, 0, 0x00, 0x00, 0x7F, 0xFF
  16. vertex 8308, 8192, -8124, 0, 0, 0x00, 0x00, 0x7F, 0xFF
  17. vertex 5124, 8192, -8124, 0, 479, 0x00, 0x00, 0x7F, 0xFF
  18. ccm_seg7_vertex_0701FF70: # 0x0701FF70 - 0x07020070
  19. vertex -6061, -5830, -3601, 2012, 3948, 0x00, 0x82, 0x0E, 0xFF
  20. vertex -5784, -5830, -3601, 3034, 3948, 0x00, 0x82, 0x0E, 0xFF
  21. vertex -5784, -5799, -3326, 3034, 4970, 0x00, 0x82, 0x0E, 0xFF
  22. vertex -5784, -5845, -6133, -2074, -28, 0x00, 0x00, 0x81, 0xFF
  23. vertex -7167, -6111, -6133, 3034, 990, 0x00, 0x00, 0x81, 0xFF
  24. vertex -7167, -5845, -6133, 3034, 0, 0x00, 0x00, 0x81, 0xFF
  25. vertex -5784, -6111, -6133, -2074, 992, 0x00, 0x00, 0x81, 0xFF
  26. vertex -7167, -5799, -3326, -2074, 4970, 0x00, 0x82, 0x0E, 0xFF
  27. vertex -7167, -5830, -3601, -2074, 3948, 0x00, 0x82, 0x0E, 0xFF
  28. vertex -6890, -5830, -3601, -1052, 3948, 0x00, 0x82, 0x0E, 0xFF
  29. vertex -6890, -5830, -3601, -1052, 3948, 0x00, 0x82, 0x0D, 0xFF
  30. vertex -6337, -5860, -3876, 990, 2926, 0x00, 0x82, 0x0D, 0xFF
  31. vertex -6061, -5830, -3601, 2012, 3948, 0x00, 0x82, 0x0D, 0xFF
  32. vertex -6614, -5860, -3876, 0, 2926, 0x00, 0x82, 0x0D, 0xFF
  33. vertex -6890, -5860, -3876, -1052, 2926, 0x00, 0x82, 0x0D, 0xFF
  34. vertex -6061, -5860, -3876, 2012, 2926, 0x00, 0x82, 0x0D, 0xFF
  35. ccm_seg7_vertex_07020070: # 0x07020070 - 0x07020170
  36. vertex -6614, -5860, -3876, 0, 2926, 0x00, 0x82, 0x0E, 0xFF
  37. vertex -6337, -6074, -5800, 990, -4226, 0x00, 0x82, 0x0E, 0xFF
  38. vertex -6337, -5860, -3876, 990, 2926, 0x00, 0x82, 0x0E, 0xFF
  39. vertex -6614, -6074, -5800, 0, -4226, 0x00, 0x82, 0x0E, 0xFF
  40. vertex -6614, -6074, -5800, 0, -4226, 0x00, 0x82, 0x0D, 0xFF
  41. vertex -7166, -6074, -5800, -2072, -4226, 0x00, 0x82, 0x0D, 0xFF
  42. vertex -7167, -6112, -6143, -2074, -5502, 0x00, 0x82, 0x0D, 0xFF
  43. vertex -5784, -6112, -6143, 3036, -5502, 0x00, 0x82, 0x0D, 0xFF
  44. vertex -6337, -6074, -5800, 990, -4226, 0x00, 0x82, 0x0D, 0xFF
  45. vertex -5784, -6074, -5800, 3036, -4226, 0x00, 0x82, 0x0D, 0xFF
  46. vertex -5785, -5523, -3326, 3034, 5076, 0x00, 0x7E, 0xF3, 0xFF
  47. vertex -5785, -5553, -3601, 3034, 4054, 0x00, 0x7E, 0xF3, 0xFF
  48. vertex -6061, -5553, -3601, 2012, 4054, 0x00, 0x7E, 0xF3, 0xFF
  49. vertex -6338, -5584, -3876, 990, 0, 0x7E, 0x00, 0x00, 0xFF
  50. vertex -6337, -6074, -5800, 8144, 990, 0x7E, 0x00, 0x00, 0xFF
  51. vertex -6338, -5798, -5800, 8144, 0, 0x7E, 0x00, 0x00, 0xFF
  52. ccm_seg7_vertex_07020170: # 0x07020170 - 0x07020270
  53. vertex -5785, -5523, -3326, 3034, 5076, 0x00, 0x7E, 0xF3, 0xFF
  54. vertex -6061, -5553, -3601, 2012, 4054, 0x00, 0x7E, 0xF3, 0xFF
  55. vertex -6891, -5553, -3601, -1052, 4054, 0x00, 0x7E, 0xF3, 0xFF
  56. vertex -6061, -5553, -3601, 2012, 4054, 0x00, 0x7E, 0xF2, 0xFF
  57. vertex -6338, -5584, -3876, 990, 3032, 0x00, 0x7E, 0xF2, 0xFF
  58. vertex -6891, -5553, -3601, -1052, 4054, 0x00, 0x7E, 0xF2, 0xFF
  59. vertex -6338, -5798, -5800, 990, -4120, 0x00, 0x7E, 0xF2, 0xFF
  60. vertex -6614, -5798, -5800, 0, -4120, 0x00, 0x7E, 0xF2, 0xFF
  61. vertex -6614, -5584, -3876, 0, 3032, 0x00, 0x7E, 0xF2, 0xFF
  62. vertex -6061, -5584, -3876, 2012, 3032, 0x00, 0x7E, 0xF2, 0xFF
  63. vertex -6891, -5584, -3876, -1052, 3032, 0x00, 0x7E, 0xF2, 0xFF
  64. vertex -7167, -5553, -3601, -2074, 4054, 0x00, 0x7E, 0xF3, 0xFF
  65. vertex -7167, -5523, -3326, -2074, 5076, 0x00, 0x7E, 0xF3, 0xFF
  66. vertex -6338, -5584, -3876, 990, 0, 0x7E, 0x00, 0x00, 0xFF
  67. vertex -6337, -5860, -3876, 990, 990, 0x7E, 0x00, 0x00, 0xFF
  68. vertex -6337, -6074, -5800, 8144, 990, 0x7E, 0x00, 0x00, 0xFF
  69. ccm_seg7_vertex_07020270: # 0x07020270 - 0x07020360
  70. vertex -6338, -5798, -5800, 990, 0, 0x00, 0x00, 0x7F, 0xFF
  71. vertex -5784, -6074, -5800, 3034, 990, 0x00, 0x00, 0x7F, 0xFF
  72. vertex -5784, -5798, -5800, 3034, -30, 0x00, 0x00, 0x7F, 0xFF
  73. vertex -6061, -5553, -3601, 0, 0, 0x7F, 0x00, 0x00, 0xFF
  74. vertex -6061, -5860, -3876, 990, 990, 0x7F, 0x00, 0x00, 0xFF
  75. vertex -6061, -5584, -3876, 990, 0, 0x7F, 0x00, 0x00, 0xFF
  76. vertex -6061, -5830, -3601, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  77. vertex -6891, -5584, -3876, 0, 0, 0x82, 0x00, 0x00, 0xFF
  78. vertex -6890, -5860, -3876, 0, 990, 0x82, 0x00, 0x00, 0xFF
  79. vertex -6890, -5830, -3601, 990, 990, 0x82, 0x00, 0x00, 0xFF
  80. vertex -6891, -5553, -3601, 990, 0, 0x82, 0x00, 0x00, 0xFF
  81. vertex -6614, -5798, -5800, -7184, -30, 0x81, 0x00, 0x00, 0xFF
  82. vertex -6614, -6074, -5800, -7184, 990, 0x81, 0x00, 0x00, 0xFF
  83. vertex -6614, -5860, -3876, 0, 990, 0x81, 0x00, 0x00, 0xFF
  84. vertex -6614, -5584, -3876, 0, -30, 0x81, 0x00, 0x00, 0xFF
  85. ccm_seg7_vertex_07020360: # 0x07020360 - 0x07020450
  86. vertex -6614, -5584, -3876, 0, 0, 0x00, 0x00, 0x81, 0xFF
  87. vertex -6614, -5860, -3876, 0, 990, 0x00, 0x00, 0x81, 0xFF
  88. vertex -6890, -5860, -3876, 990, 990, 0x00, 0x00, 0x81, 0xFF
  89. vertex -6338, -5798, -5800, 990, 0, 0x00, 0x00, 0x7F, 0xFF
  90. vertex -6337, -6074, -5800, 990, 990, 0x00, 0x00, 0x7F, 0xFF
  91. vertex -5784, -6074, -5800, 3034, 990, 0x00, 0x00, 0x7F, 0xFF
  92. vertex -7167, -5798, -5800, -2074, -34, 0x00, 0x00, 0x7F, 0xFF
  93. vertex -7166, -6074, -5800, -2074, 988, 0x00, 0x00, 0x7F, 0xFF
  94. vertex -6614, -6074, -5800, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  95. vertex -6614, -5798, -5800, 0, 0, 0x00, 0x00, 0x7F, 0xFF
  96. vertex -6891, -5553, -3601, 0, 0, 0x00, 0x00, 0x81, 0xFF
  97. vertex -7167, -5830, -3601, 990, 990, 0x00, 0x00, 0x81, 0xFF
  98. vertex -7167, -5553, -3601, 990, 0, 0x00, 0x00, 0x81, 0xFF
  99. vertex -6890, -5830, -3601, 0, 990, 0x00, 0x00, 0x81, 0xFF
  100. vertex -6891, -5584, -3876, 990, 0, 0x00, 0x00, 0x81, 0xFF
  101. ccm_seg7_vertex_07020450: # 0x07020450 - 0x07020540
  102. vertex -7167, -5836, -6143, -2074, -5398, 0x00, 0x7E, 0xF3, 0xFF
  103. vertex -7167, -5798, -5800, -2074, -4120, 0x00, 0x7E, 0xF3, 0xFF
  104. vertex -6614, -5798, -5800, 0, -4120, 0x00, 0x7E, 0xF3, 0xFF
  105. vertex -6061, -5584, -3876, 0, 0, 0x00, 0x00, 0x81, 0xFF
  106. vertex -6337, -5860, -3876, 990, 990, 0x00, 0x00, 0x81, 0xFF
  107. vertex -6338, -5584, -3876, 990, 0, 0x00, 0x00, 0x81, 0xFF
  108. vertex -6061, -5860, -3876, 0, 990, 0x00, 0x00, 0x81, 0xFF
  109. vertex -5785, -5553, -3601, 0, 0, 0x00, 0x00, 0x81, 0xFF
  110. vertex -6061, -5830, -3601, 990, 990, 0x00, 0x00, 0x81, 0xFF
  111. vertex -6061, -5553, -3601, 990, 0, 0x00, 0x00, 0x81, 0xFF
  112. vertex -5784, -5830, -3601, 0, 990, 0x00, 0x00, 0x81, 0xFF
  113. vertex -7167, -5534, -3337, -2074, 0, 0x00, 0x00, 0x7F, 0xFF
  114. vertex -7167, -5800, -3337, -2074, 990, 0x00, 0x00, 0x7F, 0xFF
  115. vertex -5784, -5800, -3337, 3034, 992, 0x00, 0x00, 0x7F, 0xFF
  116. vertex -5785, -5534, -3337, 3034, -28, 0x00, 0x00, 0x7F, 0xFF
  117. ccm_seg7_vertex_07020540: # 0x07020540 - 0x07020590
  118. vertex -6338, -5798, -5800, 990, -4120, 0x00, 0x7E, 0xF3, 0xFF
  119. vertex -5784, -5798, -5800, 3034, -4120, 0x00, 0x7E, 0xF3, 0xFF
  120. vertex -5784, -5836, -6143, 3034, -5398, 0x00, 0x7E, 0xF3, 0xFF
  121. vertex -7167, -5836, -6143, -2074, -5398, 0x00, 0x7E, 0xF3, 0xFF
  122. vertex -6614, -5798, -5800, 0, -4120, 0x00, 0x7E, 0xF3, 0xFF
  123. ccm_seg7_dl_07020590: # 0x07020590 - 0x070205E8
  124. gsDPSetTextureImage G_IM_FMT_IA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07003900
  125. gsDPLoadSync
  126. gsDPLoadBlock 7, 0, 0, 0x0FF, 0x200
  127. gsSPLight ccm_seg7_light_0701FEE8, 1
  128. gsSPLight ccm_seg7_light_0701FEE0, 2
  129. gsSPVertex ccm_seg7_vertex_0701FF10, 6, 0
  130. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  131. gsSP2Triangles 0, 2, 4, 0x0, 5, 0, 4, 0x0
  132. gsSPEndDisplayList
  133. ccm_seg7_dl_070205E8: # 0x070205E8 - 0x070207F0
  134. gsDPSetTextureImage G_IM_FMT_IA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07003B00
  135. gsDPLoadSync
  136. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  137. gsSPLight ccm_seg7_light_0701FF00, 1
  138. gsSPLight ccm_seg7_light_0701FEF8, 2
  139. gsSPVertex ccm_seg7_vertex_0701FF70, 16, 0
  140. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  141. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  142. gsSP2Triangles 7, 9, 2, 0x0, 10, 11, 12, 0x0
  143. gsSP2Triangles 10, 13, 11, 0x0, 10, 14, 13, 0x0
  144. gsSP2Triangles 9, 0, 2, 0x0, 11, 15, 12, 0x0
  145. gsSPVertex ccm_seg7_vertex_07020070, 16, 0
  146. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  147. gsSP2Triangles 4, 5, 6, 0x0, 7, 4, 6, 0x0
  148. gsSP2Triangles 7, 8, 4, 0x0, 7, 9, 8, 0x0
  149. gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
  150. gsSPVertex ccm_seg7_vertex_07020170, 16, 0
  151. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  152. gsSP2Triangles 4, 6, 7, 0x0, 4, 7, 8, 0x0
  153. gsSP2Triangles 4, 8, 5, 0x0, 3, 9, 4, 0x0
  154. gsSP2Triangles 8, 10, 5, 0x0, 2, 11, 12, 0x0
  155. gsSP2Triangles 0, 2, 12, 0x0, 13, 14, 15, 0x0
  156. gsSPVertex ccm_seg7_vertex_07020270, 15, 0
  157. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  158. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  159. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  160. gsSP1Triangle 11, 13, 14, 0x0
  161. gsSPVertex ccm_seg7_vertex_07020360, 15, 0
  162. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  163. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  164. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  165. gsSP1Triangle 0, 2, 14, 0x0
  166. gsSPVertex ccm_seg7_vertex_07020450, 15, 0
  167. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  168. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  169. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  170. gsSP1Triangle 11, 13, 14, 0x0
  171. gsSPVertex ccm_seg7_vertex_07020540, 5, 0
  172. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  173. gsSP1Triangle 3, 4, 0, 0x0
  174. gsSPEndDisplayList
  175. glabel ccm_seg7_dl_070207F0 # 0x070207F0 - 0x07020880
  176. gsDPPipeSync
  177. gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_SHADE, G_ACMUX_0
  178. gsSPClearGeometryMode G_CULL_BACK | G_SHADING_SMOOTH
  179. gsDPSetTile G_IM_FMT_IA, 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
  180. gsSPTexture -1, -1, 0, 0, 1
  181. gsDPTileSync
  182. gsDPSetTile G_IM_FMT_IA, G_IM_SIZ_16b, 4, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 4, G_TX_NOLOD
  183. gsDPSetTileSize 0, 0, 0, 60, 60
  184. gsSPDisplayList ccm_seg7_dl_07020590
  185. gsDPTileSync
  186. gsDPSetTile G_IM_FMT_IA, 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
  187. gsDPSetTileSize 0, 0, 0, 124, 124
  188. gsSPDisplayList ccm_seg7_dl_070205E8
  189. gsSPTexture -1, -1, 0, 0, 0
  190. gsDPPipeSync
  191. 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
  192. gsSPSetGeometryMode G_CULL_BACK | G_SHADING_SMOOTH
  193. gsSPEndDisplayList