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
12 KiB

5 years ago
  1. ddd_seg7_light_0700B0D8: # 0x0700B0D8 - 0x0700B0E0
  2. .byte 0x3F, 0x3F, 0x3F, 0x00, 0x3F, 0x3F, 0x3F, 0x00
  3. ddd_seg7_light_0700B0E0: # 0x0700B0E0 - 0x0700B0F0
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ddd_seg7_vertex_0700B0F0: # 0x0700B0F0 - 0x0700B1D0
  7. vertex 4131, -2756, -2425, 2012, 990, 0xD8, 0x09, 0x89, 0xFF
  8. vertex 4122, -2756, -2252, 2012, 0, 0x97, 0x1A, 0x41, 0xFF
  9. vertex 4122, -2551, -2252, 960, 150, 0xB7, 0x67, 0x04, 0xFF
  10. vertex 4326, -2551, -2354, 0, 990, 0x1C, 0x34, 0x91, 0xFF
  11. vertex 4326, -2756, -2354, 0, 990, 0x3E, 0xA2, 0xC6, 0xFF
  12. vertex 4326, -2551, -2354, 2012, 0, 0x1C, 0x34, 0x91, 0xFF
  13. vertex 6989, -2756, -921, 5864, 1996, 0x13, 0x8F, 0x35, 0xFF
  14. vertex 6989, -2551, -921, 6036, 990, 0x1F, 0x5C, 0x50, 0xFF
  15. vertex 5862, -2756, -511, 0, 990, 0xDA, 0xBE, 0x64, 0xFF
  16. vertex 5862, -2551, -511, 140, -18, 0xC7, 0x51, 0x4D, 0xFF
  17. vertex 6067, -2756, -818, 8656, -1210, 0x40, 0xAB, 0xBD, 0xFF
  18. vertex 6022, -4138, 265, 12, 292, 0x1F, 0xB4, 0xA0, 0xFF
  19. vertex 5738, -2756, -738, 8656, 478, 0xAE, 0xC7, 0xB3, 0xFF
  20. vertex 5693, -4138, 345, 12, 1978, 0x82, 0x0A, 0x07, 0xFF
  21. ddd_seg7_vertex_0700B1D0: # 0x0700B1D0 - 0x0700B2D0
  22. vertex 5738, -2756, -738, 9424, -106, 0xAE, 0xC7, 0xB3, 0xFF
  23. vertex 5693, -4138, 345, 652, -106, 0x82, 0x0A, 0x07, 0xFF
  24. vertex 5862, -2756, -511, 8740, 990, 0xDA, 0xBE, 0x64, 0xFF
  25. vertex 5817, -4138, 572, 0, 990, 0xF3, 0x4E, 0x63, 0xFF
  26. vertex 5862, -2756, -511, 8492, 2028, 0xDA, 0xBE, 0x64, 0xFF
  27. vertex 5817, -4138, 572, 0, 0, 0xF3, 0x4E, 0x63, 0xFF
  28. vertex 6116, -2756, -603, 8492, 3378, 0x56, 0x37, 0x4A, 0xFF
  29. vertex 6071, -4138, 480, 0, 1316, 0x7D, 0x0A, 0x12, 0xFF
  30. vertex 6116, -2756, -603, 8084, 106, 0x56, 0x37, 0x4A, 0xFF
  31. vertex 6071, -4138, 480, -684, 106, 0x7D, 0x0A, 0x12, 0xFF
  32. vertex 6067, -2756, -818, 8740, 990, 0x40, 0xAB, 0xBD, 0xFF
  33. vertex 6022, -4138, 265, 0, 990, 0x1F, 0xB4, 0xA0, 0xFF
  34. vertex 5146, -2756, -1945, 8260, -22, 0xFF, 0xA8, 0xA6, 0xFF
  35. vertex 4691, -4138, -1372, 456, -22, 0xA2, 0xFD, 0xAC, 0xFF
  36. vertex 5080, -2756, -1729, 7772, 990, 0x8A, 0x2B, 0x0A, 0xFF
  37. vertex 4625, -4138, -1157, 0, 990, 0xA4, 0x39, 0x41, 0xFF
  38. ddd_seg7_vertex_0700B2D0: # 0x0700B2D0 - 0x0700B3D0
  39. vertex 5080, -2756, -1729, 6100, 544, 0x8A, 0x2B, 0x0A, 0xFF
  40. vertex 4625, -4138, -1157, -1676, -82, 0xA4, 0x39, 0x41, 0xFF
  41. vertex 5248, -2756, -1637, 6100, 1498, 0xC6, 0xCF, 0x65, 0xFF
  42. vertex 4793, -4138, -1065, -1676, 876, 0x32, 0x1D, 0x70, 0xFF
  43. vertex 5248, -2756, -1637, 5568, -290, 0xC6, 0xCF, 0x65, 0xFF
  44. vertex 4793, -4138, -1065, -2232, -290, 0x32, 0x1D, 0x70, 0xFF
  45. vertex 5453, -2756, -1842, 6240, 990, 0x55, 0xA5, 0x16, 0xFF
  46. vertex 4998, -4138, -1270, -1560, 990, 0x59, 0xC6, 0xBB, 0xFF
  47. vertex 5453, -2756, -1842, -508, 1580, 0x55, 0xA5, 0x16, 0xFF
  48. vertex 4998, -4138, -1270, 7120, 0, 0x59, 0xC6, 0xBB, 0xFF
  49. vertex 5146, -2756, -1945, -584, 0, 0xFF, 0xA8, 0xA6, 0xFF
  50. vertex 4691, -4138, -1372, 7044, -1646, 0xA2, 0xFD, 0xAC, 0xFF
  51. vertex 4122, -2756, -2252, -4736, 796, 0x97, 0x1A, 0x41, 0xFF
  52. vertex 2781, -4138, -1874, 5056, 796, 0xBB, 0x54, 0x40, 0xFF
  53. vertex 4291, -2756, -2160, -5224, 0, 0xFC, 0x25, 0x79, 0xFF
  54. vertex 2950, -4138, -1782, 4568, 0, 0x52, 0xC5, 0x4C, 0xFF
  55. ddd_seg7_vertex_0700B3D0: # 0x0700B3D0 - 0x0700B4D0
  56. vertex 4291, -2756, -2160, -7468, 906, 0xFC, 0x25, 0x79, 0xFF
  57. vertex 2950, -4138, -1782, 2320, 906, 0x52, 0xC5, 0x4C, 0xFF
  58. vertex 4326, -2756, -2354, -7776, 0, 0x3E, 0xA2, 0xC6, 0xFF
  59. vertex 2986, -4138, -1976, 2012, 0, 0x40, 0xAE, 0xB8, 0xFF
  60. vertex 4326, -2756, -2354, -2116, 1374, 0x3E, 0xA2, 0xC6, 0xFF
  61. vertex 2986, -4138, -1976, 7632, 480, 0x40, 0xAE, 0xB8, 0xFF
  62. vertex 4131, -2756, -2425, -1596, 478, 0xD8, 0x09, 0x89, 0xFF
  63. vertex 2790, -4138, -2047, 8152, -418, 0xAA, 0x41, 0xBE, 0xFF
  64. vertex 4131, -2756, -2425, -5932, 810, 0xD8, 0x09, 0x89, 0xFF
  65. vertex 2790, -4138, -2047, 3856, 810, 0xAA, 0x41, 0xBE, 0xFF
  66. vertex 4122, -2756, -2252, -5732, 0, 0x97, 0x1A, 0x41, 0xFF
  67. vertex 2781, -4138, -1874, 4056, 0, 0xBB, 0x54, 0x40, 0xFF
  68. vertex 5453, -2551, -1842, 3544, -544, 0x4E, 0x63, 0xFB, 0xFF
  69. vertex 6374, -2346, -2764, -3036, -542, 0x35, 0x5A, 0x46, 0xFF
  70. vertex 5144, -2551, -1937, 4292, 888, 0xDD, 0x5B, 0xB1, 0xFF
  71. vertex 6199, -2387, -2940, -3004, 678, 0xAD, 0x34, 0xB1, 0xFF
  72. ddd_seg7_vertex_0700B4D0: # 0x0700B4D0 - 0x0700B5D0
  73. vertex 5144, -2551, -1937, -968, 480, 0xDD, 0x5B, 0xB1, 0xFF
  74. vertex 4326, -2551, -2354, 3536, 1266, 0x1C, 0x34, 0x91, 0xFF
  75. vertex 4122, -2551, -2252, 4364, 478, 0xB7, 0x67, 0x04, 0xFF
  76. vertex 5248, -2551, -1637, -1908, -798, 0xC9, 0x5B, 0x44, 0xFF
  77. vertex 5453, -2551, -1842, -2584, 480, 0x4E, 0x63, 0xFB, 0xFF
  78. vertex 5248, -2551, -1637, 5748, 990, 0xC9, 0x5B, 0x44, 0xFF
  79. vertex 6067, -2551, -818, 0, 990, 0x02, 0x6D, 0xC0, 0xFF
  80. vertex 5453, -2551, -1842, 5748, 2434, 0x4E, 0x63, 0xFB, 0xFF
  81. vertex 5862, -2551, -511, -388, -816, 0xC7, 0x51, 0x4D, 0xFF
  82. vertex 5862, -2551, -511, -3604, 990, 0xC7, 0x51, 0x4D, 0xFF
  83. vertex 6989, -2551, -921, 2372, 990, 0x1F, 0x5C, 0x50, 0xFF
  84. vertex 6067, -2551, -818, -2120, -102, 0x02, 0x6D, 0xC0, 0xFF
  85. vertex 6067, -2756, -818, 0, 990, 0x40, 0xAB, 0xBD, 0xFF
  86. vertex 6989, -2756, -921, 4596, 990, 0x13, 0x8F, 0x35, 0xFF
  87. vertex 5862, -2756, -511, -1212, -420, 0xDA, 0xBE, 0x64, 0xFF
  88. vertex 6989, -2592, -1187, 2828, -258, 0xE4, 0x5D, 0xAF, 0xFF
  89. ddd_seg7_vertex_0700B5D0: # 0x0700B5D0 - 0x0700B6D0
  90. vertex 5453, -2756, -1842, -1264, 1108, 0x55, 0xA5, 0x16, 0xFF
  91. vertex 6067, -2756, -818, 4676, 1566, 0x40, 0xAB, 0xBD, 0xFF
  92. vertex 5862, -2756, -511, 5588, 0, 0xDA, 0xBE, 0x64, 0xFF
  93. vertex 5146, -2756, -1945, -2404, 0, 0xFF, 0xA8, 0xA6, 0xFF
  94. vertex 5248, -2756, -1637, -804, -260, 0xC6, 0xCF, 0x65, 0xFF
  95. vertex 5248, -2756, -1637, -1560, 478, 0xC6, 0xCF, 0x65, 0xFF
  96. vertex 4122, -2756, -2252, 4756, 1508, 0x97, 0x1A, 0x41, 0xFF
  97. vertex 4326, -2756, -2354, 4260, 478, 0x3E, 0xA2, 0xC6, 0xFF
  98. vertex 5146, -2756, -1945, -216, -418, 0xFF, 0xA8, 0xA6, 0xFF
  99. vertex 6067, -2756, -818, 0, 990, 0x40, 0xAB, 0xBD, 0xFF
  100. vertex 6989, -2756, -1228, 4764, 2512, 0xD3, 0xD2, 0x93, 0xFF
  101. vertex 6989, -2756, -921, 4596, 990, 0x13, 0x8F, 0x35, 0xFF
  102. vertex 5146, -2756, -1945, 3048, -532, 0xFF, 0xA8, 0xA6, 0xFF
  103. vertex 6256, -2520, -2882, -4136, 990, 0xD4, 0xA1, 0xB9, 0xFF
  104. vertex 5453, -2756, -1842, 2524, 990, 0x55, 0xA5, 0x16, 0xFF
  105. vertex 6374, -2551, -2764, -4004, 1824, 0x44, 0xA0, 0x2E, 0xFF
  106. ddd_seg7_vertex_0700B6D0: # 0x0700B6D0 - 0x0700B7D0
  107. vertex 6067, -2756, -818, 2928, 826, 0x40, 0xAB, 0xBD, 0xFF
  108. vertex 6067, -2551, -818, 2840, -166, 0x02, 0x6D, 0xC0, 0xFF
  109. vertex 6989, -2756, -1228, -2072, 1320, 0xD3, 0xD2, 0x93, 0xFF
  110. vertex 6989, -2592, -1187, -2072, 480, 0xE4, 0x5D, 0xAF, 0xFF
  111. vertex 5453, -2756, -1842, 5928, 990, 0x55, 0xA5, 0x16, 0xFF
  112. vertex 5453, -2551, -1842, 5928, 0, 0x4E, 0x63, 0xFB, 0xFF
  113. vertex 6067, -2756, -818, 0, 990, 0x40, 0xAB, 0xBD, 0xFF
  114. vertex 6067, -2551, -818, 0, 0, 0x02, 0x6D, 0xC0, 0xFF
  115. vertex 6374, -2551, -2764, 6552, 990, 0x44, 0xA0, 0x2E, 0xFF
  116. vertex 6374, -2346, -2764, 6712, -20, 0x35, 0x5A, 0x46, 0xFF
  117. vertex 5453, -2756, -1842, 0, 990, 0x55, 0xA5, 0x16, 0xFF
  118. vertex 5453, -2551, -1842, 128, -20, 0x4E, 0x63, 0xFB, 0xFF
  119. vertex 5146, -2756, -1945, 7112, 2010, 0xFF, 0xA8, 0xA6, 0xFF
  120. vertex 5144, -2551, -1937, 7120, 990, 0xDD, 0x5B, 0xB1, 0xFF
  121. vertex 6256, -2520, -2882, -160, 990, 0xD4, 0xA1, 0xB9, 0xFF
  122. vertex 6199, -2387, -2940, -140, 334, 0xAD, 0x34, 0xB1, 0xFF
  123. ddd_seg7_vertex_0700B7D0: # 0x0700B7D0 - 0x0700B890
  124. vertex 4326, -2756, -2354, 4428, 1984, 0x3E, 0xA2, 0xC6, 0xFF
  125. vertex 4326, -2551, -2354, 4652, 990, 0x1C, 0x34, 0x91, 0xFF
  126. vertex 5146, -2756, -1945, 0, 990, 0xFF, 0xA8, 0xA6, 0xFF
  127. vertex 5862, -2551, -511, 6372, 0, 0xC7, 0x51, 0x4D, 0xFF
  128. vertex 5248, -2551, -1637, 0, 0, 0xC9, 0x5B, 0x44, 0xFF
  129. vertex 5248, -2756, -1637, 0, 990, 0xC6, 0xCF, 0x65, 0xFF
  130. vertex 5144, -2551, -1937, 184, -10, 0xDD, 0x5B, 0xB1, 0xFF
  131. vertex 5248, -2756, -1637, 6372, 990, 0xC6, 0xCF, 0x65, 0xFF
  132. vertex 5248, -2551, -1637, 6372, 0, 0xC9, 0x5B, 0x44, 0xFF
  133. vertex 4122, -2756, -2252, 0, 990, 0x97, 0x1A, 0x41, 0xFF
  134. vertex 4122, -2551, -2252, 0, 0, 0xB7, 0x67, 0x04, 0xFF
  135. vertex 5862, -2756, -511, 6372, 990, 0xDA, 0xBE, 0x64, 0xFF
  136. ddd_seg7_dl_0700B890: # 0x0700B890 - 0x0700BAE0
  137. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07002000
  138. gsDPLoadSync
  139. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
  140. gsSPLight ddd_seg7_light_0700B0E0, 1
  141. gsSPLight ddd_seg7_light_0700B0D8, 2
  142. gsSPVertex ddd_seg7_vertex_0700B0F0, 14, 0
  143. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  144. gsSP2Triangles 4, 0, 5, 0x0, 6, 7, 8, 0x0
  145. gsSP2Triangles 7, 9, 8, 0x0, 10, 11, 12, 0x0
  146. gsSP1Triangle 11, 13, 12, 0x0
  147. gsSPVertex ddd_seg7_vertex_0700B1D0, 16, 0
  148. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  149. gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
  150. gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
  151. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  152. gsSPVertex ddd_seg7_vertex_0700B2D0, 16, 0
  153. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  154. gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
  155. gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
  156. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  157. gsSPVertex ddd_seg7_vertex_0700B3D0, 16, 0
  158. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  159. gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
  160. gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
  161. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  162. gsSPVertex ddd_seg7_vertex_0700B4D0, 16, 0
  163. gsSP2Triangles 0, 1, 2, 0x0, 2, 3, 4, 0x0
  164. gsSP2Triangles 5, 6, 7, 0x0, 5, 8, 6, 0x0
  165. gsSP2Triangles 9, 10, 11, 0x0, 12, 13, 14, 0x0
  166. gsSP1Triangle 10, 15, 11, 0x0
  167. gsSPVertex ddd_seg7_vertex_0700B5D0, 16, 0
  168. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  169. gsSP2Triangles 2, 4, 3, 0x0, 5, 6, 7, 0x0
  170. gsSP2Triangles 5, 7, 8, 0x0, 9, 10, 11, 0x0
  171. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  172. gsSPVertex ddd_seg7_vertex_0700B6D0, 16, 0
  173. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  174. gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
  175. gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
  176. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  177. gsSPVertex ddd_seg7_vertex_0700B7D0, 12, 0
  178. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  179. gsSP2Triangles 1, 6, 2, 0x0, 7, 8, 9, 0x0
  180. gsSP2Triangles 8, 10, 9, 0x0, 11, 3, 5, 0x0
  181. gsSPEndDisplayList
  182. glabel ddd_seg7_dl_0700BAE0 # 0x0700BAE0 - 0x0700BB50
  183. gsDPPipeSync
  184. 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
  185. gsSPClearGeometryMode G_CULL_BACK
  186. 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
  187. gsSPTexture -1, -1, 0, 0, 1
  188. gsDPTileSync
  189. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD
  190. gsDPSetTileSize 0, 0, 0, 252, 124
  191. gsSPDisplayList ddd_seg7_dl_0700B890
  192. gsSPTexture -1, -1, 0, 0, 0
  193. gsDPPipeSync
  194. 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
  195. gsSPSetGeometryMode G_CULL_BACK
  196. gsSPEndDisplayList