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.

188 lines
11 KiB

6 years ago
  1. hmc_seg7_vertex_0701E958: # 0x0701E958 - 0x0701EA58
  2. vertex -1391, -4587, 6251, 6156, 1102, 0xFF, 0xFF, 0xFF, 0xFF
  3. vertex -1822, -4484, 5893, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  4. vertex -1749, -4587, 5893, 536, 1102, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex -1779, 1843, -6545, 16358, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex -1779, 2867, -6545, 16358, 0, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -2830, 2867, -7807, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  8. vertex -2830, 1843, -7807, 0, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  9. vertex -1209, -4484, 5281, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex -851, -4587, 5712, 6156, 1102, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex -1209, -4587, 5353, 536, 1102, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex -815, -4484, 5676, 6156, 0, 0xFF, 0xFF, 0xFF, 0xFF
  13. vertex -1749, -4587, 5893, 9000, 1102, 0xFF, 0xFF, 0xFF, 0xFF
  14. vertex -1822, -4484, 5893, 9568, 0, 0xFF, 0xFF, 0xFF, 0xFF
  15. vertex -4290, -511, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  16. vertex -4290, -511, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  17. vertex -4290, -204, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  18. hmc_seg7_vertex_0701EA58: # 0x0701EA58 - 0x0701EB38
  19. vertex -1391, -4587, 6251, 6156, 1102, 0xFF, 0xFF, 0xFF, 0xFF
  20. vertex -1427, -4484, 6288, 6156, 0, 0xFF, 0xFF, 0xFF, 0xFF
  21. vertex -1822, -4484, 5893, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  22. vertex -1209, -4484, 5281, 3034, 4518, 0xFF, 0xFF, 0xFF, 0xFF
  23. vertex -1822, -4484, 5893, 3034, -4120, 0xFF, 0xFF, 0xFF, 0xFF
  24. vertex -1427, -4484, 6288, -2534, -4120, 0xFF, 0xFF, 0xFF, 0xFF
  25. vertex -815, -4484, 5676, -2534, 4518, 0xFF, 0xFF, 0xFF, 0xFF
  26. vertex -2774, -511, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  27. vertex -4290, -511, -5769, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  28. vertex -4290, -204, -5769, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  29. vertex -2774, -204, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  30. vertex -4290, -511, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  31. vertex -4290, -204, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  32. vertex -4290, -204, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  33. hmc_seg7_vertex_0701EB38: # 0x0701EB38 - 0x0701EC28
  34. vertex -2774, 819, -7285, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  35. vertex -4290, 512, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  36. vertex -2774, 512, -7285, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  37. vertex -2774, -204, -7285, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  38. vertex -4290, -204, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  39. vertex -4290, -511, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  40. vertex -2774, -511, -7285, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  41. vertex -2774, -204, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  42. vertex -2774, -511, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex -2774, -511, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex -2774, -204, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex -2774, 819, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex -2774, 512, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  47. vertex -2774, 512, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  48. vertex -2774, 819, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  49. hmc_seg7_vertex_0701EC28: # 0x0701EC28 - 0x0701ED28
  50. vertex -2774, 1434, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  51. vertex -4290, 1741, -5769, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex -2774, 1741, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex -2774, 819, -7285, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex -4290, 819, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex -4290, 512, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex -4290, 512, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex -4290, 819, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex -2774, 512, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  59. vertex -4290, 512, -5769, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  60. vertex -4290, 819, -5769, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  61. vertex -2774, 819, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  62. vertex -4290, 1434, -5769, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  63. vertex -4290, 1434, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  64. vertex -4290, 1741, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  65. vertex -4290, 1741, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  66. hmc_seg7_vertex_0701ED28: # 0x0701ED28 - 0x0701EDB8
  67. vertex -4290, 1434, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  68. vertex -4290, 1434, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  69. vertex -4290, 1741, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  70. vertex -2774, 1741, -7285, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  71. vertex -2774, 1434, -7285, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  72. vertex -2774, 1741, -5769, 7158, 0, 0xFF, 0xFF, 0xFF, 0xFF
  73. vertex -2774, 1434, -7285, 0, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  74. vertex -2774, 1434, -5769, 7158, 1028, 0xFF, 0xFF, 0xFF, 0xFF
  75. vertex -2774, 1741, -7285, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  76. hmc_seg7_vertex_0701EDB8: # 0x0701EDB8 - 0x0701EEB8
  77. vertex -4477, -4587, 3950, 26110, 990, 0xFF, 0xFF, 0xFF, 0xFF
  78. vertex -4367, -4279, 3245, 23224, 0, 0xFF, 0xFF, 0xFF, 0xFF
  79. vertex -4477, -4587, 3167, 23074, 990, 0xFF, 0xFF, 0xFF, 0xFF
  80. vertex -4367, -4279, 3872, 25992, 0, 0xFF, 0xFF, 0xFF, 0xFF
  81. vertex -3845, -4279, 2723, 19852, 0, 0xFF, 0xFF, 0xFF, 0xFF
  82. vertex -3923, -4587, 2613, 19976, 990, 0xFF, 0xFF, 0xFF, 0xFF
  83. vertex -3219, -4279, 2723, 16964, 0, 0xFF, 0xFF, 0xFF, 0xFF
  84. vertex -3140, -4587, 2613, 16826, 990, 0xFF, 0xFF, 0xFF, 0xFF
  85. vertex -2587, -4587, 3167, 13682, 990, 0xFF, 0xFF, 0xFF, 0xFF
  86. vertex -2696, -4279, 3245, 13534, 0, 0xFF, 0xFF, 0xFF, 0xFF
  87. vertex -2587, -4587, 3950, 10586, 990, 0xFF, 0xFF, 0xFF, 0xFF
  88. vertex -2696, -4279, 3872, 10702, 0, 0xFF, 0xFF, 0xFF, 0xFF
  89. vertex -3219, -4279, 4394, 7418, 0, 0xFF, 0xFF, 0xFF, 0xFF
  90. vertex -3140, -4587, 4503, 7558, 990, 0xFF, 0xFF, 0xFF, 0xFF
  91. vertex -3845, -4279, 4394, 4700, 0, 0xFF, 0xFF, 0xFF, 0xFF
  92. vertex -3923, -4587, 4503, 4570, 990, 0xFF, 0xFF, 0xFF, 0xFF
  93. hmc_seg7_vertex_0701EEB8: # 0x0701EEB8 - 0x0701EF78
  94. vertex -4367, -4279, 3872, 1464, 0, 0xFF, 0xFF, 0xFF, 0xFF
  95. vertex -3923, -4587, 4503, 4570, 990, 0xFF, 0xFF, 0xFF, 0xFF
  96. vertex -3845, -4279, 4394, 4700, 0, 0xFF, 0xFF, 0xFF, 0xFF
  97. vertex -4477, -4587, 3950, 1582, 990, 0xFF, 0xFF, 0xFF, 0xFF
  98. vertex -819, -4279, 5665, -3606, 0, 0xFF, 0xFF, 0xFF, 0xFF
  99. vertex 563, -4279, 5596, -13860, 0, 0xFF, 0xFF, 0xFF, 0xFF
  100. vertex 563, -4535, 5596, -13860, 990, 0xFF, 0xFF, 0xFF, 0xFF
  101. vertex -819, -4535, 5665, -3606, 990, 0xFF, 0xFF, 0xFF, 0xFF
  102. vertex -1437, -4279, 6283, 5110, 0, 0xFF, 0xFF, 0xFF, 0xFF
  103. vertex -1437, -4535, 6283, 5110, 990, 0xFF, 0xFF, 0xFF, 0xFF
  104. vertex -1494, -4279, 7654, 15190, 0, 0xFF, 0xFF, 0xFF, 0xFF
  105. vertex -1494, -4535, 7654, 15190, 990, 0xFF, 0xFF, 0xFF, 0xFF
  106. hmc_seg7_dl_0701EF78: # 0x0701EF78 - 0x0701F0D0
  107. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09001000
  108. gsDPLoadSync
  109. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  110. gsSPVertex hmc_seg7_vertex_0701E958, 16, 0
  111. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  112. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  113. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 9, 0x0
  114. gsSP2Triangles 12, 7, 9, 0x0, 13, 14, 15, 0x0
  115. gsSPVertex hmc_seg7_vertex_0701EA58, 14, 0
  116. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  117. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  118. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  119. gsSPVertex hmc_seg7_vertex_0701EB38, 15, 0
  120. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  121. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  122. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  123. gsSP1Triangle 11, 14, 12, 0x0
  124. gsSPVertex hmc_seg7_vertex_0701EC28, 16, 0
  125. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  126. gsSP2Triangles 6, 4, 7, 0x0, 6, 5, 4, 0x0
  127. gsSP2Triangles 8, 9, 10, 0x0, 8, 10, 11, 0x0
  128. gsSP2Triangles 0, 12, 1, 0x0, 13, 14, 15, 0x0
  129. gsSPVertex hmc_seg7_vertex_0701ED28, 9, 0
  130. gsSP2Triangles 0, 1, 2, 0x0, 3, 1, 4, 0x0
  131. gsSP2Triangles 3, 2, 1, 0x0, 5, 6, 7, 0x0
  132. gsSP1Triangle 5, 8, 6, 0x0
  133. gsSPEndDisplayList
  134. hmc_seg7_dl_0701F0D0: # 0x0701F0D0 - 0x0701F1B0
  135. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09003000
  136. gsDPLoadSync
  137. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  138. gsSPVertex hmc_seg7_vertex_0701EDB8, 16, 0
  139. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  140. gsSP2Triangles 2, 1, 4, 0x0, 2, 4, 5, 0x0
  141. gsSP2Triangles 5, 4, 6, 0x0, 5, 6, 7, 0x0
  142. gsSP2Triangles 7, 6, 8, 0x0, 6, 9, 8, 0x0
  143. gsSP2Triangles 9, 10, 8, 0x0, 9, 11, 10, 0x0
  144. gsSP2Triangles 12, 13, 11, 0x0, 13, 10, 11, 0x0
  145. gsSP2Triangles 13, 14, 15, 0x0, 13, 12, 14, 0x0
  146. gsSPVertex hmc_seg7_vertex_0701EEB8, 12, 0
  147. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  148. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  149. gsSP2Triangles 7, 8, 4, 0x0, 7, 9, 8, 0x0
  150. gsSP2Triangles 9, 10, 8, 0x0, 9, 11, 10, 0x0
  151. gsSPEndDisplayList
  152. glabel hmc_seg7_dl_0701F1B0 # 0x0701F1B0 - 0x0701F288
  153. gsDPPipeSync
  154. gsDPSetCycleType G_CYC_2CYCLE
  155. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2
  156. gsDPSetDepthSource G_ZS_PIXEL
  157. gsDPSetFogColor 0, 0, 0, 255
  158. gsSPFogPosition 960, 1000
  159. gsSPSetGeometryMode G_FOG
  160. gsDPSetCombineMode G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_COMBINED, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_COMBINED
  161. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  162. 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
  163. gsSPTexture -1, -1, 0, 0, 1
  164. gsDPTileSync
  165. 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
  166. gsDPSetTileSize 0, 0, 0, 124, 124
  167. gsSPDisplayList hmc_seg7_dl_0701EF78
  168. gsDPTileSync
  169. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  170. gsDPSetTileSize 0, 0, 0, 124, 124
  171. gsSPDisplayList hmc_seg7_dl_0701F0D0
  172. gsSPTexture -1, -1, 0, 0, 0
  173. gsDPPipeSync
  174. gsDPSetCycleType G_CYC_1CYCLE
  175. gsDPSetRenderMode G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2
  176. gsSPClearGeometryMode G_FOG
  177. 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
  178. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  179. gsSPEndDisplayList