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.

166 lines
8.3 KiB

6 years ago
  1. ttm_seg7_light_07011680: # 0x07011680 - 0x07011688
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_07011688: # 0x07011688 - 0x07011698
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_07011698: # 0x07011698 - 0x070116A0
  7. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  8. ttm_seg7_light_070116A0: # 0x070116A0 - 0x070116B0
  9. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_070116B0: # 0x070116B0 - 0x070116B8
  12. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  13. ttm_seg7_light_070116B8: # 0x070116B8 - 0x070116C8
  14. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_070116C8: # 0x070116C8 - 0x070117C8
  17. vertex -519, -306, -91, 2524, 990, 0x64, 0x00, 0x4D, 0xFF
  18. vertex -206, -306, -497, 0, 990, 0x64, 0x00, 0x4D, 0xFF
  19. vertex -206, 307, -497, 0, -2076, 0x64, 0x00, 0x4D, 0xFF
  20. vertex -519, 307, -91, 480, 990, 0x00, 0x81, 0x00, 0xFF
  21. vertex -206, 307, -497, 480, 3542, 0x00, 0x81, 0x00, 0xFF
  22. vertex 604, 307, 126, 5588, 3542, 0x00, 0x81, 0x00, 0xFF
  23. vertex 292, 307, 532, 5588, 990, 0x00, 0x81, 0x00, 0xFF
  24. vertex 292, 307, 532, 2524, -2076, 0x9C, 0x00, 0xB3, 0xFF
  25. vertex 604, -306, 126, 0, 990, 0x9C, 0x00, 0xB3, 0xFF
  26. vertex 292, -306, 532, 2522, 990, 0x9C, 0x00, 0xB3, 0xFF
  27. vertex 604, 307, 126, 0, -2076, 0x9C, 0x00, 0xB3, 0xFF
  28. vertex -206, 307, -497, 0, -2076, 0xB3, 0x00, 0x64, 0xFF
  29. vertex -206, -306, -497, 0, 990, 0xB3, 0x00, 0x64, 0xFF
  30. vertex 604, -306, 126, 5078, 990, 0xB3, 0x00, 0x64, 0xFF
  31. vertex 604, 307, 126, 5078, -2076, 0xB3, 0x00, 0x64, 0xFF
  32. vertex -519, 307, -91, 2524, -2076, 0x64, 0x00, 0x4D, 0xFF
  33. ttm_seg7_vertex_070117C8: # 0x070117C8 - 0x07011808
  34. vertex 30, 307, 201, 0, 0, 0xB3, 0x00, 0x64, 0xFF
  35. vertex 355, 102, 451, 990, 990, 0xB3, 0x00, 0x64, 0xFF
  36. vertex 355, 307, 451, 990, 0, 0xB3, 0x00, 0x64, 0xFF
  37. vertex 30, 102, 201, 0, 990, 0xB3, 0x00, 0x64, 0xFF
  38. ttm_seg7_vertex_07011808: # 0x07011808 - 0x070118F8
  39. vertex 336, 307, 307, 734, 0, 0x4D, 0x00, 0x9C, 0xFF
  40. vertex 336, 102, 307, 734, 990, 0x4D, 0x00, 0x9C, 0xFF
  41. vertex 173, 102, 182, 224, 990, 0x4D, 0x00, 0x9C, 0xFF
  42. vertex 280, 307, -123, 0, 0, 0x9C, 0x00, 0xB3, 0xFF
  43. vertex 280, 102, -123, 0, 990, 0x9C, 0x00, 0xB3, 0xFF
  44. vertex 30, 102, 201, 990, 990, 0x9C, 0x00, 0xB3, 0xFF
  45. vertex 30, 307, 201, 990, 0, 0x9C, 0x00, 0xB3, 0xFF
  46. vertex 280, 102, -123, 0, 990, 0x00, 0x81, 0x00, 0xFF
  47. vertex 173, 102, 182, 734, 990, 0x00, 0x81, 0x00, 0xFF
  48. vertex 30, 102, 201, 990, 990, 0x00, 0x81, 0x00, 0xFF
  49. vertex 298, 102, 20, 224, 990, 0x00, 0x81, 0x00, 0xFF
  50. vertex 604, 102, 126, 0, 990, 0x00, 0x81, 0x00, 0xFF
  51. vertex 461, 102, 145, 224, 990, 0x00, 0x81, 0x00, 0xFF
  52. vertex 355, 102, 451, 990, 990, 0x00, 0x81, 0x00, 0xFF
  53. vertex 173, 307, 182, 224, 0, 0x4D, 0x00, 0x9C, 0xFF
  54. ttm_seg7_vertex_070118F8: # 0x070118F8 - 0x070119F8
  55. vertex 173, 307, 182, 734, 0, 0x64, 0x00, 0x4D, 0xFF
  56. vertex 173, 102, 182, 734, 990, 0x64, 0x00, 0x4D, 0xFF
  57. vertex 298, 102, 20, 224, 990, 0x64, 0x00, 0x4D, 0xFF
  58. vertex 461, 307, 145, 224, 0, 0x9C, 0x00, 0xB3, 0xFF
  59. vertex 461, 102, 145, 224, 990, 0x9C, 0x00, 0xB3, 0xFF
  60. vertex 336, 102, 307, 734, 990, 0x9C, 0x00, 0xB3, 0xFF
  61. vertex 336, 307, 307, 734, 0, 0x9C, 0x00, 0xB3, 0xFF
  62. vertex 355, 102, 451, 990, 990, 0x00, 0x81, 0x00, 0xFF
  63. vertex 461, 102, 145, 224, 990, 0x00, 0x81, 0x00, 0xFF
  64. vertex 604, 102, 126, 0, 990, 0x00, 0x81, 0x00, 0xFF
  65. vertex 336, 102, 307, 734, 990, 0x00, 0x81, 0x00, 0xFF
  66. vertex 173, 102, 182, 734, 990, 0x00, 0x81, 0x00, 0xFF
  67. vertex 298, 307, 20, 224, 0, 0xB3, 0x00, 0x64, 0xFF
  68. vertex 461, 102, 145, 734, 990, 0xB3, 0x00, 0x64, 0xFF
  69. vertex 461, 307, 145, 734, 0, 0xB3, 0x00, 0x64, 0xFF
  70. vertex 298, 102, 20, 224, 990, 0xB3, 0x00, 0x64, 0xFF
  71. ttm_seg7_vertex_070119F8: # 0x070119F8 - 0x07011A28
  72. vertex 173, 307, 182, 734, 0, 0x64, 0x00, 0x4D, 0xFF
  73. vertex 298, 102, 20, 224, 990, 0x64, 0x00, 0x4D, 0xFF
  74. vertex 298, 307, 20, 224, 0, 0x64, 0x00, 0x4D, 0xFF
  75. ttm_seg7_vertex_07011A28: # 0x07011A28 - 0x07011A68
  76. vertex 292, -306, 532, -878, -2448, 0x00, 0x7F, 0x00, 0xFF
  77. vertex 604, -306, 126, -254, -3258, 0x00, 0x7F, 0x00, 0xFF
  78. vertex -206, -306, -497, -1874, -4504, 0x00, 0x7F, 0x00, 0xFF
  79. vertex -519, -306, -91, -2498, -3694, 0x00, 0x7F, 0x00, 0xFF
  80. ttm_seg7_vertex_07011A68: # 0x07011A68 - 0x07011AA8
  81. vertex 298, 297, 20, 0, 0, 0x00, 0x81, 0x00, 0xFF
  82. vertex 461, 297, 145, 0, 0, 0x00, 0x81, 0x00, 0xFF
  83. vertex 336, 297, 307, 0, 0, 0x00, 0x81, 0x00, 0xFF
  84. vertex 173, 297, 182, 0, 0, 0x00, 0x81, 0x00, 0xFF
  85. ttm_seg7_dl_07011AA8: # 0x07011AA8 - 0x07011B20
  86. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000000
  87. gsDPLoadSync
  88. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  89. gsSPLight ttm_seg7_light_07011688, 1
  90. gsSPLight ttm_seg7_light_07011680, 2
  91. gsSPVertex ttm_seg7_vertex_070116C8, 16, 0
  92. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  93. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  94. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  95. gsSP2Triangles 11, 13, 14, 0x0, 0, 2, 15, 0x0
  96. gsSPEndDisplayList
  97. ttm_seg7_dl_07011B20: # 0x07011B20 - 0x07011C10
  98. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900A800
  99. gsDPLoadSync
  100. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  101. gsSPVertex ttm_seg7_vertex_070117C8, 4, 0
  102. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  103. gsSPLight ttm_seg7_light_070116A0, 1
  104. gsSPLight ttm_seg7_light_07011698, 2
  105. gsSPVertex ttm_seg7_vertex_07011808, 15, 0
  106. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  107. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  108. gsSP2Triangles 7, 10, 8, 0x0, 7, 11, 12, 0x0
  109. gsSP2Triangles 7, 12, 10, 0x0, 8, 13, 9, 0x0
  110. gsSP1Triangle 0, 2, 14, 0x0
  111. gsSPVertex ttm_seg7_vertex_070118F8, 16, 0
  112. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  113. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  114. gsSP2Triangles 7, 10, 8, 0x0, 11, 10, 7, 0x0
  115. gsSP2Triangles 12, 13, 14, 0x0, 12, 15, 13, 0x0
  116. gsSPVertex ttm_seg7_vertex_070119F8, 3, 0
  117. gsSP1Triangle 0, 1, 2, 0x0
  118. gsSPEndDisplayList
  119. ttm_seg7_dl_07011C10: # 0x07011C10 - 0x07011C48
  120. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  121. gsDPLoadSync
  122. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  123. gsSPVertex ttm_seg7_vertex_07011A28, 4, 0
  124. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  125. gsSPEndDisplayList
  126. ttm_seg7_dl_07011C48: # 0x07011C48 - 0x07011C78
  127. gsSPLight ttm_seg7_light_070116B8, 1
  128. gsSPLight ttm_seg7_light_070116B0, 2
  129. gsSPVertex ttm_seg7_vertex_07011A68, 4, 0
  130. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  131. gsSPEndDisplayList
  132. glabel ttm_seg7_dl_07011C78 # 0x07011C78 - 0x07011D00
  133. gsDPPipeSync
  134. 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
  135. gsSPClearGeometryMode G_SHADING_SMOOTH
  136. 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
  137. gsSPTexture -1, -1, 0, 0, 1
  138. gsDPTileSync
  139. 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
  140. gsDPSetTileSize 0, 0, 0, 124, 124
  141. gsSPDisplayList ttm_seg7_dl_07011AA8
  142. gsSPDisplayList ttm_seg7_dl_07011B20
  143. gsSPDisplayList ttm_seg7_dl_07011C10
  144. gsSPTexture -1, -1, 0, 0, 0
  145. gsDPPipeSync
  146. 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
  147. gsSPDisplayList ttm_seg7_dl_07011C48
  148. gsSPSetGeometryMode G_SHADING_SMOOTH
  149. gsSPEndDisplayList