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.

200 lines
11 KiB

6 years ago
  1. ttm_seg7_light_0700D700: # 0x0700D700 - 0x0700D708
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700D708: # 0x0700D708 - 0x0700D718
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_0700D718: # 0x0700D718 - 0x0700D720
  7. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  8. ttm_seg7_light_0700D720: # 0x0700D720 - 0x0700D730
  9. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_0700D730: # 0x0700D730 - 0x0700D738
  12. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  13. ttm_seg7_light_0700D738: # 0x0700D738 - 0x0700D748
  14. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_0700D748: # 0x0700D748 - 0x0700D848
  17. vertex 717, 227, -204, 5282, -7594, 0x00, 0x7F, 0x00, 0xFF
  18. vertex 1280, 227, -511, 6406, -8208, 0x00, 0x7F, 0x00, 0xFF
  19. vertex 717, 227, -716, 5282, -8616, 0x00, 0x7F, 0x00, 0xFF
  20. vertex 717, 227, -716, 5282, -8616, 0x12, 0x72, 0xCD, 0xFF
  21. vertex 1280, 227, -511, 6406, -8208, 0x12, 0x72, 0xCD, 0xFF
  22. vertex 871, -28, -1230, 5590, -9644, 0x12, 0x72, 0xCD, 0xFF
  23. vertex 973, 227, 0, 5794, -7186, 0x00, 0x7F, 0x00, 0xFF
  24. vertex 614, 126, 303, 5078, -6580, 0xF9, 0x7A, 0x20, 0xFF
  25. vertex 1015, 127, 386, 5878, -6416, 0xF9, 0x7A, 0x20, 0xFF
  26. vertex 973, 227, 0, 5794, -7186, 0xF9, 0x7A, 0x20, 0xFF
  27. vertex 614, 126, 303, 5078, -6580, 0xF0, 0x7C, 0x15, 0xFF
  28. vertex 973, 227, 0, 5794, -7186, 0xF0, 0x7C, 0x15, 0xFF
  29. vertex 717, 227, -204, 5282, -7594, 0xF0, 0x7C, 0x15, 0xFF
  30. vertex 614, 126, 303, 5078, -6580, 0x00, 0x7E, 0x00, 0xFF
  31. vertex 681, 127, 442, 5210, -6304, 0x00, 0x7E, 0x00, 0xFF
  32. vertex 1015, 127, 386, 5878, -6416, 0x00, 0x7E, 0x00, 0xFF
  33. ttm_seg7_vertex_0700D848: # 0x0700D848 - 0x0700D938
  34. vertex -537, 182, 1246, 2778, -4700, 0x34, 0x73, 0x05, 0xFF
  35. vertex -514, 182, 1042, 2824, -5106, 0x34, 0x73, 0x05, 0xFF
  36. vertex -694, 275, 816, 2464, -5558, 0x34, 0x73, 0x05, 0xFF
  37. vertex -944, 275, 1200, 1964, -4792, 0x1A, 0x7B, 0x11, 0xFF
  38. vertex -537, 182, 1246, 2778, -4700, 0x1A, 0x7B, 0x11, 0xFF
  39. vertex -694, 275, 816, 2464, -5558, 0x1A, 0x7B, 0x11, 0xFF
  40. vertex -514, 182, 1042, 2824, -5106, 0x06, 0x7E, 0x00, 0xFF
  41. vertex -537, 182, 1246, 2778, -4700, 0x06, 0x7E, 0x00, 0xFF
  42. vertex 681, 127, 442, 5210, -6304, 0x06, 0x7E, 0x00, 0xFF
  43. vertex -514, 182, 1042, 2824, -5106, 0x04, 0x7E, 0xFD, 0xFF
  44. vertex 681, 127, 442, 5210, -6304, 0x04, 0x7E, 0xFD, 0xFF
  45. vertex 614, 126, 303, 5078, -6580, 0x04, 0x7E, 0xFD, 0xFF
  46. vertex -1125, 275, 973, 1604, -5244, 0x00, 0x7F, 0x00, 0xFF
  47. vertex -944, 275, 1200, 1964, -4792, 0x00, 0x7F, 0x00, 0xFF
  48. vertex -694, 275, 816, 2464, -5558, 0x00, 0x7F, 0x00, 0xFF
  49. ttm_seg7_vertex_0700D938: # 0x0700D938 - 0x0700D9F8
  50. vertex -1282, 275, 545, 1290, -6098, 0xFE, 0x7E, 0x00, 0xFF
  51. vertex -1125, 275, 973, 1604, -5244, 0xFE, 0x7E, 0x00, 0xFF
  52. vertex -875, 284, 336, 2102, -6516, 0xFE, 0x7E, 0x00, 0xFF
  53. vertex 1015, -180, 386, -286, 1978, 0x7E, 0x00, 0xF3, 0xFF
  54. vertex 973, 227, 0, 1302, 990, 0x7E, 0x00, 0xF3, 0xFF
  55. vertex 1015, 127, 386, 0, 990, 0x7E, 0x00, 0xF3, 0xFF
  56. vertex 637, -77, 350, -294, 348, 0x87, 0xEC, 0xE4, 0xFF
  57. vertex 614, 126, 303, 0, 990, 0x87, 0xEC, 0xE4, 0xFF
  58. vertex 717, 227, -204, 1726, 990, 0x87, 0xEC, 0xE4, 0xFF
  59. vertex 637, -77, 350, -294, 348, 0x83, 0x00, 0xEE, 0xFF
  60. vertex 717, 227, -204, 1726, 990, 0x83, 0x00, 0xEE, 0xFF
  61. vertex 717, -284, -204, 1400, -682, 0x83, 0x00, 0xEE, 0xFF
  62. ttm_seg7_vertex_0700D9F8: # 0x0700D9F8 - 0x0700DAE8
  63. vertex -694, 275, 816, 2142, -6010, 0x61, 0xAF, 0x0B, 0xFF
  64. vertex -921, 28, 996, 2116, -5516, 0x61, 0xAF, 0x0B, 0xFF
  65. vertex -875, 28, 592, 2732, -5538, 0x61, 0xAF, 0x0B, 0xFF
  66. vertex -875, 28, 592, 2732, -5538, 0x6F, 0xD6, 0xD6, 0xFF
  67. vertex -875, 284, 336, 3136, -6062, 0x6F, 0xD6, 0xD6, 0xFF
  68. vertex -694, 275, 816, 2142, -6010, 0x6F, 0xD6, 0xD6, 0xFF
  69. vertex -921, 28, 996, 0, 990, 0xD5, 0xB2, 0x59, 0xFF
  70. vertex -526, -21, 1145, 1384, 990, 0xD5, 0xB2, 0x59, 0xFF
  71. vertex -944, 275, 1200, 36, -48, 0xD5, 0xB2, 0x59, 0xFF
  72. vertex -944, 275, 1200, 36, -48, 0xE7, 0xC8, 0x6E, 0xFF
  73. vertex -526, -21, 1145, 1384, 990, 0xE7, 0xC8, 0x6E, 0xFF
  74. vertex -537, 182, 1246, 1384, 232, 0xE7, 0xC8, 0x6E, 0xFF
  75. vertex 1280, 227, -511, 32, -648, 0x51, 0xA0, 0xF5, 0xFF
  76. vertex 717, -284, -204, 0, 990, 0x51, 0xA0, 0xF5, 0xFF
  77. vertex 871, -28, -1230, 1712, -240, 0x51, 0xA0, 0xF5, 0xFF
  78. ttm_seg7_vertex_0700DAE8: # 0x0700DAE8 - 0x0700DBD8
  79. vertex 717, -284, -204, 1956, 990, 0x5B, 0xBC, 0x37, 0xFF
  80. vertex 1280, 227, -511, 2566, -1672, 0x5B, 0xBC, 0x37, 0xFF
  81. vertex 973, 227, 0, 848, -692, 0x5B, 0xBC, 0x37, 0xFF
  82. vertex -526, -21, 1145, 408, -356, 0x17, 0xAA, 0xA7, 0xFF
  83. vertex -921, 28, 996, 0, 990, 0x17, 0xAA, 0xA7, 0xFF
  84. vertex -694, 275, 816, 1234, 990, 0x17, 0xAA, 0xA7, 0xFF
  85. vertex -921, 28, 996, 0, 990, 0xAB, 0xC0, 0x44, 0xFF
  86. vertex -944, 275, 1200, -106, 314, 0xAB, 0xC0, 0x44, 0xFF
  87. vertex -1125, 275, 973, -706, 1064, 0xAB, 0xC0, 0x44, 0xFF
  88. vertex -921, 28, 996, 0, 990, 0xA1, 0xB5, 0x23, 0xFF
  89. vertex -1125, 275, 973, -706, 1064, 0xA1, 0xB5, 0x23, 0xFF
  90. vertex -1282, 275, 545, -1230, 2488, 0xA1, 0xB5, 0x23, 0xFF
  91. vertex -694, 275, 816, 0, 990, 0x51, 0xD1, 0xAC, 0xFF
  92. vertex -514, 182, 1042, 980, 990, 0x51, 0xD1, 0xAC, 0xFF
  93. vertex -526, -21, 1145, 1420, 368, 0x51, 0xD1, 0xAC, 0xFF
  94. ttm_seg7_vertex_0700DBD8: # 0x0700DBD8 - 0x0700DCC8
  95. vertex 614, 126, 303, 4462, 990, 0xBC, 0xE1, 0x9A, 0xFF
  96. vertex 637, -77, 350, 4466, 288, 0xBC, 0xE1, 0x9A, 0xFF
  97. vertex -514, 182, 1042, 0, 990, 0xBC, 0xE1, 0x9A, 0xFF
  98. vertex 637, -77, 350, 4466, 288, 0xBC, 0xD3, 0xA0, 0xFF
  99. vertex -526, -21, 1145, -222, 258, 0xBC, 0xD3, 0xA0, 0xFF
  100. vertex -514, 182, 1042, 0, 990, 0xBC, 0xD3, 0xA0, 0xFF
  101. vertex -526, -21, 1145, 0, 990, 0x3F, 0xD2, 0x63, 0xFF
  102. vertex 681, 127, 442, 4582, 232, 0x3F, 0xD2, 0x63, 0xFF
  103. vertex -537, 182, 1246, -278, 276, 0x3F, 0xD2, 0x63, 0xFF
  104. vertex 973, 227, 0, 0, 2896, 0xF1, 0xA9, 0xA6, 0xFF
  105. vertex 1015, -180, 386, 1186, 1472, 0xF1, 0xA9, 0xA6, 0xFF
  106. vertex 637, -77, 350, 0, 990, 0xF1, 0xA9, 0xA6, 0xFF
  107. vertex 717, -284, -204, 1956, 990, 0x64, 0xBE, 0x27, 0xFF
  108. vertex 973, 227, 0, 848, -692, 0x64, 0xBE, 0x27, 0xFF
  109. vertex 637, -77, 350, 0, 990, 0x64, 0xBE, 0x27, 0xFF
  110. ttm_seg7_vertex_0700DCC8: # 0x0700DCC8 - 0x0700DD28
  111. vertex -921, 28, 996, 0, 990, 0xBF, 0x94, 0xF9, 0xFF
  112. vertex -1282, 275, 545, -1230, 2488, 0xBF, 0x94, 0xF9, 0xFF
  113. vertex -875, 28, 592, 120, 2334, 0xBF, 0x94, 0xF9, 0xFF
  114. vertex -526, -21, 1145, 0, 990, 0x3E, 0xC8, 0x5F, 0xFF
  115. vertex 637, -77, 350, 4660, 990, 0x3E, 0xC8, 0x5F, 0xFF
  116. vertex 681, 127, 442, 4582, 232, 0x3E, 0xC8, 0x5F, 0xFF
  117. ttm_seg7_vertex_0700DD28: # 0x0700DD28 - 0x0700DD88
  118. vertex 681, 127, 442, 4582, 232, 0xE9, 0xD2, 0x73, 0xFF
  119. vertex 637, -77, 350, 4660, 990, 0xE9, 0xD2, 0x73, 0xFF
  120. vertex 1015, -180, 386, 5644, 902, 0xE9, 0xD2, 0x73, 0xFF
  121. vertex 1015, -180, 386, 5644, 902, 0x15, 0x00, 0x7D, 0xFF
  122. vertex 1015, 127, 386, 5604, -14, 0x15, 0x00, 0x7D, 0xFF
  123. vertex 681, 127, 442, 4582, 232, 0x15, 0x00, 0x7D, 0xFF
  124. ttm_seg7_vertex_0700DD88: # 0x0700DD88 - 0x0700DDB8
  125. vertex -1125, 275, 973, 1604, -5244, 0x00, 0x7E, 0x02, 0xFF
  126. vertex -694, 275, 816, 2464, -5558, 0x00, 0x7E, 0x02, 0xFF
  127. vertex -875, 284, 336, 2102, -6516, 0x00, 0x7E, 0x02, 0xFF
  128. ttm_seg7_dl_0700DDB8: # 0x0700DDB8 - 0x0700DF78
  129. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000
  130. gsDPLoadSync
  131. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  132. gsSPLight ttm_seg7_light_0700D708, 1
  133. gsSPLight ttm_seg7_light_0700D700, 2
  134. gsSPVertex ttm_seg7_vertex_0700D748, 16, 0
  135. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  136. gsSP2Triangles 0, 6, 1, 0x0, 7, 8, 9, 0x0
  137. gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
  138. gsSPVertex ttm_seg7_vertex_0700D848, 15, 0
  139. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  140. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  141. gsSP1Triangle 12, 13, 14, 0x0
  142. gsSPVertex ttm_seg7_vertex_0700D938, 12, 0
  143. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  144. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  145. gsSPLight ttm_seg7_light_0700D720, 1
  146. gsSPLight ttm_seg7_light_0700D718, 2
  147. gsSPVertex ttm_seg7_vertex_0700D9F8, 15, 0
  148. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  149. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  150. gsSP1Triangle 12, 13, 14, 0x0
  151. gsSPVertex ttm_seg7_vertex_0700DAE8, 15, 0
  152. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  153. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  154. gsSP1Triangle 12, 13, 14, 0x0
  155. gsSPVertex ttm_seg7_vertex_0700DBD8, 15, 0
  156. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  157. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  158. gsSP1Triangle 12, 13, 14, 0x0
  159. gsSPVertex ttm_seg7_vertex_0700DCC8, 6, 0
  160. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  161. gsSPLight ttm_seg7_light_0700D738, 1
  162. gsSPLight ttm_seg7_light_0700D730, 2
  163. gsSPVertex ttm_seg7_vertex_0700DD28, 6, 0
  164. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  165. gsSPLight ttm_seg7_light_0700D708, 1
  166. gsSPLight ttm_seg7_light_0700D700, 2
  167. gsSPVertex ttm_seg7_vertex_0700DD88, 3, 0
  168. gsSP1Triangle 0, 1, 2, 0x0
  169. gsSPEndDisplayList
  170. glabel ttm_seg7_dl_0700DF78 # 0x0700DF78 - 0x0700DFE8
  171. gsDPPipeSync
  172. 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
  173. gsSPClearGeometryMode G_SHADING_SMOOTH
  174. 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
  175. gsSPTexture -1, -1, 0, 0, 1
  176. gsDPTileSync
  177. 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
  178. gsDPSetTileSize 0, 0, 0, 124, 124
  179. gsSPDisplayList ttm_seg7_dl_0700DDB8
  180. gsSPTexture -1, -1, 0, 0, 0
  181. gsDPPipeSync
  182. 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
  183. gsSPSetGeometryMode G_SHADING_SMOOTH
  184. gsSPEndDisplayList