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.

161 lines
8.9 KiB

6 years ago
  1. ttm_seg7_light_0700F300: # 0x0700F300 - 0x0700F308
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700F308: # 0x0700F308 - 0x0700F318
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_vertex_0700F318: # 0x0700F318 - 0x0700F418
  7. vertex 515, 202, -402, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  8. vertex 474, 202, -408, 258, 700, 0x00, 0x7F, 0x00, 0xFF
  9. vertex 491, 202, -385, 0, 700, 0x00, 0x7F, 0x00, 0xFF
  10. vertex -31, 202, -485, 258, 1278, 0x00, 0x7F, 0x00, 0xFF
  11. vertex 8, 202, -479, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  12. vertex -8, 202, -502, 0, 1278, 0x00, 0x7F, 0x00, 0xFF
  13. vertex -14, 202, -462, 258, 990, 0x00, 0x7F, 0x00, 0xFF
  14. vertex 18, 202, 388, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  15. vertex -22, 202, 382, 376, 990, 0x00, 0x7F, 0x00, 0xFF
  16. vertex -28, 202, 422, 376, 582, 0x00, 0x7F, 0x00, 0xFF
  17. vertex 12, 202, 429, 0, 582, 0x00, 0x7F, 0x00, 0xFF
  18. vertex -488, 202, 312, 376, 990, 0x00, 0x7F, 0x00, 0xFF
  19. vertex -453, 202, 359, 0, 582, 0x00, 0x7F, 0x00, 0xFF
  20. vertex -447, 202, 318, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  21. vertex -494, 202, 352, 376, 582, 0x00, 0x7F, 0x00, 0xFF
  22. vertex 497, 202, -426, 258, 990, 0x00, 0x7F, 0x00, 0xFF
  23. ttm_seg7_vertex_0700F418: # 0x0700F418 - 0x0700F508
  24. vertex -14, -250, -462, 3982, 700, 0x9A, 0x00, 0x4B, 0xFF
  25. vertex -31, 202, -485, 0, 990, 0x9A, 0x00, 0x4B, 0xFF
  26. vertex -31, -252, -485, 4002, 990, 0x9A, 0x00, 0x4B, 0xFF
  27. vertex -31, -252, -485, 4002, 700, 0xB5, 0x00, 0x9A, 0xFF
  28. vertex -31, 202, -485, 0, 700, 0xB5, 0x00, 0x9A, 0xFF
  29. vertex -8, 202, -502, 0, 990, 0xB5, 0x00, 0x9A, 0xFF
  30. vertex -8, -248, -502, 3970, 990, 0xB5, 0x00, 0x9A, 0xFF
  31. vertex -8, -248, -502, 3970, 700, 0x68, 0x00, 0xB8, 0xFF
  32. vertex -8, 202, -502, 0, 700, 0x68, 0x00, 0xB8, 0xFF
  33. vertex 8, 202, -479, 0, 990, 0x68, 0x00, 0xB8, 0xFF
  34. vertex 8, -246, -479, 3950, 990, 0x68, 0x00, 0xB8, 0xFF
  35. vertex 8, -246, -479, 3950, 700, 0x4D, 0x00, 0x64, 0xFF
  36. vertex -14, 202, -462, 0, 990, 0x4D, 0x00, 0x64, 0xFF
  37. vertex -14, -250, -462, 3982, 990, 0x4D, 0x00, 0x64, 0xFF
  38. vertex 8, 202, -479, 0, 700, 0x4D, 0x00, 0x64, 0xFF
  39. ttm_seg7_vertex_0700F508: # 0x0700F508 - 0x0700F5F8
  40. vertex 515, -171, -402, -2996, 702, 0x65, 0x00, 0xB4, 0xFF
  41. vertex 497, -174, -426, -3018, 990, 0x65, 0x00, 0xB4, 0xFF
  42. vertex 497, 202, -426, 238, 990, 0x65, 0x00, 0xB4, 0xFF
  43. vertex -14, -250, -462, 3982, 700, 0x9A, 0x00, 0x4B, 0xFF
  44. vertex -14, 202, -462, 0, 700, 0x9A, 0x00, 0x4B, 0xFF
  45. vertex -31, 202, -485, 0, 990, 0x9A, 0x00, 0x4B, 0xFF
  46. vertex 491, -175, -385, -2358, 1278, 0x9A, 0x00, 0x4B, 0xFF
  47. vertex 491, 202, -385, 990, 1278, 0x9A, 0x00, 0x4B, 0xFF
  48. vertex 474, 202, -408, 990, 990, 0x9A, 0x00, 0x4B, 0xFF
  49. vertex 474, -177, -408, -2380, 990, 0x9A, 0x00, 0x4B, 0xFF
  50. vertex 497, 202, -426, 990, 700, 0xB2, 0x00, 0x9C, 0xFF
  51. vertex 497, -174, -426, -2266, 702, 0xB2, 0x00, 0x9C, 0xFF
  52. vertex 474, -177, -408, -2302, 990, 0xB2, 0x00, 0x9C, 0xFF
  53. vertex 474, 202, -408, 990, 990, 0xB2, 0x00, 0x9C, 0xFF
  54. vertex 515, 202, -402, 238, 700, 0x65, 0x00, 0xB4, 0xFF
  55. ttm_seg7_vertex_0700F5F8: # 0x0700F5F8 - 0x0700F6E8
  56. vertex -28, -104, 422, -540, 1396, 0x83, 0x00, 0xEE, 0xFF
  57. vertex -22, 202, 382, 2012, 990, 0x83, 0x00, 0xEE, 0xFF
  58. vertex -22, -104, 382, -540, 990, 0x83, 0x00, 0xEE, 0xFF
  59. vertex 515, -171, -402, -2326, 1278, 0x49, 0x00, 0x67, 0xFF
  60. vertex 515, 202, -402, 990, 1278, 0x49, 0x00, 0x67, 0xFF
  61. vertex 491, 202, -385, 990, 990, 0x49, 0x00, 0x67, 0xFF
  62. vertex 491, -175, -385, -2358, 990, 0x49, 0x00, 0x67, 0xFF
  63. vertex 18, -104, 388, -1052, 990, 0x7D, 0x00, 0x12, 0xFF
  64. vertex 18, 202, 388, 1502, 990, 0x7D, 0x00, 0x12, 0xFF
  65. vertex 12, 202, 429, 1502, 582, 0x7D, 0x00, 0x12, 0xFF
  66. vertex 12, -104, 429, -1052, 582, 0x7D, 0x00, 0x12, 0xFF
  67. vertex 12, -104, 429, -542, 1396, 0xEB, 0x00, 0x7D, 0xFF
  68. vertex -28, 202, 422, 2012, 990, 0xEB, 0x00, 0x7D, 0xFF
  69. vertex -28, -104, 422, -540, 990, 0xEB, 0x00, 0x7D, 0xFF
  70. vertex 12, 202, 429, 2012, 1396, 0xEB, 0x00, 0x7D, 0xFF
  71. ttm_seg7_vertex_0700F6E8: # 0x0700F6E8 - 0x0700F7D8
  72. vertex -447, -104, 318, 0, 990, 0x7D, 0x00, 0x12, 0xFF
  73. vertex -447, 202, 318, 2524, 990, 0x7D, 0x00, 0x12, 0xFF
  74. vertex -453, 202, 359, 2524, 582, 0x7D, 0x00, 0x12, 0xFF
  75. vertex -28, -104, 422, -540, 1396, 0x83, 0x00, 0xEE, 0xFF
  76. vertex -28, 202, 422, 2012, 1396, 0x83, 0x00, 0xEE, 0xFF
  77. vertex -22, 202, 382, 2012, 990, 0x83, 0x00, 0xEE, 0xFF
  78. vertex -22, -104, 382, -1052, 990, 0x12, 0x00, 0x83, 0xFF
  79. vertex 18, 202, 388, 1500, 582, 0x12, 0x00, 0x83, 0xFF
  80. vertex 18, -104, 388, -1052, 582, 0x12, 0x00, 0x83, 0xFF
  81. vertex -22, 202, 382, 1500, 990, 0x12, 0x00, 0x83, 0xFF
  82. vertex -488, -104, 312, -1052, 990, 0x12, 0x00, 0x83, 0xFF
  83. vertex -447, 202, 318, 1500, 582, 0x12, 0x00, 0x83, 0xFF
  84. vertex -447, -104, 318, -1052, 582, 0x12, 0x00, 0x83, 0xFF
  85. vertex -488, 202, 312, 1500, 990, 0x12, 0x00, 0x83, 0xFF
  86. vertex -453, -104, 359, 0, 582, 0x7D, 0x00, 0x12, 0xFF
  87. ttm_seg7_vertex_0700F7D8: # 0x0700F7D8 - 0x0700F858
  88. vertex -453, -104, 359, -540, 1396, 0xEB, 0x00, 0x7D, 0xFF
  89. vertex -494, 202, 352, 2012, 990, 0xEB, 0x00, 0x7D, 0xFF
  90. vertex -494, -104, 352, -540, 990, 0xEB, 0x00, 0x7D, 0xFF
  91. vertex -453, 202, 359, 2012, 1396, 0xEB, 0x00, 0x7D, 0xFF
  92. vertex -494, -104, 352, 2524, 582, 0x83, 0x00, 0xEE, 0xFF
  93. vertex -488, 202, 312, 0, 990, 0x83, 0x00, 0xEE, 0xFF
  94. vertex -488, -104, 312, 2524, 990, 0x83, 0x00, 0xEE, 0xFF
  95. vertex -494, 202, 352, 0, 582, 0x83, 0x00, 0xEE, 0xFF
  96. ttm_seg7_dl_0700F858: # 0x0700F858 - 0x0700F8D0
  97. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001800
  98. gsDPLoadSync
  99. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  100. gsSPLight ttm_seg7_light_0700F308, 1
  101. gsSPLight ttm_seg7_light_0700F300, 2
  102. gsSPVertex ttm_seg7_vertex_0700F318, 16, 0
  103. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  104. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  105. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  106. gsSP2Triangles 11, 14, 12, 0x0, 0, 15, 1, 0x0
  107. gsSPEndDisplayList
  108. ttm_seg7_dl_0700F8D0: # 0x0700F8D0 - 0x0700FA18
  109. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09005000
  110. gsDPLoadSync
  111. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  112. gsSPVertex ttm_seg7_vertex_0700F418, 15, 0
  113. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  114. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  115. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  116. gsSP1Triangle 11, 14, 12, 0x0
  117. gsSPVertex ttm_seg7_vertex_0700F508, 15, 0
  118. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  119. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  120. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  121. gsSP1Triangle 14, 0, 2, 0x0
  122. gsSPVertex ttm_seg7_vertex_0700F5F8, 15, 0
  123. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  124. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  125. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  126. gsSP1Triangle 11, 14, 12, 0x0
  127. gsSPVertex ttm_seg7_vertex_0700F6E8, 15, 0
  128. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  129. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  130. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  131. gsSP1Triangle 0, 2, 14, 0x0
  132. gsSPVertex ttm_seg7_vertex_0700F7D8, 8, 0
  133. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  134. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  135. gsSPEndDisplayList
  136. glabel ttm_seg7_dl_0700FA18 # 0x0700FA18 - 0x0700FA90
  137. gsDPPipeSync
  138. 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
  139. gsSPClearGeometryMode G_SHADING_SMOOTH
  140. 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
  141. gsSPTexture -1, -1, 0, 0, 1
  142. gsDPTileSync
  143. 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
  144. gsDPSetTileSize 0, 0, 0, 124, 124
  145. gsSPDisplayList ttm_seg7_dl_0700F858
  146. gsSPDisplayList ttm_seg7_dl_0700F8D0
  147. gsSPTexture -1, -1, 0, 0, 0
  148. gsDPPipeSync
  149. 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
  150. gsSPSetGeometryMode G_SHADING_SMOOTH
  151. gsSPEndDisplayList