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.

178 lines
8.8 KiB

6 years ago
  1. ttm_seg7_light_0700C488: # 0x0700C488 - 0x0700C490
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700C490: # 0x0700C490 - 0x0700C4A0
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_0700C4A0: # 0x0700C4A0 - 0x0700C4A8
  7. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  8. ttm_seg7_light_0700C4A8: # 0x0700C4A8 - 0x0700C4B8
  9. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_0700C4B8: # 0x0700C4B8 - 0x0700C4C0
  12. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  13. ttm_seg7_light_0700C4C0: # 0x0700C4C0 - 0x0700C4D0
  14. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_0700C4D0: # 0x0700C4D0 - 0x0700C5D0
  17. vertex 742, 688, -836, -414, -3010, 0x97, 0x41, 0x1A, 0xFF
  18. vertex -306, -1307, -97, 0, 990, 0x97, 0x41, 0x1A, 0xFF
  19. vertex 861, 688, -362, 548, -2976, 0x97, 0x41, 0x1A, 0xFF
  20. vertex 861, 688, -362, 548, -2976, 0x93, 0x40, 0x04, 0xFF
  21. vertex -306, -1307, -97, 0, 990, 0x93, 0x40, 0x04, 0xFF
  22. vertex 682, 358, 10, 1066, -2296, 0x93, 0x40, 0x04, 0xFF
  23. vertex 702, 694, 312, 1660, -2948, 0x8F, 0xDF, 0x2D, 0xFF
  24. vertex 682, 358, 10, 1066, -2296, 0x8F, 0xDF, 0x2D, 0xFF
  25. vertex 922, -329, 102, 1374, -912, 0x8F, 0xDF, 0x2D, 0xFF
  26. vertex 1124, 688, -90, 1132, 994, 0x7A, 0x13, 0x1B, 0xFF
  27. vertex 1043, 1309, -173, 1122, -244, 0x7A, 0x13, 0x1B, 0xFF
  28. vertex 894, 1309, 479, 8, -236, 0x7A, 0x13, 0x1B, 0xFF
  29. vertex 1416, 688, -368, 1938, 990, 0x57, 0x00, 0x5B, 0xFF
  30. vertex 1124, 688, -90, 1132, 994, 0x57, 0x00, 0x5B, 0xFF
  31. vertex 922, -329, 102, 586, 3028, 0x57, 0x00, 0x5B, 0xFF
  32. vertex 702, 694, 312, 0, 990, 0x57, 0x00, 0x5B, 0xFF
  33. ttm_seg7_vertex_0700C5D0: # 0x0700C5D0 - 0x0700C600
  34. vertex -306, -1307, -97, 6028, -1962, 0xE6, 0x07, 0x7C, 0xFF
  35. vertex 922, -329, 102, 8232, -3916, 0xE6, 0x07, 0x7C, 0xFF
  36. vertex 682, 358, 10, 7738, -5288, 0xE6, 0x07, 0x7C, 0xFF
  37. ttm_seg7_vertex_0700C600: # 0x0700C600 - 0x0700C690
  38. vertex 702, 694, 312, 1072, 978, 0xBF, 0xB5, 0xB2, 0xFF
  39. vertex 387, 1309, -20, 1132, -250, 0xBF, 0xB5, 0xB2, 0xFF
  40. vertex 596, 1309, -193, 590, -250, 0xBF, 0xB5, 0xB2, 0xFF
  41. vertex 596, 1309, -193, 694, -4210, 0x83, 0xF9, 0x10, 0xFF
  42. vertex 682, 358, 10, 1066, -2296, 0x83, 0xF9, 0x10, 0xFF
  43. vertex 702, 694, 312, 1660, -2948, 0x83, 0xF9, 0x10, 0xFF
  44. vertex 702, 694, 312, 1660, -2948, 0x95, 0xC0, 0xEF, 0xFF
  45. vertex 354, 1309, 181, 1190, -4192, 0x95, 0xC0, 0xEF, 0xFF
  46. vertex 387, 1309, -20, 846, -4204, 0x95, 0xC0, 0xEF, 0xFF
  47. ttm_seg7_vertex_0700C690: # 0x0700C690 - 0x0700C780
  48. vertex 1043, 1309, -173, -394, -250, 0x05, 0x23, 0x87, 0xFF
  49. vertex 861, 688, -362, 0, 990, 0x05, 0x23, 0x87, 0xFF
  50. vertex 596, 1309, -193, 498, -250, 0x05, 0x23, 0x87, 0xFF
  51. vertex 702, 694, 312, 1660, -2948, 0x91, 0xC4, 0x0C, 0xFF
  52. vertex 428, 1309, 816, 2414, -4148, 0x91, 0xC4, 0x0C, 0xFF
  53. vertex 354, 1309, 181, 1190, -4192, 0x91, 0xC4, 0x0C, 0xFF
  54. vertex 894, 1309, 479, 8, -236, 0x50, 0xD0, 0x55, 0xFF
  55. vertex 702, 694, 312, 0, 990, 0x50, 0xD0, 0x55, 0xFF
  56. vertex 1124, 688, -90, 1132, 994, 0x50, 0xD0, 0x55, 0xFF
  57. vertex 702, 694, 312, 0, 990, 0x45, 0xD1, 0x5F, 0xFF
  58. vertex 894, 1309, 479, 8, -236, 0x45, 0xD1, 0x5F, 0xFF
  59. vertex 428, 1309, 816, -1128, -230, 0x45, 0xD1, 0x5F, 0xFF
  60. vertex 596, 1309, -193, 590, -250, 0x9A, 0xE8, 0xBA, 0xFF
  61. vertex 861, 688, -362, 0, 990, 0x9A, 0xE8, 0xBA, 0xFF
  62. vertex 682, 358, 10, 718, 1648, 0x9A, 0xE8, 0xBA, 0xFF
  63. ttm_seg7_vertex_0700C780: # 0x0700C780 - 0x0700C7B0
  64. vertex 1043, 1309, -173, 200, -250, 0x5B, 0x00, 0xA8, 0xFF
  65. vertex 1124, 688, -90, 0, 990, 0x5B, 0x00, 0xA8, 0xFF
  66. vertex 861, 688, -362, 724, 990, 0x5B, 0x00, 0xA8, 0xFF
  67. ttm_seg7_vertex_0700C7B0: # 0x0700C7B0 - 0x0700C810
  68. vertex 387, 1309, -20, 4216, -3960, 0x00, 0x7F, 0x00, 0xFF
  69. vertex 354, 1309, 181, 4150, -3556, 0x00, 0x7F, 0x00, 0xFF
  70. vertex 428, 1309, 816, 4298, -2288, 0x00, 0x7F, 0x00, 0xFF
  71. vertex 1043, 1309, -173, 5526, -4266, 0x00, 0x7F, 0x00, 0xFF
  72. vertex 596, 1309, -193, 4634, -4304, 0x00, 0x7F, 0x00, 0xFF
  73. vertex 894, 1309, 479, 5228, -2962, 0x00, 0x7F, 0x00, 0xFF
  74. ttm_seg7_vertex_0700C810: # 0x0700C810 - 0x0700C850
  75. vertex 861, 688, -362, 5162, -4642, 0x00, 0x7F, 0x00, 0xFF
  76. vertex 1124, 688, -90, 5688, -4100, 0x00, 0x7F, 0x00, 0xFF
  77. vertex 1416, 688, -368, 6270, -4656, 0x00, 0x7F, 0x00, 0xFF
  78. vertex 742, 688, -836, 4924, -5590, 0x00, 0x7F, 0x00, 0xFF
  79. ttm_seg7_vertex_0700C850: # 0x0700C850 - 0x0700C8C0
  80. vertex 354, 1309, 181, 3648, 990, 0x7D, 0x00, 0x13, 0xFF
  81. vertex 354, 1206, 181, 3648, 990, 0x7D, 0x00, 0x13, 0xFF
  82. vertex 370, 1155, 80, 3648, 0, 0x7D, 0x00, 0x13, 0xFF
  83. vertex 354, 1309, 181, 3648, 990, 0x7D, 0x00, 0x14, 0xFF
  84. vertex 387, 1206, -20, 3648, -1054, 0x7D, 0x00, 0x14, 0xFF
  85. vertex 387, 1309, -20, 3648, -1054, 0x7D, 0x00, 0x14, 0xFF
  86. vertex 370, 1155, 80, 3648, 0, 0x7D, 0x00, 0x14, 0xFF
  87. ttm_seg7_vertex_0700C8C0: # 0x0700C8C0 - 0x0700C900
  88. vertex 387, 1309, -20, 3648, -1054, 0x00, 0x7F, 0x00, 0xFF
  89. vertex -1463, 1309, -121, 0, 990, 0x00, 0x7F, 0x00, 0xFF
  90. vertex 354, 1309, 181, 3648, 990, 0x00, 0x7F, 0x00, 0xFF
  91. vertex -1430, 1309, -323, 0, -1054, 0x00, 0x7F, 0x00, 0xFF
  92. ttm_seg7_dl_0700C900: # 0x0700C900 - 0x0700C9F8
  93. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000
  94. gsDPLoadSync
  95. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  96. gsSPLight ttm_seg7_light_0700C490, 1
  97. gsSPLight ttm_seg7_light_0700C488, 2
  98. gsSPVertex ttm_seg7_vertex_0700C4D0, 16, 0
  99. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  100. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  101. gsSP2Triangles 12, 13, 14, 0x0, 14, 13, 15, 0x0
  102. gsSPVertex ttm_seg7_vertex_0700C5D0, 3, 0
  103. gsSP1Triangle 0, 1, 2, 0x0
  104. gsSPLight ttm_seg7_light_0700C4A8, 1
  105. gsSPLight ttm_seg7_light_0700C4A0, 2
  106. gsSPVertex ttm_seg7_vertex_0700C600, 9, 0
  107. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  108. gsSP1Triangle 6, 7, 8, 0x0
  109. gsSPLight ttm_seg7_light_0700C4C0, 1
  110. gsSPLight ttm_seg7_light_0700C4B8, 2
  111. gsSPVertex ttm_seg7_vertex_0700C690, 15, 0
  112. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  113. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  114. gsSP1Triangle 12, 13, 14, 0x0
  115. gsSPVertex ttm_seg7_vertex_0700C780, 3, 0
  116. gsSP1Triangle 0, 1, 2, 0x0
  117. gsSPEndDisplayList
  118. ttm_seg7_dl_0700C9F8: # 0x0700C9F8 - 0x0700CA78
  119. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  120. gsDPLoadSync
  121. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  122. gsSPLight ttm_seg7_light_0700C490, 1
  123. gsSPLight ttm_seg7_light_0700C488, 2
  124. gsSPVertex ttm_seg7_vertex_0700C7B0, 6, 0
  125. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  126. gsSP2Triangles 0, 5, 3, 0x0, 0, 2, 5, 0x0
  127. gsSPLight ttm_seg7_light_0700C4C0, 1
  128. gsSPLight ttm_seg7_light_0700C4B8, 2
  129. gsSPVertex ttm_seg7_vertex_0700C810, 4, 0
  130. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  131. gsSPEndDisplayList
  132. ttm_seg7_dl_0700CA78: # 0x0700CA78 - 0x0700CAE0
  133. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001800
  134. gsDPLoadSync
  135. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  136. gsSPVertex ttm_seg7_vertex_0700C850, 7, 0
  137. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  138. gsSP1Triangle 3, 6, 4, 0x0
  139. gsSPLight ttm_seg7_light_0700C490, 1
  140. gsSPLight ttm_seg7_light_0700C488, 2
  141. gsSPVertex ttm_seg7_vertex_0700C8C0, 4, 0
  142. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  143. gsSPEndDisplayList
  144. glabel ttm_seg7_dl_0700CAE0 # 0x0700CAE0 - 0x0700CB60
  145. gsDPPipeSync
  146. 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
  147. gsSPClearGeometryMode G_SHADING_SMOOTH
  148. 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
  149. gsSPTexture -1, -1, 0, 0, 1
  150. gsDPTileSync
  151. 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
  152. gsDPSetTileSize 0, 0, 0, 124, 124
  153. gsSPDisplayList ttm_seg7_dl_0700C900
  154. gsSPDisplayList ttm_seg7_dl_0700C9F8
  155. gsSPDisplayList ttm_seg7_dl_0700CA78
  156. gsSPTexture -1, -1, 0, 0, 0
  157. gsDPPipeSync
  158. 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
  159. gsSPSetGeometryMode G_SHADING_SMOOTH
  160. gsSPEndDisplayList