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.

132 lines
7.4 KiB

6 years ago
  1. ttm_seg7_vertex_0700ECC8: # 0x0700ECC8 - 0x0700ED98
  2. vertex 262, 151, -248, -1684, 960, 0xFF, 0xFF, 0xFF, 0xFF
  3. vertex 9, 151, -286, -770, -1426, 0xFF, 0xFF, 0xFF, 0xFF
  4. vertex 8, 202, -479, -2444, -2382, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex 474, 202, -408, -4118, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex -23, 130, -3, 828, -280, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -2, 151, 192, 2428, 866, 0xFF, 0xFF, 0xFF, 0xFF
  8. vertex 18, 202, 388, 4028, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  9. vertex -256, 151, 154, 3342, -1520, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex -488, 202, 312, 5854, -2760, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex 474, 222, -408, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex -488, 222, 312, 3778, 4994, 0xFF, 0xFF, 0xFF, 0xFF
  13. vertex 18, 222, 388, 3776, 2438, 0xFF, 0xFF, 0xFF, 0xFF
  14. vertex 8, 222, -479, 0, 3338, 0xFF, 0xFF, 0xFF, 0xFF
  15. ttm_seg7_vertex_0700ED98: # 0x0700ED98 - 0x0700EE88
  16. vertex -2, 253, 192, -730, 0, 0xFF, 0xFF, 0xFF, 0xFF
  17. vertex -2, 99, 192, -730, 990, 0xFF, 0xFF, 0xFF, 0xFF
  18. vertex 262, 99, -248, 2012, 990, 0xFF, 0xFF, 0xFF, 0xFF
  19. vertex 474, 151, -408, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  20. vertex 8, 253, -479, 4670, 0, 0xFF, 0xFF, 0xFF, 0xFF
  21. vertex 474, 253, -408, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  22. vertex 8, 151, -479, 4670, 990, 0xFF, 0xFF, 0xFF, 0xFF
  23. vertex 8, 253, -479, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  24. vertex -488, 151, 312, 8278, 990, 0xFF, 0xFF, 0xFF, 0xFF
  25. vertex -488, 253, 312, 8278, 0, 0xFF, 0xFF, 0xFF, 0xFF
  26. vertex 8, 151, -479, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  27. vertex 18, 253, 388, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  28. vertex 474, 151, -408, 8116, 990, 0xFF, 0xFF, 0xFF, 0xFF
  29. vertex 474, 253, -408, 8116, 0, 0xFF, 0xFF, 0xFF, 0xFF
  30. vertex 18, 151, 388, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  31. ttm_seg7_vertex_0700EE88: # 0x0700EE88 - 0x0700EF78
  32. vertex -254, 253, 152, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  33. vertex -254, 99, 152, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  34. vertex -2, 99, 192, 1664, 990, 0xFF, 0xFF, 0xFF, 0xFF
  35. vertex -2, 253, 192, -730, 0, 0xFF, 0xFF, 0xFF, 0xFF
  36. vertex 262, 99, -248, 2012, 990, 0xFF, 0xFF, 0xFF, 0xFF
  37. vertex 262, 253, -248, 2012, 0, 0xFF, 0xFF, 0xFF, 0xFF
  38. vertex 9, 253, -286, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  39. vertex -254, 99, 152, 2694, 990, 0xFF, 0xFF, 0xFF, 0xFF
  40. vertex -254, 253, 152, 2694, 0, 0xFF, 0xFF, 0xFF, 0xFF
  41. vertex 9, 99, -286, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  42. vertex 262, 253, -248, 308, 0, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex 262, 99, -248, 308, 990, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex 9, 99, -286, 2012, 990, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex 9, 253, -286, 2012, 0, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex -2, 253, 192, 1664, 0, 0xFF, 0xFF, 0xFF, 0xFF
  47. ttm_seg7_vertex_0700EF78: # 0x0700EF78 - 0x0700F068
  48. vertex -2, 99, 192, 0, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  49. vertex 18, 99, 388, 1280, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  50. vertex 18, 253, 388, 1280, 990, 0xFF, 0xFF, 0xFF, 0xFF
  51. vertex 474, 99, -408, -776, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex 262, 99, -248, 990, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex 474, 253, -408, -776, 990, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex 262, 253, -248, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex 8, 253, -479, -1314, 990, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex 8, 99, -479, -1314, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex 9, 253, -286, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex 9, 99, -286, 0, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  59. vertex -254, 253, 152, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  60. vertex -254, 99, 152, 0, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  61. vertex -488, 99, 312, 1852, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  62. vertex -488, 253, 312, 1852, 990, 0xFF, 0xFF, 0xFF, 0xFF
  63. ttm_seg7_vertex_0700F068: # 0x0700F068 - 0x0700F0D8
  64. vertex -488, 253, 312, 16, 0, 0xFF, 0xFF, 0xFF, 0xFF
  65. vertex -488, 151, 312, 16, 990, 0xFF, 0xFF, 0xFF, 0xFF
  66. vertex 18, 151, 388, 5126, 990, 0xFF, 0xFF, 0xFF, 0xFF
  67. vertex -2, 253, 192, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  68. vertex -2, 99, 192, 0, 2010, 0xFF, 0xFF, 0xFF, 0xFF
  69. vertex 18, 253, 388, 1280, 990, 0xFF, 0xFF, 0xFF, 0xFF
  70. vertex 18, 253, 388, 5126, 0, 0xFF, 0xFF, 0xFF, 0xFF
  71. ttm_seg7_dl_0700F0D8: # 0x0700F0D8 - 0x0700F170
  72. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001000
  73. gsDPLoadSync
  74. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  75. gsSPVertex ttm_seg7_vertex_0700ECC8, 13, 0
  76. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  77. gsSP2Triangles 0, 4, 1, 0x0, 0, 5, 4, 0x0
  78. gsSP2Triangles 0, 6, 5, 0x0, 0, 3, 6, 0x0
  79. gsSP2Triangles 7, 5, 6, 0x0, 7, 4, 5, 0x0
  80. gsSP2Triangles 1, 4, 7, 0x0, 7, 6, 8, 0x0
  81. gsSP2Triangles 1, 7, 8, 0x0, 1, 8, 2, 0x0
  82. gsSP2Triangles 9, 10, 11, 0x0, 9, 12, 10, 0x0
  83. gsSPEndDisplayList
  84. ttm_seg7_dl_0700F170: # 0x0700F170 - 0x0700F270
  85. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900A000
  86. gsDPLoadSync
  87. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  88. gsSPVertex ttm_seg7_vertex_0700ED98, 15, 0
  89. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  90. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  91. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  92. gsSP1Triangle 11, 14, 12, 0x0
  93. gsSPVertex ttm_seg7_vertex_0700EE88, 15, 0
  94. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  95. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  96. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  97. gsSP1Triangle 0, 2, 14, 0x0
  98. gsSPVertex ttm_seg7_vertex_0700EF78, 15, 0
  99. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  100. gsSP2Triangles 4, 6, 5, 0x0, 7, 8, 9, 0x0
  101. gsSP2Triangles 8, 10, 9, 0x0, 11, 12, 13, 0x0
  102. gsSP1Triangle 11, 13, 14, 0x0
  103. gsSPVertex ttm_seg7_vertex_0700F068, 7, 0
  104. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  105. gsSP1Triangle 0, 2, 6, 0x0
  106. gsSPEndDisplayList
  107. glabel ttm_seg7_dl_0700F270 # 0x0700F270 - 0x0700F300
  108. gsDPPipeSync
  109. gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0
  110. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  111. 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
  112. gsSPTexture -1, -1, 0, 0, 1
  113. gsDPTileSync
  114. 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
  115. gsDPSetTileSize 0, 0, 0, 124, 124
  116. gsSPDisplayList ttm_seg7_dl_0700F0D8
  117. gsDPTileSync
  118. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  119. gsDPSetTileSize 0, 0, 0, 124, 124
  120. gsSPDisplayList ttm_seg7_dl_0700F170
  121. gsSPTexture -1, -1, 0, 0, 0
  122. gsDPPipeSync
  123. 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
  124. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  125. gsSPEndDisplayList