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.

246 lines
13 KiB

6 years ago
  1. wf_seg7_light_0700B028: # 0x0700B028 - 0x0700B030
  2. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  3. wf_seg7_light_0700B030: # 0x0700B030 - 0x0700B040
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. wf_seg7_vertex_0700B040: # 0x0700B040 - 0x0700B070
  7. vertex -511, 256, 2048, 310, 134, 0x43, 0x65, 0xDF, 0xFF
  8. vertex -127, 0, 2048, 0, 990, 0x43, 0x65, 0xDF, 0xFF
  9. vertex -511, 0, 1280, 1682, 990, 0x43, 0x65, 0xDF, 0xFF
  10. wf_seg7_vertex_0700B070: # 0x0700B070 - 0x0700B160
  11. vertex 0, -255, -2303, 990, 480, 0x59, 0x00, 0xA7, 0xFF
  12. vertex 512, 0, -1791, -454, 0, 0x59, 0x00, 0xA7, 0xFF
  13. vertex 512, -255, -1791, -454, 480, 0x59, 0x00, 0xA7, 0xFF
  14. vertex -511, 0, 2304, 1706, 480, 0x00, 0x00, 0x7F, 0xFF
  15. vertex -127, 0, 2304, 2472, 480, 0x00, 0x00, 0x7F, 0xFF
  16. vertex -511, 256, 2304, 1706, 0, 0x00, 0x00, 0x7F, 0xFF
  17. vertex -511, 256, 2048, 990, 0, 0x46, 0x69, 0x00, 0xFF
  18. vertex -511, 256, 2304, 478, 0, 0x46, 0x69, 0x00, 0xFF
  19. vertex -127, 0, 2304, 480, 890, 0x46, 0x69, 0x00, 0xFF
  20. vertex -127, 0, 2048, 990, 890, 0x46, 0x69, 0x00, 0xFF
  21. vertex -511, -255, -2303, 990, 480, 0x00, 0x00, 0x81, 0xFF
  22. vertex -511, 0, -2303, 990, 0, 0x00, 0x00, 0x81, 0xFF
  23. vertex 0, 0, -2303, 0, 0, 0x00, 0x00, 0x81, 0xFF
  24. vertex 0, -255, -2303, 0, 480, 0x00, 0x00, 0x81, 0xFF
  25. vertex 0, 0, -2303, 990, 0, 0x59, 0x00, 0xA7, 0xFF
  26. wf_seg7_vertex_0700B160: # 0x0700B160 - 0x0700B1A0
  27. vertex 512, -255, -1791, 990, 478, 0x7F, 0x00, 0x00, 0xFF
  28. vertex 512, 0, 2304, -7184, 0, 0x7F, 0x00, 0x00, 0xFF
  29. vertex 512, -255, 2304, -7184, 478, 0x7F, 0x00, 0x00, 0xFF
  30. vertex 512, 0, -1791, 990, 0, 0x7F, 0x00, 0x00, 0xFF
  31. wf_seg7_vertex_0700B1A0: # 0x0700B1A0 - 0x0700B210
  32. vertex 512, 0, 2304, 990, 6354, 0x00, 0x7F, 0x00, 0xFF
  33. vertex 512, 0, -1791, 9166, 6354, 0x00, 0x7F, 0x00, 0xFF
  34. vertex -127, 0, 2048, 1502, 5076, 0x00, 0x7F, 0x00, 0xFF
  35. vertex 0, 0, -2303, 10188, 5332, 0x00, 0x7F, 0x00, 0xFF
  36. vertex -511, 0, 1280, 3034, 4310, 0x00, 0x7F, 0x00, 0xFF
  37. vertex -511, 0, -2303, 10188, 4310, 0x00, 0x7F, 0x00, 0xFF
  38. vertex -127, 0, 2304, 990, 5332, 0x00, 0x7F, 0x00, 0xFF
  39. wf_seg7_vertex_0700B210: # 0x0700B210 - 0x0700B300
  40. vertex -255, 0, -511, 25518, 990, 0x81, 0x00, 0x00, 0xFF
  41. vertex -255, 51, -767, 20408, 0, 0x81, 0x00, 0x00, 0xFF
  42. vertex -255, 0, -767, 20408, 990, 0x81, 0x00, 0x00, 0xFF
  43. vertex -255, 0, -1535, 0, 990, 0x81, 0x00, 0x00, 0xFF
  44. vertex -255, 51, -1535, 0, 0, 0x81, 0x00, 0x00, 0xFF
  45. vertex -255, 51, -1791, 5078, 0, 0x81, 0x00, 0x00, 0xFF
  46. vertex -255, 0, -1791, 5078, 990, 0x81, 0x00, 0x00, 0xFF
  47. vertex 128, 0, -1919, 4056, 990, 0x59, 0x00, 0xA7, 0xFF
  48. vertex 128, 51, -1919, 4056, 0, 0x59, 0x00, 0xA7, 0xFF
  49. vertex 256, 51, -1791, 442, 0, 0x59, 0x00, 0xA7, 0xFF
  50. vertex 256, 0, -1791, 442, 990, 0x59, 0x00, 0xA7, 0xFF
  51. vertex -127, 0, -1919, 0, 990, 0x00, 0x00, 0x81, 0xFF
  52. vertex -127, 51, -1919, 0, 0, 0x00, 0x00, 0x81, 0xFF
  53. vertex 128, 51, -1919, 5078, 0, 0x00, 0x00, 0x81, 0xFF
  54. vertex 128, 0, -1919, 5078, 990, 0x00, 0x00, 0x81, 0xFF
  55. wf_seg7_vertex_0700B300: # 0x0700B300 - 0x0700B3F0
  56. vertex 128, 0, -895, -11418, 990, 0x59, 0x00, 0xA7, 0xFF
  57. vertex 256, 51, -767, -15030, 0, 0x59, 0x00, 0xA7, 0xFF
  58. vertex 256, 0, -767, -15030, 990, 0x59, 0x00, 0xA7, 0xFF
  59. vertex -255, 0, -511, 25518, 990, 0x81, 0x00, 0x00, 0xFF
  60. vertex -255, 51, -511, 25518, 0, 0x81, 0x00, 0x00, 0xFF
  61. vertex -255, 51, -767, 20408, 0, 0x81, 0x00, 0x00, 0xFF
  62. vertex -255, 0, -767, 18034, 990, 0xA7, 0x00, 0xA7, 0xFF
  63. vertex -255, 51, -767, 18034, 0, 0xA7, 0x00, 0xA7, 0xFF
  64. vertex -127, 51, -895, 14422, 0, 0xA7, 0x00, 0xA7, 0xFF
  65. vertex -127, 0, -895, 14422, 990, 0xA7, 0x00, 0xA7, 0xFF
  66. vertex -127, 0, -895, 5078, 990, 0x00, 0x00, 0x81, 0xFF
  67. vertex 128, 51, -895, 0, 0, 0x00, 0x00, 0x81, 0xFF
  68. vertex 128, 0, -895, 0, 990, 0x00, 0x00, 0x81, 0xFF
  69. vertex -127, 51, -895, 5078, 0, 0x00, 0x00, 0x81, 0xFF
  70. vertex 128, 51, -895, -11418, 0, 0x59, 0x00, 0xA7, 0xFF
  71. wf_seg7_vertex_0700B3F0: # 0x0700B3F0 - 0x0700B4E0
  72. vertex -127, 0, -383, 3582, 990, 0xA7, 0x00, 0x59, 0xFF
  73. vertex -255, 51, -511, 0, 0, 0xA7, 0x00, 0x59, 0xFF
  74. vertex -255, 0, -511, 0, 990, 0xA7, 0x00, 0x59, 0xFF
  75. vertex 256, 0, -767, 990, 990, 0x7F, 0x00, 0x00, 0xFF
  76. vertex 256, 51, -511, -4118, 0, 0x7F, 0x00, 0x00, 0xFF
  77. vertex 256, 0, -511, -4118, 990, 0x7F, 0x00, 0x00, 0xFF
  78. vertex 256, 51, -767, 990, 0, 0x7F, 0x00, 0x00, 0xFF
  79. vertex 256, 0, -511, 3034, 990, 0x59, 0x00, 0x59, 0xFF
  80. vertex 256, 51, -511, 3034, 0, 0x59, 0x00, 0x59, 0xFF
  81. vertex 128, 51, -383, -578, 0, 0x59, 0x00, 0x59, 0xFF
  82. vertex 128, 0, -383, -578, 990, 0x59, 0x00, 0x59, 0xFF
  83. vertex 128, 0, -383, 5078, 990, 0x00, 0x00, 0x7F, 0xFF
  84. vertex 128, 51, -383, 5078, 0, 0x00, 0x00, 0x7F, 0xFF
  85. vertex -127, 51, -383, 0, 0, 0x00, 0x00, 0x7F, 0xFF
  86. vertex -127, 0, -383, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  87. wf_seg7_vertex_0700B4E0: # 0x0700B4E0 - 0x0700B5D0
  88. vertex 256, 0, -1535, 4056, 990, 0x59, 0x00, 0x59, 0xFF
  89. vertex 256, 51, -1535, 4056, 0, 0x59, 0x00, 0x59, 0xFF
  90. vertex 128, 51, -1407, 442, 0, 0x59, 0x00, 0x59, 0xFF
  91. vertex -127, 0, -383, 3582, 990, 0xA7, 0x00, 0x59, 0xFF
  92. vertex -127, 51, -383, 3582, 0, 0xA7, 0x00, 0x59, 0xFF
  93. vertex -255, 51, -511, 0, 0, 0xA7, 0x00, 0x59, 0xFF
  94. vertex -127, 0, -1407, 442, 990, 0xA7, 0x00, 0x59, 0xFF
  95. vertex -255, 51, -1535, 4056, 0, 0xA7, 0x00, 0x59, 0xFF
  96. vertex -255, 0, -1535, 4056, 990, 0xA7, 0x00, 0x59, 0xFF
  97. vertex -127, 51, -1407, 442, 0, 0xA7, 0x00, 0x59, 0xFF
  98. vertex 128, 0, -1407, 5078, 990, 0x00, 0x00, 0x7F, 0xFF
  99. vertex 128, 51, -1407, 5078, 0, 0x00, 0x00, 0x7F, 0xFF
  100. vertex -127, 51, -1407, 0, 0, 0x00, 0x00, 0x7F, 0xFF
  101. vertex -127, 0, -1407, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  102. vertex 128, 0, -1407, 442, 990, 0x59, 0x00, 0x59, 0xFF
  103. wf_seg7_vertex_0700B5D0: # 0x0700B5D0 - 0x0700B650
  104. vertex 256, 0, -1791, 5078, 990, 0x7F, 0x00, 0x00, 0xFF
  105. vertex 256, 51, -1791, 5078, 0, 0x7F, 0x00, 0x00, 0xFF
  106. vertex 256, 51, -1535, 0, 0, 0x7F, 0x00, 0x00, 0xFF
  107. vertex 256, 0, -1535, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  108. vertex -255, 0, -1791, 442, 990, 0xA7, 0x00, 0xA7, 0xFF
  109. vertex -255, 51, -1791, 442, 0, 0xA7, 0x00, 0xA7, 0xFF
  110. vertex -127, 51, -1919, 4056, 0, 0xA7, 0x00, 0xA7, 0xFF
  111. vertex -127, 0, -1919, 4056, 990, 0xA7, 0x00, 0xA7, 0xFF
  112. wf_seg7_vertex_0700B650: # 0x0700B650 - 0x0700B750
  113. vertex -255, 51, -767, 3034, -3098, 0x00, 0x7F, 0x00, 0xFF
  114. vertex -127, 51, -383, 0, -2076, 0x00, 0x7F, 0x00, 0xFF
  115. vertex 128, 51, -383, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  116. vertex 128, 51, -895, 4056, 0, 0x00, 0x7F, 0x00, 0xFF
  117. vertex -127, 51, -895, 4056, -2076, 0x00, 0x7F, 0x00, 0xFF
  118. vertex -255, 51, -511, 990, -3098, 0x00, 0x7F, 0x00, 0xFF
  119. vertex 256, 51, -511, 990, 990, 0x00, 0x7F, 0x00, 0xFF
  120. vertex 256, 51, -767, 3034, 990, 0x00, 0x7F, 0x00, 0xFF
  121. vertex -255, 51, -1791, 11210, -3098, 0x00, 0x7F, 0x00, 0xFF
  122. vertex 128, 51, -1919, 12232, 0, 0x00, 0x7F, 0x00, 0xFF
  123. vertex -127, 51, -1919, 12232, -2076, 0x00, 0x7F, 0x00, 0xFF
  124. vertex 256, 51, -1791, 11210, 990, 0x00, 0x7F, 0x00, 0xFF
  125. vertex -255, 51, -1535, 9166, -3098, 0x00, 0x7F, 0x00, 0xFF
  126. vertex -127, 51, -1407, 8144, -2076, 0x00, 0x7F, 0x00, 0xFF
  127. vertex 128, 51, -1407, 8144, 0, 0x00, 0x7F, 0x00, 0xFF
  128. vertex 256, 51, -1535, 9166, 990, 0x00, 0x7F, 0x00, 0xFF
  129. wf_seg7_dl_0700B750: # 0x0700B750 - 0x0700B790
  130. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004800
  131. gsDPLoadSync
  132. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  133. gsSPLight wf_seg7_light_0700B030, 1
  134. gsSPLight wf_seg7_light_0700B028, 2
  135. gsSPVertex wf_seg7_vertex_0700B040, 3, 0
  136. gsSP1Triangle 0, 1, 2, 0x0
  137. gsSPEndDisplayList
  138. wf_seg7_dl_0700B790: # 0x0700B790 - 0x0700B808
  139. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000
  140. gsDPLoadSync
  141. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  142. gsSPVertex wf_seg7_vertex_0700B070, 15, 0
  143. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  144. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  145. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  146. gsSP1Triangle 0, 14, 1, 0x0
  147. gsSPVertex wf_seg7_vertex_0700B160, 4, 0
  148. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  149. gsSPEndDisplayList
  150. wf_seg7_dl_0700B808: # 0x0700B808 - 0x0700B858
  151. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800
  152. gsDPLoadSync
  153. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  154. gsSPVertex wf_seg7_vertex_0700B1A0, 7, 0
  155. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 1, 0x0
  156. gsSP2Triangles 3, 5, 4, 0x0, 4, 2, 1, 0x0
  157. gsSP1Triangle 0, 2, 6, 0x0
  158. gsSPEndDisplayList
  159. wf_seg7_dl_0700B858: # 0x0700B858 - 0x0700B9A0
  160. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09002800
  161. gsDPLoadSync
  162. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  163. gsSPVertex wf_seg7_vertex_0700B210, 15, 0
  164. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  165. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  166. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  167. gsSP1Triangle 11, 13, 14, 0x0
  168. gsSPVertex wf_seg7_vertex_0700B300, 15, 0
  169. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  170. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  171. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  172. gsSP1Triangle 0, 14, 1, 0x0
  173. gsSPVertex wf_seg7_vertex_0700B3F0, 15, 0
  174. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  175. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  176. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  177. gsSP1Triangle 11, 13, 14, 0x0
  178. gsSPVertex wf_seg7_vertex_0700B4E0, 15, 0
  179. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  180. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  181. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  182. gsSP1Triangle 0, 2, 14, 0x0
  183. gsSPVertex wf_seg7_vertex_0700B5D0, 8, 0
  184. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  185. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  186. gsSPEndDisplayList
  187. wf_seg7_dl_0700B9A0: # 0x0700B9A0 - 0x0700BA28
  188. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09002000
  189. gsDPLoadSync
  190. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  191. gsSPVertex wf_seg7_vertex_0700B650, 16, 0
  192. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  193. gsSP2Triangles 0, 5, 1, 0x0, 0, 2, 6, 0x0
  194. gsSP2Triangles 0, 6, 7, 0x0, 0, 7, 3, 0x0
  195. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
  196. gsSP2Triangles 8, 12, 13, 0x0, 8, 13, 14, 0x0
  197. gsSP2Triangles 8, 15, 11, 0x0, 8, 14, 15, 0x0
  198. gsSPEndDisplayList
  199. glabel wf_seg7_dl_0700BA28 # 0x0700BA28 - 0x0700BB18
  200. gsDPPipeSync
  201. 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
  202. gsSPClearGeometryMode G_SHADING_SMOOTH
  203. 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
  204. gsSPTexture -1, -1, 0, 0, 1
  205. gsDPTileSync
  206. 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
  207. gsDPSetTileSize 0, 0, 0, 124, 124
  208. gsSPDisplayList wf_seg7_dl_0700B750
  209. gsDPTileSync
  210. 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
  211. gsDPSetTileSize 0, 0, 0, 124, 124
  212. gsSPDisplayList wf_seg7_dl_0700B790
  213. gsDPTileSync
  214. 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
  215. gsDPSetTileSize 0, 0, 0, 124, 124
  216. gsSPDisplayList wf_seg7_dl_0700B808
  217. gsDPTileSync
  218. 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
  219. gsDPSetTileSize 0, 0, 0, 124, 124
  220. gsSPDisplayList wf_seg7_dl_0700B858
  221. gsDPTileSync
  222. 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
  223. gsDPSetTileSize 0, 0, 0, 124, 124
  224. gsSPDisplayList wf_seg7_dl_0700B9A0
  225. gsSPTexture -1, -1, 0, 0, 0
  226. gsDPPipeSync
  227. 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
  228. gsSPSetGeometryMode G_SHADING_SMOOTH
  229. gsSPEndDisplayList