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.

127 lines
7.3 KiB

6 years ago
  1. bob_seg7_vertex_07009E98: # 0x07009E98 - 0x07009F88
  2. vertex -3890, 768, 2867, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  3. vertex -4300, 768, 2867, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  4. vertex -4300, 768, 3277, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  5. vertex 4485, 963, 3846, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  6. vertex 3930, 891, 3698, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  7. vertex 4132, 941, 4051, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  8. vertex 4284, 912, 3493, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  9. vertex 3165, 768, 5778, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  10. vertex 2657, 768, 6056, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  11. vertex 3050, 768, 6171, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  12. vertex 2772, 768, 5663, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  13. vertex -4001, 0, 4882, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  14. vertex -4153, 0, 4501, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  15. vertex -4534, 0, 4653, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  16. vertex -4382, 0, 5034, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  17. bob_seg7_vertex_07009F88: # 0x07009F88 - 0x0700A078
  18. vertex -5761, 1024, -4942, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  19. vertex -5822, 1024, -4366, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  20. vertex -5504, 1024, -4624, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  21. vertex -3890, 768, 2867, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  22. vertex -4300, 768, 3277, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  23. vertex -3890, 768, 3277, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  24. vertex -4914, 768, 1843, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  25. vertex -5324, 768, 2253, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  26. vertex -4914, 768, 2253, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  27. vertex -5324, 768, 1843, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  28. vertex 5729, 891, 5972, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  29. vertex 5160, 835, 6061, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  30. vertex 5494, 804, 6296, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  31. vertex 5395, 922, 5737, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  32. vertex -6080, 1024, -4685, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  33. bob_seg7_vertex_0700A078: # 0x0700A078 - 0x0700A168
  34. vertex -3890, 768, 1331, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  35. vertex -4300, 768, 1331, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  36. vertex -4300, 768, 1741, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  37. vertex -5857, 821, -6563, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  38. vertex -6199, 861, -6786, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  39. vertex -6403, 979, -6450, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  40. vertex -6061, 939, -6228, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  41. vertex -6677, 1024, -5127, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  42. vertex -7065, 1024, -4993, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  43. vertex -6931, 1024, -4606, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  44. vertex -6543, 1024, -4740, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  45. vertex 6261, 2213, -7837, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  46. vertex 5856, 2251, -7882, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  47. vertex 5804, 2175, -7483, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  48. vertex 6210, 2137, -7438, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  49. bob_seg7_vertex_0700A168: # 0x0700A168 - 0x0700A258
  50. vertex -5967, 1024, -635, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  51. vertex -6377, 1024, -635, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  52. vertex -6377, 1024, -225, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  53. vertex -3890, 768, 1331, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  54. vertex -4300, 768, 1741, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  55. vertex -3890, 768, 1741, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  56. vertex -6450, 768, 3379, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  57. vertex -6860, 768, 3379, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  58. vertex -6860, 768, 3789, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  59. vertex -6450, 768, 3789, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  60. vertex -3378, 768, 2355, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  61. vertex -3788, 768, 2765, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  62. vertex -3378, 768, 2765, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  63. vertex -3788, 768, 2355, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  64. vertex -5967, 1024, -225, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  65. bob_seg7_vertex_0700A258: # 0x0700A258 - 0x0700A318
  66. vertex 7040, 1998, -5748, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  67. vertex 6559, 2018, -5426, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  68. vertex 6960, 1988, -5347, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  69. vertex 6639, 2028, -5827, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  70. vertex 4301, 3072, 1434, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  71. vertex 3891, 3072, 1434, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  72. vertex 3891, 3072, 1843, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  73. vertex 4301, 3072, 1843, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  74. vertex -1497, 39, 4825, 0, 990, 0xFF, 0xFF, 0xFF, 0xB4
  75. vertex -1797, 163, 5074, 990, 990, 0xFF, 0xFF, 0xFF, 0xB4
  76. vertex -1220, 125, 5114, 0, 0, 0xFF, 0xFF, 0xFF, 0xB4
  77. vertex -1520, 250, 5364, 990, 0, 0xFF, 0xFF, 0xFF, 0xB4
  78. bob_seg7_dl_0700A318: # 0x0700A318 - 0x0700A470
  79. gsDPSetTextureImage G_IM_FMT_IA, G_IM_SIZ_16b, 1, generic_0900B000
  80. gsDPLoadSync
  81. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  82. gsSPVertex bob_seg7_vertex_07009E98, 15, 0
  83. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  84. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  85. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  86. gsSP1Triangle 11, 13, 14, 0x0
  87. gsSPVertex bob_seg7_vertex_07009F88, 15, 0
  88. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  89. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  90. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  91. gsSP1Triangle 0, 14, 1, 0x0
  92. gsSPVertex bob_seg7_vertex_0700A078, 15, 0
  93. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  94. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  95. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  96. gsSP1Triangle 11, 13, 14, 0x0
  97. gsSPVertex bob_seg7_vertex_0700A168, 15, 0
  98. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  99. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  100. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  101. gsSP1Triangle 0, 2, 14, 0x0
  102. gsSPVertex bob_seg7_vertex_0700A258, 12, 0
  103. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  104. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  105. gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
  106. gsSPEndDisplayList
  107. glabel bob_seg7_dl_0700A470 # 0x0700A470 - 0x0700A4E0
  108. gsDPPipeSync
  109. gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_SHADE, G_ACMUX_0
  110. gsSPClearGeometryMode G_LIGHTING
  111. gsDPSetTile G_IM_FMT_IA, 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_IA, 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
  115. gsDPSetTileSize 0, 0, 0, 124, 124
  116. gsSPDisplayList bob_seg7_dl_0700A318
  117. gsSPTexture -1, -1, 0, 0, 0
  118. gsDPPipeSync
  119. 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
  120. gsSPSetGeometryMode G_LIGHTING
  121. gsSPEndDisplayList