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.

143 lines
8.0 KiB

6 years ago
  1. ttm_seg7_light_0702A2A0: # 0x0702A2A0 - 0x0702A2A8
  2. .byte 0x3F, 0x3F, 0x3F, 0x00, 0x3F, 0x3F, 0x3F, 0x00
  3. ttm_seg7_light_0702A2A8: # 0x0702A2A8 - 0x0702A2B8
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_vertex_0702A2B8: # 0x0702A2B8 - 0x0702A3A8
  7. vertex 907, 592, -4401, 2012, 990, 0xA7, 0x00, 0x59, 0xFF
  8. vertex 907, 80, -5220, 0, -3098, 0x81, 0x00, 0x00, 0xFF
  9. vertex 907, 80, -4401, 0, 990, 0xA7, 0x00, 0x59, 0xFF
  10. vertex 6539, 1206, -2252, 0, 990, 0x83, 0x00, 0x14, 0xFF
  11. vertex 6539, 1718, -2252, 2012, 990, 0x82, 0x00, 0x0A, 0xFF
  12. vertex 6381, 1616, -2886, 2012, -3086, 0x89, 0x00, 0x2C, 0xFF
  13. vertex 6381, 1104, -2886, 0, -3086, 0x89, 0x00, 0x2C, 0xFF
  14. vertex 5644, 899, -3933, 0, -3080, 0xB1, 0x00, 0x62, 0xFF
  15. vertex 6071, 1001, -3506, 0, 990, 0x96, 0x00, 0x44, 0xFF
  16. vertex 6071, 1513, -3506, 2012, 990, 0x9E, 0x00, 0x4F, 0xFF
  17. vertex 5644, 1411, -3933, 2012, -3080, 0xBC, 0x00, 0x6A, 0xFF
  18. vertex 4390, 694, -4401, 0, -3086, 0xF1, 0x00, 0x7E, 0xFF
  19. vertex 5024, 1308, -4243, 2012, 990, 0xD9, 0x00, 0x78, 0xFF
  20. vertex 4390, 1206, -4401, 2012, -3086, 0xF1, 0x00, 0x7E, 0xFF
  21. vertex 5024, 796, -4243, 0, 990, 0xD0, 0x00, 0x75, 0xFF
  22. ttm_seg7_vertex_0702A3A8: # 0x0702A3A8 - 0x0702A498
  23. vertex 6259, 1974, 2093, 0, 0, 0xBC, 0x00, 0x96, 0xFF
  24. vertex 6048, 2025, 2198, 0, 990, 0xD5, 0x00, 0x89, 0xFF
  25. vertex 6048, 2537, 2198, 2012, 990, 0xD5, 0x00, 0x89, 0xFF
  26. vertex 907, 592, -4401, 2012, 990, 0xA7, 0x00, 0x59, 0xFF
  27. vertex 907, 592, -5220, 2012, -3098, 0x81, 0x00, 0x00, 0xFF
  28. vertex 907, 80, -5220, 0, -3098, 0x81, 0x00, 0x00, 0xFF
  29. vertex 3058, 2486, 2868, 0, 990, 0xE5, 0x00, 0x85, 0xFF
  30. vertex 3058, 2998, 2868, 2012, 970, 0xE5, 0x00, 0x85, 0xFF
  31. vertex 5824, 2588, 2254, 2012, -13318, 0xE4, 0x00, 0x85, 0xFF
  32. vertex 5824, 2076, 2254, 0, -13298, 0xE3, 0x00, 0x85, 0xFF
  33. vertex 6048, 2537, 2198, 2012, 0, 0xD5, 0x00, 0x89, 0xFF
  34. vertex 6048, 2025, 2198, 0, 0, 0xD5, 0x00, 0x89, 0xFF
  35. vertex 5824, 2076, 2254, 0, 990, 0xE3, 0x00, 0x85, 0xFF
  36. vertex 5824, 2588, 2254, 2012, 990, 0xE4, 0x00, 0x85, 0xFF
  37. vertex 6259, 2486, 2093, 2012, 0, 0xB1, 0x00, 0x9E, 0xFF
  38. ttm_seg7_vertex_0702A498: # 0x0702A498 - 0x0702A588
  39. vertex 6539, 1769, 1127, 0, -1058, 0x81, 0x00, 0x00, 0xFF
  40. vertex 6539, 2332, 1539, 2012, 992, 0x82, 0x00, 0xF6, 0xFF
  41. vertex 6539, 2281, 1127, 2012, -1054, 0x81, 0x00, 0x00, 0xFF
  42. vertex 6378, 1923, 1973, 0, 0, 0x9D, 0x00, 0xB1, 0xFF
  43. vertex 6259, 2486, 2093, 2012, 990, 0xB1, 0x00, 0x9E, 0xFF
  44. vertex 6378, 2435, 1973, 2012, 0, 0x96, 0x00, 0xBC, 0xFF
  45. vertex 6259, 1974, 2093, 0, 990, 0xBC, 0x00, 0x96, 0xFF
  46. vertex 6483, 1872, 1763, 0, 0, 0x8B, 0x00, 0xD0, 0xFF
  47. vertex 6378, 2435, 1973, 2012, 990, 0x96, 0x00, 0xBC, 0xFF
  48. vertex 6483, 2384, 1763, 2012, 0, 0x88, 0x00, 0xD9, 0xFF
  49. vertex 6378, 1923, 1973, 0, 990, 0x9D, 0x00, 0xB1, 0xFF
  50. vertex 6539, 1820, 1539, 0, 0, 0x83, 0x00, 0xEC, 0xFF
  51. vertex 6483, 2384, 1763, 2012, 990, 0x88, 0x00, 0xD9, 0xFF
  52. vertex 6539, 2332, 1539, 2012, 0, 0x82, 0x00, 0xF6, 0xFF
  53. vertex 6483, 1872, 1763, 0, 990, 0x8B, 0x00, 0xD0, 0xFF
  54. ttm_seg7_vertex_0702A588: # 0x0702A588 - 0x0702A678
  55. vertex 6071, 1001, -3506, 0, -3098, 0x96, 0x00, 0x44, 0xFF
  56. vertex 6381, 1616, -2886, 2012, 990, 0x89, 0x00, 0x2C, 0xFF
  57. vertex 6071, 1513, -3506, 2012, -3098, 0x9E, 0x00, 0x4F, 0xFF
  58. vertex 6539, 1769, 1127, 0, -1058, 0x81, 0x00, 0x00, 0xFF
  59. vertex 6539, 1820, 1539, 0, 990, 0x83, 0x00, 0xEC, 0xFF
  60. vertex 6539, 2332, 1539, 2012, 992, 0x82, 0x00, 0xF6, 0xFF
  61. vertex 6539, 1769, 1127, 0, 990, 0x81, 0x00, 0x00, 0xFF
  62. vertex 6539, 1923, -1124, 2012, -12296, 0x81, 0x00, 0x00, 0xFF
  63. vertex 6539, 1411, -1124, 0, -12324, 0x81, 0x00, 0x00, 0xFF
  64. vertex 6539, 2281, 1127, 2012, 1016, 0x81, 0x00, 0x00, 0xFF
  65. vertex 6539, 1718, -2252, 2012, -6164, 0x82, 0x00, 0x0A, 0xFF
  66. vertex 6539, 1206, -2252, 0, -6160, 0x83, 0x00, 0x14, 0xFF
  67. vertex 6539, 1411, -1124, 0, 990, 0x81, 0x00, 0x00, 0xFF
  68. vertex 6539, 1923, -1124, 2012, 986, 0x81, 0x00, 0x00, 0xFF
  69. vertex 6381, 1104, -2886, 0, 990, 0x89, 0x00, 0x2C, 0xFF
  70. ttm_seg7_vertex_0702A678: # 0x0702A678 - 0x0702A738
  71. vertex 5024, 796, -4243, 0, -3098, 0xD0, 0x00, 0x75, 0xFF
  72. vertex 5644, 899, -3933, 0, 990, 0xB1, 0x00, 0x62, 0xFF
  73. vertex 5644, 1411, -3933, 2012, 990, 0xBC, 0x00, 0x6A, 0xFF
  74. vertex 5024, 1308, -4243, 2012, -3098, 0xD9, 0x00, 0x78, 0xFF
  75. vertex 4390, 694, -4401, 0, 990, 0xF1, 0x00, 0x7E, 0xFF
  76. vertex 3262, 1104, -4401, 2012, -5142, 0x00, 0x00, 0x7F, 0xFF
  77. vertex 3262, 592, -4401, 0, -5154, 0x00, 0x00, 0x7F, 0xFF
  78. vertex 4390, 1206, -4401, 2012, 1000, 0xF1, 0x00, 0x7E, 0xFF
  79. vertex 907, 592, -4401, 2012, -12296, 0xA7, 0x00, 0x59, 0xFF
  80. vertex 3262, 592, -4401, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  81. vertex 3262, 1104, -4401, 2012, 992, 0x00, 0x00, 0x7F, 0xFF
  82. vertex 907, 80, -4401, 0, -12300, 0xA7, 0x00, 0x59, 0xFF
  83. ttm_seg7_dl_0702A738: # 0x0702A738 - 0x0702A8A0
  84. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000800
  85. gsDPLoadSync
  86. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
  87. gsSPLight ttm_seg7_light_0702A2A8, 1
  88. gsSPLight ttm_seg7_light_0702A2A0, 2
  89. gsSPVertex ttm_seg7_vertex_0702A2B8, 15, 0
  90. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  91. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  92. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  93. gsSP1Triangle 11, 14, 12, 0x0
  94. gsSPVertex ttm_seg7_vertex_0702A3A8, 15, 0
  95. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  96. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  97. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  98. gsSP1Triangle 0, 2, 14, 0x0
  99. gsSPVertex ttm_seg7_vertex_0702A498, 15, 0
  100. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  101. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  102. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  103. gsSP1Triangle 11, 14, 12, 0x0
  104. gsSPVertex ttm_seg7_vertex_0702A588, 15, 0
  105. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  106. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  107. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  108. gsSP1Triangle 0, 14, 1, 0x0
  109. gsSPVertex ttm_seg7_vertex_0702A678, 12, 0
  110. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  111. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  112. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
  113. gsSPEndDisplayList
  114. glabel ttm_seg7_dl_0702A8A0 # 0x0702A8A0 - 0x0702A948
  115. gsDPPipeSync
  116. gsDPSetCycleType G_CYC_2CYCLE
  117. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  118. gsDPSetDepthSource G_ZS_PIXEL
  119. gsDPSetFogColor 0, 0, 0, 255
  120. gsSPFogPosition 980, 1000
  121. gsSPSetGeometryMode G_FOG
  122. gsDPSetCombineMode G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE, G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_COMBINED, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_COMBINED
  123. 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
  124. gsSPTexture -1, -1, 0, 0, 1
  125. gsDPTileSync
  126. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 6, G_TX_NOLOD
  127. gsDPSetTileSize 0, 0, 0, 252, 124
  128. gsSPDisplayList ttm_seg7_dl_0702A738
  129. gsSPTexture -1, -1, 0, 0, 0
  130. gsDPPipeSync
  131. gsDPSetCycleType G_CYC_1CYCLE
  132. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  133. gsSPClearGeometryMode G_FOG
  134. 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
  135. gsSPEndDisplayList