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.

183 lines
10 KiB

6 years ago
  1. hmc_seg7_vertex_070174B0: # 0x070174B0 - 0x070175A0
  2. vertex -6962, 1536, 1408, 7752, 0, 0xFF, 0xFF, 0xFF, 0xFF
  3. vertex -6655, 1089, 691, 0, 4426, 0xFF, 0xFF, 0xFF, 0xFF
  4. vertex -6962, 1275, 1408, 7752, 2568, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex -5411, 509, 77, 8242, 10214, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex -5411, 1536, 77, 8242, 0, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -4582, 1536, 77, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  8. vertex -4582, 1024, 77, 0, 5076, 0xFF, 0xFF, 0xFF, 0xFF
  9. vertex -5718, 1536, 691, 6824, 0, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex -5411, 509, 77, 0, 10214, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex -5718, 919, 691, 6824, 6126, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex -5411, 1536, 77, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  13. vertex -6655, 1536, 691, 9316, 0, 0xFF, 0xFF, 0xFF, 0xFF
  14. vertex -5718, 919, 691, 0, 6126, 0xFF, 0xFF, 0xFF, 0xFF
  15. vertex -6655, 1089, 691, 9316, 4426, 0xFF, 0xFF, 0xFF, 0xFF
  16. vertex -5718, 1536, 691, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  17. hmc_seg7_vertex_070175A0: # 0x070175A0 - 0x07017680
  18. vertex -5096, 2867, -1610, 0, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  19. vertex -5551, 2867, -322, 13254, 5076, 0xFF, 0xFF, 0xFF, 0xFF
  20. vertex -5810, 2867, -486, 13254, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  21. vertex -6962, 1536, 1408, 7752, 0, 0xFF, 0xFF, 0xFF, 0xFF
  22. vertex -6655, 1536, 691, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  23. vertex -6655, 1089, 691, 0, 4426, 0xFF, 0xFF, 0xFF, 0xFF
  24. vertex -4577, 2867, -1280, 0, 8142, 0xFF, 0xFF, 0xFF, 0xFF
  25. vertex -4318, 2867, -1115, 0, 11208, 0xFF, 0xFF, 0xFF, 0xFF
  26. vertex -4483, 2867, -856, 3034, 11208, 0xFF, 0xFF, 0xFF, 0xFF
  27. vertex -4742, 2867, -1021, 3034, 8142, 0xFF, 0xFF, 0xFF, 0xFF
  28. vertex -5441, 2867, -1829, 0, -2076, 0xFF, 0xFF, 0xFF, 0xFF
  29. vertex -5221, 2867, -2175, -4118, -2076, 0xFF, 0xFF, 0xFF, 0xFF
  30. vertex -4098, 2867, -1460, -4118, 11208, 0xFF, 0xFF, 0xFF, 0xFF
  31. vertex -4837, 2867, -1445, 0, 5076, 0xFF, 0xFF, 0xFF, 0xFF
  32. hmc_seg7_vertex_07017680: # 0x07017680 - 0x07017760
  33. vertex -5221, 2867, -2687, 2810, -8908, 0xFF, 0xFF, 0xFF, 0xFF
  34. vertex -3685, 2867, -3199, -9728, 1280, 0xFF, 0xFF, 0xFF, 0xFF
  35. vertex -3685, 2867, -1663, 3202, 9510, 0xFF, 0xFF, 0xFF, 0xFF
  36. vertex -5441, 2867, -1829, 0, -2076, 0xFF, 0xFF, 0xFF, 0xFF
  37. vertex -5763, 2867, -942, 9166, 0, 0xFF, 0xFF, 0xFF, 0xFF
  38. vertex -5936, 2867, -1052, 9166, -2076, 0xFF, 0xFF, 0xFF, 0xFF
  39. vertex -5269, 2867, -1719, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  40. vertex -6344, 2867, -1555, 7122, -8208, 0xFF, 0xFF, 0xFF, 0xFF
  41. vertex -5826, 2867, -1225, 7122, -2076, 0xFF, 0xFF, 0xFF, 0xFF
  42. vertex -6454, 2867, -1382, 9166, -8208, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex -5119, 2867, -47, 13254, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex -5441, 2867, -494, 11210, 5076, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex -5009, 2867, -219, 11210, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex -5551, 2867, -322, 13254, 5076, 0xFF, 0xFF, 0xFF, 0xFF
  47. hmc_seg7_vertex_07017760: # 0x07017760 - 0x07017840
  48. vertex -3685, 3379, -1663, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  49. vertex -4095, 2355, -1458, 4538, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  50. vertex -4095, 3379, -1458, 4538, 0, 0xFF, 0xFF, 0xFF, 0xFF
  51. vertex -3685, 2867, -1663, 3202, 9510, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex -4095, 2867, -1458, 7122, 7160, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex -5221, 2867, -2175, 7122, -6164, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex -5221, 2867, -2687, 2810, -8908, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex -4709, 2867, -3199, -4242, -7340, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex -3685, 2867, -3199, -9728, 1280, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex -5221, 3379, -2175, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex -5221, 2355, -2687, 5078, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  59. vertex -5221, 3379, -2687, 5078, 0, 0xFF, 0xFF, 0xFF, 0xFF
  60. vertex -5221, 2355, -2175, 0, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  61. vertex -3685, 2355, -1663, 0, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  62. hmc_seg7_vertex_07017840: # 0x07017840 - 0x07017900
  63. vertex -5221, 2355, -2687, 10216, 990, 0xFF, 0xFF, 0xFF, 0xFF
  64. vertex -5221, 2355, -2175, 7382, -3262, 0xFF, 0xFF, 0xFF, 0xFF
  65. vertex -4095, 2355, -1458, -5938, -2978, 0xFF, 0xFF, 0xFF, 0xFF
  66. vertex -3685, 2355, -1663, -8206, 990, 0xFF, 0xFF, 0xFF, 0xFF
  67. vertex -4709, 1536, 384, -4118, -12296, 0xFF, 0xFF, 0xFF, 0xFF
  68. vertex -4582, 1536, 77, -7184, -13566, 0xFF, 0xFF, 0xFF, 0xFF
  69. vertex -5411, 1536, 77, -7184, -5292, 0xFF, 0xFF, 0xFF, 0xFF
  70. vertex -5221, 1536, 384, -4118, -7186, 0xFF, 0xFF, 0xFF, 0xFF
  71. vertex -5718, 1536, 691, -1052, -2226, 0xFF, 0xFF, 0xFF, 0xFF
  72. vertex -5733, 1536, 1408, 6100, -2076, 0xFF, 0xFF, 0xFF, 0xFF
  73. vertex -6655, 1536, 691, -1052, 7120, 0xFF, 0xFF, 0xFF, 0xFF
  74. vertex -6962, 1536, 1408, 6100, 10186, 0xFF, 0xFF, 0xFF, 0xFF
  75. hmc_seg7_vertex_07017900: # 0x07017900 - 0x070179F0
  76. vertex -7535, 1331, -1132, 3674, 0, 0xFF, 0xFF, 0xFF, 0xFF
  77. vertex -7156, 1331, -848, -1052, 0, 0xFF, 0xFF, 0xFF, 0xFF
  78. vertex -7156, 1229, -848, -1052, 990, 0xFF, 0xFF, 0xFF, 0xFF
  79. vertex -6046, 1331, -1653, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  80. vertex -6770, 1126, -2687, -11608, 990, 0xFF, 0xFF, 0xFF, 0xFF
  81. vertex -6046, 1126, -1653, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  82. vertex -6770, 1331, -2687, -11608, 0, 0xFF, 0xFF, 0xFF, 0xFF
  83. vertex -5211, 1331, -2687, 10290, 0, 0xFF, 0xFF, 0xFF, 0xFF
  84. vertex -5211, 1331, -1653, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  85. vertex -5211, 1126, -1653, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  86. vertex -5211, 1126, -2687, 10290, 990, 0xFF, 0xFF, 0xFF, 0xFF
  87. vertex -5211, 1331, -1653, 8300, 0, 0xFF, 0xFF, 0xFF, 0xFF
  88. vertex -6046, 1331, -1653, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  89. vertex -6046, 1126, -1653, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  90. vertex -5211, 1126, -1653, 8300, 990, 0xFF, 0xFF, 0xFF, 0xFF
  91. hmc_seg7_vertex_070179F0: # 0x070179F0 - 0x07017AA0
  92. vertex -7156, 1331, -848, 5316, 0, 0xFF, 0xFF, 0xFF, 0xFF
  93. vertex -7261, 1229, -323, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  94. vertex -7156, 1229, -848, 5316, 990, 0xFF, 0xFF, 0xFF, 0xFF
  95. vertex -7535, 1331, -1132, 3674, 0, 0xFF, 0xFF, 0xFF, 0xFF
  96. vertex -7156, 1229, -848, -1052, 990, 0xFF, 0xFF, 0xFF, 0xFF
  97. vertex -7535, 1229, -1132, 3674, 990, 0xFF, 0xFF, 0xFF, 0xFF
  98. vertex -7687, 1331, -261, -3306, 0, 0xFF, 0xFF, 0xFF, 0xFF
  99. vertex -7687, 1229, -261, -3306, 990, 0xFF, 0xFF, 0xFF, 0xFF
  100. vertex -7261, 1229, -323, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  101. vertex -7261, 1331, -323, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  102. vertex -7261, 1331, -323, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  103. hmc_seg7_dl_07017AA0: # 0x07017AA0 - 0x07017C08
  104. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09001000
  105. gsDPLoadSync
  106. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  107. gsSPVertex hmc_seg7_vertex_070174B0, 15, 0
  108. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  109. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  110. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  111. gsSP1Triangle 11, 14, 12, 0x0
  112. gsSPVertex hmc_seg7_vertex_070175A0, 14, 0
  113. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  114. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  115. gsSP2Triangles 7, 10, 11, 0x0, 7, 11, 12, 0x0
  116. gsSP1Triangle 0, 13, 1, 0x0
  117. gsSPVertex hmc_seg7_vertex_07017680, 14, 0
  118. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  119. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 5, 0x0
  120. gsSP2Triangles 7, 5, 9, 0x0, 10, 11, 12, 0x0
  121. gsSP1Triangle 10, 13, 11, 0x0
  122. gsSPVertex hmc_seg7_vertex_07017760, 14, 0
  123. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  124. gsSP2Triangles 3, 5, 6, 0x0, 6, 7, 8, 0x0
  125. gsSP2Triangles 9, 10, 11, 0x0, 9, 12, 10, 0x0
  126. gsSP1Triangle 0, 13, 1, 0x0
  127. gsSPVertex hmc_seg7_vertex_07017840, 12, 0
  128. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  129. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  130. gsSP2Triangles 7, 6, 8, 0x0, 7, 8, 9, 0x0
  131. gsSP2Triangles 9, 8, 10, 0x0, 9, 10, 11, 0x0
  132. gsSPEndDisplayList
  133. hmc_seg7_dl_07017C08: # 0x07017C08 - 0x07017C98
  134. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09003000
  135. gsDPLoadSync
  136. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  137. gsSPVertex hmc_seg7_vertex_07017900, 15, 0
  138. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  139. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  140. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  141. gsSP1Triangle 11, 13, 14, 0x0
  142. gsSPVertex hmc_seg7_vertex_070179F0, 11, 0
  143. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  144. gsSP2Triangles 6, 7, 8, 0x0, 9, 6, 8, 0x0
  145. gsSP1Triangle 0, 10, 1, 0x0
  146. gsSPEndDisplayList
  147. glabel hmc_seg7_dl_07017C98 # 0x07017C98 - 0x07017D70
  148. gsDPPipeSync
  149. gsDPSetCycleType G_CYC_2CYCLE
  150. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2
  151. gsDPSetDepthSource G_ZS_PIXEL
  152. gsDPSetFogColor 0, 0, 0, 255
  153. gsSPFogPosition 960, 1000
  154. gsSPSetGeometryMode G_FOG
  155. 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
  156. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  157. 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
  158. gsSPTexture -1, -1, 0, 0, 1
  159. gsDPTileSync
  160. 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
  161. gsDPSetTileSize 0, 0, 0, 124, 124
  162. gsSPDisplayList hmc_seg7_dl_07017AA0
  163. gsDPTileSync
  164. 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
  165. gsDPSetTileSize 0, 0, 0, 124, 124
  166. gsSPDisplayList hmc_seg7_dl_07017C08
  167. gsSPTexture -1, -1, 0, 0, 0
  168. gsDPPipeSync
  169. gsDPSetCycleType G_CYC_1CYCLE
  170. gsDPSetRenderMode G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2
  171. gsSPClearGeometryMode G_FOG
  172. 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
  173. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  174. gsSPEndDisplayList