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

6 years ago
  1. ttm_seg7_light_0700E378: # 0x0700E378 - 0x0700E380
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700E380: # 0x0700E380 - 0x0700E390
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_0700E390: # 0x0700E390 - 0x0700E398
  7. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  8. ttm_seg7_light_0700E398: # 0x0700E398 - 0x0700E3A8
  9. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_0700E3A8: # 0x0700E3A8 - 0x0700E3B0
  12. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  13. ttm_seg7_light_0700E3B0: # 0x0700E3B0 - 0x0700E3C0
  14. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_0700E3C0: # 0x0700E3C0 - 0x0700E4B0
  17. vertex 1741, -812, 1126, 4260, -7594, 0x00, 0x7F, 0x00, 0xFF
  18. vertex 2253, -812, 1126, 5282, -7594, 0x00, 0x7F, 0x00, 0xFF
  19. vertex 2253, -812, 614, 5282, -8616, 0x00, 0x7F, 0x00, 0xFF
  20. vertex 578, -127, 1027, 334, -770, 0x1A, 0x3C, 0x6C, 0xFF
  21. vertex 1033, -838, 1311, 958, 874, 0x1A, 0x3C, 0x6C, 0xFF
  22. vertex 1741, -812, 1126, 2382, 990, 0x1A, 0x3C, 0x6C, 0xFF
  23. vertex 578, -127, 1027, 334, -770, 0x2A, 0x54, 0x54, 0xFF
  24. vertex 1741, -812, 1126, 2382, 990, 0x2A, 0x54, 0x54, 0xFF
  25. vertex 1229, -44, 614, 1854, -1050, 0x2A, 0x54, 0x54, 0xFF
  26. vertex 1558, -812, -1907, 0, 990, 0xE1, 0x65, 0xBB, 0xFF
  27. vertex -488, -1129, -1430, 4206, 826, 0xE1, 0x65, 0xBB, 0xFF
  28. vertex 563, -454, -921, 2172, -734, 0xE1, 0x65, 0xBB, 0xFF
  29. vertex -488, -1129, -1430, 4206, 826, 0x05, 0x46, 0x97, 0xFF
  30. vertex 205, -44, -665, 2810, -1736, 0x05, 0x46, 0x97, 0xFF
  31. vertex 563, -454, -921, 2172, -734, 0x05, 0x46, 0x97, 0xFF
  32. ttm_seg7_vertex_0700E4B0: # 0x0700E4B0 - 0x0700E590
  33. vertex -818, 1235, 102, 4606, -4824, 0x02, 0x42, 0x94, 0xFF
  34. vertex 205, -44, -665, 2810, -1736, 0x02, 0x42, 0x94, 0xFF
  35. vertex -476, -1233, -1415, 4230, 990, 0x02, 0x42, 0x94, 0xFF
  36. vertex 1741, -812, 1126, 4260, -7594, 0x00, 0x7F, 0x00, 0xFF
  37. vertex 2253, -812, 614, 5282, -8616, 0x00, 0x7F, 0x00, 0xFF
  38. vertex 1997, -812, -665, 4772, -11172, 0x00, 0x7F, 0x00, 0xFF
  39. vertex 2355, -812, -409, 5486, -10660, 0x00, 0x7F, 0x00, 0xFF
  40. vertex 2355, -812, -1433, 5486, -12704, 0x00, 0x7F, 0x00, 0xFF
  41. vertex -1842, -812, 102, 0, 990, 0xDE, 0x11, 0x78, 0xFF
  42. vertex -562, -44, 358, 2564, -6, 0xDE, 0x11, 0x78, 0xFF
  43. vertex -818, 1235, 102, 3128, -2312, 0xDE, 0x11, 0x78, 0xFF
  44. vertex -562, -44, 358, 2564, -6, 0x61, 0x22, 0x49, 0xFF
  45. vertex 205, -44, -665, 4596, 990, 0x61, 0x22, 0x49, 0xFF
  46. vertex -818, 1235, 102, 3128, -2312, 0x61, 0x22, 0x49, 0xFF
  47. ttm_seg7_vertex_0700E590: # 0x0700E590 - 0x0700E680
  48. vertex -562, -44, 358, 2434, -758, 0xBD, 0x5F, 0x32, 0xFF
  49. vertex -1842, -812, 102, 0, 990, 0xBD, 0x5F, 0x32, 0xFF
  50. vertex 205, -44, 1382, 4818, -234, 0xBD, 0x5F, 0x32, 0xFF
  51. vertex -1842, -812, 102, 0, 990, 0xBD, 0x00, 0x6B, 0xFF
  52. vertex 660, -755, 1667, 5862, 990, 0xBD, 0x00, 0x6B, 0xFF
  53. vertex 205, -44, 1382, 4818, -234, 0xBD, 0x00, 0x6B, 0xFF
  54. vertex 660, -755, 1667, 2102, -6516, 0xFF, 0x7E, 0xFF, 0xFF
  55. vertex -1842, -812, 102, -2892, -9638, 0xFF, 0x7E, 0xFF, 0xFF
  56. vertex -2354, -812, 614, -3914, -8616, 0xFF, 0x7E, 0xFF, 0xFF
  57. vertex 1997, -812, -665, 3582, 990, 0x64, 0x4C, 0x0E, 0xFF
  58. vertex 1229, -44, 614, 836, -930, 0x64, 0x4C, 0x0E, 0xFF
  59. vertex 1741, -812, 1126, 0, 990, 0x64, 0x4C, 0x0E, 0xFF
  60. vertex 253, -764, 1877, 1290, -6098, 0xFE, 0x7E, 0x00, 0xFF
  61. vertex 660, -755, 1667, 2102, -6516, 0xFE, 0x7E, 0x00, 0xFF
  62. vertex -2354, -812, 614, -3914, -8616, 0xFE, 0x7E, 0x00, 0xFF
  63. ttm_seg7_vertex_0700E680: # 0x0700E680 - 0x0700E6E0
  64. vertex -488, -1129, -1430, 1552, 786, 0xA2, 0x01, 0x54, 0xFF
  65. vertex -476, -1233, -1415, 1604, 990, 0xA2, 0x01, 0x54, 0xFF
  66. vertex 205, -44, -665, 3474, -1504, 0xA2, 0x01, 0x54, 0xFF
  67. vertex -476, -1233, -1415, 0, 990, 0xAD, 0x29, 0xAA, 0xFF
  68. vertex -1842, -812, 102, 4116, 642, 0xAD, 0x29, 0xAA, 0xFF
  69. vertex -818, 1235, 102, 3228, -3582, 0xAD, 0x29, 0xAA, 0xFF
  70. ttm_seg7_vertex_0700E6E0: # 0x0700E6E0 - 0x0700E720
  71. vertex 660, -755, 1667, 0, 990, 0x4E, 0x4C, 0x40, 0xFF
  72. vertex 1033, -838, 1311, 958, 874, 0x4E, 0x4C, 0x40, 0xFF
  73. vertex 578, -127, 1027, 334, -770, 0x4E, 0x4C, 0x40, 0xFF
  74. vertex 205, -44, 1382, -654, -654, 0x4E, 0x4C, 0x40, 0xFF
  75. ttm_seg7_vertex_0700E720: # 0x0700E720 - 0x0700E820
  76. vertex -562, -44, 358, 4568, -10562, 0xFF, 0x7E, 0x01, 0xFF
  77. vertex 205, -44, 1382, 6100, -8518, 0xFF, 0x7E, 0x01, 0xFF
  78. vertex 578, -34, 1027, 6846, -9228, 0xFF, 0x7E, 0x01, 0xFF
  79. vertex 2355, -812, -1433, 10392, -14138, 0x10, 0x7A, 0xE5, 0xFF
  80. vertex 563, -454, -921, 6816, -13116, 0x10, 0x7A, 0xE5, 0xFF
  81. vertex 1139, -423, -438, 7966, -12154, 0x10, 0x7A, 0xE5, 0xFF
  82. vertex 2355, -812, -1433, 10392, -14138, 0x39, 0x6E, 0x1A, 0xFF
  83. vertex 1139, -423, -438, 7966, -12154, 0x39, 0x6E, 0x1A, 0xFF
  84. vertex 1997, -812, -665, 9678, -12606, 0x39, 0x6E, 0x1A, 0xFF
  85. vertex 1558, -812, -1907, 8800, -15086, 0x10, 0x7A, 0xE5, 0xFF
  86. vertex 1139, -423, -438, 7966, -12154, 0x35, 0x5A, 0xBA, 0xFF
  87. vertex 563, -454, -921, 6816, -13116, 0x35, 0x5A, 0xBA, 0xFF
  88. vertex 205, -44, -665, 6100, -12606, 0x35, 0x5A, 0xBA, 0xFF
  89. vertex 1997, -812, -665, 9678, -12606, 0x27, 0x70, 0xD5, 0xFF
  90. vertex 1139, -423, -438, 7966, -12154, 0x27, 0x70, 0xD5, 0xFF
  91. vertex 1229, -44, 614, 8144, -10050, 0x27, 0x70, 0xD5, 0xFF
  92. ttm_seg7_vertex_0700E820: # 0x0700E820 - 0x0700E8B0
  93. vertex 1229, -44, 614, 8144, -10050, 0x35, 0x6A, 0xD5, 0xFF
  94. vertex 1139, -423, -438, 7966, -12154, 0x35, 0x6A, 0xD5, 0xFF
  95. vertex 205, -44, -665, 6100, -12606, 0x35, 0x6A, 0xD5, 0xFF
  96. vertex -562, -44, 358, 4568, -10562, 0x00, 0x7E, 0x00, 0xFF
  97. vertex 578, -34, 1027, 6846, -9228, 0x00, 0x7E, 0x00, 0xFF
  98. vertex 205, -44, -665, 6100, -12606, 0x00, 0x7E, 0x00, 0xFF
  99. vertex 578, -34, 1027, 6846, -9228, 0x01, 0x7E, 0xFF, 0xFF
  100. vertex 1229, -44, 614, 8144, -10050, 0x01, 0x7E, 0xFF, 0xFF
  101. vertex 205, -44, -665, 6100, -12606, 0x01, 0x7E, 0xFF, 0xFF
  102. ttm_seg7_vertex_0700E8B0: # 0x0700E8B0 - 0x0700E910
  103. vertex 578, -34, 1027, 6846, -9228, 0x44, 0x00, 0x6B, 0xFF
  104. vertex 578, -127, 1027, 6846, -9228, 0x44, 0x00, 0x6B, 0xFF
  105. vertex 1229, -44, 614, 8144, -10050, 0x44, 0x00, 0x6B, 0xFF
  106. vertex 578, -127, 1027, 6846, -9228, 0x57, 0x00, 0x5B, 0xFF
  107. vertex 578, -34, 1027, 6846, -9228, 0x57, 0x00, 0x5B, 0xFF
  108. vertex 205, -44, 1382, 6100, -8518, 0x57, 0x00, 0x5B, 0xFF
  109. ttm_seg7_dl_0700E910: # 0x0700E910 - 0x0700EA28
  110. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000
  111. gsDPLoadSync
  112. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  113. gsSPLight ttm_seg7_light_0700E380, 1
  114. gsSPLight ttm_seg7_light_0700E378, 2
  115. gsSPVertex ttm_seg7_vertex_0700E3C0, 15, 0
  116. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  117. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  118. gsSP1Triangle 12, 13, 14, 0x0
  119. gsSPVertex ttm_seg7_vertex_0700E4B0, 14, 0
  120. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  121. gsSP2Triangles 4, 6, 5, 0x0, 6, 7, 5, 0x0
  122. gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
  123. gsSPVertex ttm_seg7_vertex_0700E590, 15, 0
  124. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  125. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  126. gsSP1Triangle 12, 13, 14, 0x0
  127. gsSPLight ttm_seg7_light_0700E398, 1
  128. gsSPLight ttm_seg7_light_0700E390, 2
  129. gsSPVertex ttm_seg7_vertex_0700E680, 6, 0
  130. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  131. gsSPLight ttm_seg7_light_0700E380, 1
  132. gsSPLight ttm_seg7_light_0700E378, 2
  133. gsSPVertex ttm_seg7_vertex_0700E6E0, 4, 0
  134. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  135. gsSPEndDisplayList
  136. ttm_seg7_dl_0700EA28: # 0x0700EA28 - 0x0700EAC8
  137. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  138. gsDPLoadSync
  139. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  140. gsSPVertex ttm_seg7_vertex_0700E720, 16, 0
  141. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  142. gsSP2Triangles 6, 7, 8, 0x0, 4, 3, 9, 0x0
  143. gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
  144. gsSPVertex ttm_seg7_vertex_0700E820, 9, 0
  145. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  146. gsSP1Triangle 6, 7, 8, 0x0
  147. gsSPLight ttm_seg7_light_0700E3B0, 1
  148. gsSPLight ttm_seg7_light_0700E3A8, 2
  149. gsSPVertex ttm_seg7_vertex_0700E8B0, 6, 0
  150. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  151. gsSPEndDisplayList
  152. glabel ttm_seg7_dl_0700EAC8 # 0x0700EAC8 - 0x0700EB40
  153. gsDPPipeSync
  154. 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
  155. gsSPClearGeometryMode G_SHADING_SMOOTH
  156. 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
  157. gsSPTexture -1, -1, 0, 0, 1
  158. gsDPTileSync
  159. 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
  160. gsDPSetTileSize 0, 0, 0, 124, 124
  161. gsSPDisplayList ttm_seg7_dl_0700E910
  162. gsSPDisplayList ttm_seg7_dl_0700EA28
  163. gsSPTexture -1, -1, 0, 0, 0
  164. gsDPPipeSync
  165. 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
  166. gsSPSetGeometryMode G_SHADING_SMOOTH
  167. gsSPEndDisplayList