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.

128 lines
7.3 KiB

6 years ago
  1. hmc_seg7_vertex_0700F458: # 0x0700F458 - 0x0700F548
  2. vertex 743, 512, 3410, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  3. vertex 670, 512, 3483, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  4. vertex 670, 410, 3483, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex 670, 512, 3338, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex 743, 410, 3410, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex 670, 410, 3338, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  8. vertex 670, 410, 3483, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  9. vertex 598, 410, 3410, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex 598, 410, 3410, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex 670, 512, 3483, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex 598, 512, 3410, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  13. vertex 670, 410, 3483, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  14. vertex 736, 410, 2203, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  15. vertex 663, 512, 2276, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  16. vertex 736, 512, 2203, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  17. hmc_seg7_vertex_0700F548: # 0x0700F548 - 0x0700F628
  18. vertex 808, 512, 2276, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  19. vertex 736, 512, 2348, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  20. vertex 736, 410, 2348, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  21. vertex 808, 410, 2276, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  22. vertex 663, 410, 2276, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  23. vertex 736, 410, 2203, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  24. vertex 736, 410, 2203, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  25. vertex 663, 410, 2276, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  26. vertex 663, 512, 2276, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  27. vertex 388, 410, 2696, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  28. vertex 461, 512, 2623, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  29. vertex 388, 512, 2696, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  30. vertex 663, 410, 2276, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  31. vertex 663, 512, 2276, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  32. hmc_seg7_vertex_0700F628: # 0x0700F628 - 0x0700F728
  33. vertex 316, 512, 2623, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  34. vertex 388, 512, 2551, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  35. vertex 388, 410, 2551, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  36. vertex 316, 410, 2623, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  37. vertex 461, 410, 2623, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  38. vertex 388, 410, 2696, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  39. vertex -1423, 410, 1338, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  40. vertex -1294, 410, 1274, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  41. vertex -1326, 410, 1371, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  42. vertex 388, 410, 2696, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex 461, 410, 2623, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex 461, 512, 2623, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex 461, 512, 2623, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex 461, 410, 2623, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  47. vertex -1423, 512, 1338, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  48. vertex -1391, 410, 1241, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  49. hmc_seg7_vertex_0700F728: # 0x0700F728 - 0x0700F808
  50. vertex -1423, 512, 1338, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  51. vertex -1391, 512, 1241, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex -1391, 410, 1241, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex -1423, 410, 1338, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex -1294, 410, 1274, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex -1138, 410, 807, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex -1268, 410, 872, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex -1235, 410, 775, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex -1326, 410, 1371, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  59. vertex -1294, 410, 1274, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  60. vertex -1294, 512, 1274, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  61. vertex -1326, 512, 1371, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  62. vertex -1294, 512, 1274, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  63. vertex -1294, 410, 1274, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  64. hmc_seg7_vertex_0700F808: # 0x0700F808 - 0x0700F8B8
  65. vertex -1170, 512, 904, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  66. vertex -1170, 410, 904, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  67. vertex -1138, 410, 807, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  68. vertex -1138, 512, 807, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  69. vertex -1268, 410, 872, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  70. vertex -1138, 410, 807, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  71. vertex -1235, 410, 775, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  72. vertex -1268, 410, 872, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  73. vertex -1268, 512, 872, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  74. vertex -1235, 512, 775, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  75. vertex -1268, 512, 872, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  76. hmc_seg7_dl_0700F8B8: # 0x0700F8B8 - 0x0700FA40
  77. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_0900A000
  78. gsDPLoadSync
  79. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  80. gsSPVertex hmc_seg7_vertex_0700F458, 15, 0
  81. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 4, 0x0
  82. gsSP2Triangles 3, 4, 5, 0x0, 5, 4, 6, 0x0
  83. gsSP2Triangles 5, 6, 7, 0x0, 8, 9, 10, 0x0
  84. gsSP2Triangles 8, 11, 9, 0x0, 12, 13, 14, 0x0
  85. gsSP1Triangle 0, 2, 4, 0x0
  86. gsSPVertex hmc_seg7_vertex_0700F548, 14, 0
  87. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  88. gsSP2Triangles 3, 2, 4, 0x0, 3, 4, 5, 0x0
  89. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  90. gsSP2Triangles 1, 12, 2, 0x0, 1, 13, 12, 0x0
  91. gsSPVertex hmc_seg7_vertex_0700F628, 16, 0
  92. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  93. gsSP2Triangles 3, 2, 4, 0x0, 3, 4, 5, 0x0
  94. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  95. gsSP2Triangles 1, 12, 13, 0x0, 1, 13, 2, 0x0
  96. gsSP1Triangle 14, 15, 6, 0x0
  97. gsSPVertex hmc_seg7_vertex_0700F728, 14, 0
  98. gsSP2Triangles 0, 1, 2, 0x0, 3, 2, 4, 0x0
  99. gsSP2Triangles 5, 6, 7, 0x0, 8, 9, 10, 0x0
  100. gsSP2Triangles 8, 10, 11, 0x0, 1, 12, 13, 0x0
  101. gsSP1Triangle 1, 13, 2, 0x0
  102. gsSPVertex hmc_seg7_vertex_0700F808, 11, 0
  103. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  104. gsSP2Triangles 0, 4, 1, 0x0, 5, 1, 4, 0x0
  105. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  106. gsSP1Triangle 0, 10, 4, 0x0
  107. gsSPEndDisplayList
  108. glabel hmc_seg7_dl_0700FA40 # 0x0700FA40 - 0x0700FAB0
  109. gsDPPipeSync
  110. 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
  111. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  112. 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
  113. gsSPTexture -1, -1, 0, 0, 1
  114. gsDPTileSync
  115. 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_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  116. gsDPSetTileSize 0, 0, 0, 124, 124
  117. gsSPDisplayList hmc_seg7_dl_0700F8B8
  118. gsSPTexture -1, -1, 0, 0, 0
  119. gsDPPipeSync
  120. 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
  121. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  122. gsSPEndDisplayList