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.

133 lines
7.1 KiB

6 years ago
  1. ttm_seg7_light_0700A340: # 0x0700A340 - 0x0700A348
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700A348: # 0x0700A348 - 0x0700A358
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_0700A358: # 0x0700A358 - 0x0700A360
  7. .byte 0x7F, 0x7F, 0x64, 0x00, 0x7F, 0x7F, 0x64, 0x00
  8. ttm_seg7_light_0700A360: # 0x0700A360 - 0x0700A370
  9. .byte 0xFF, 0xFF, 0xC9, 0x00, 0xFF, 0xFF, 0xC9, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_vertex_0700A370: # 0x0700A370 - 0x0700A460
  12. vertex 442, 1720, -78, 910, 492, 0x27, 0x78, 0xFB, 0xFF
  13. vertex 641, 1596, -121, 1122, 476, 0x76, 0x2A, 0xEF, 0xFF
  14. vertex 400, 1597, -525, 936, 24, 0x3A, 0x50, 0xB2, 0xFF
  15. vertex 442, 1720, -78, 346, -154, 0x27, 0x78, 0xFB, 0xFF
  16. vertex 526, 1601, 334, -102, 68, 0x50, 0x42, 0x48, 0xFF
  17. vertex 641, 1596, -121, 454, 74, 0x76, 0x2A, 0xEF, 0xFF
  18. vertex 526, 1352, 334, -104, 332, 0x57, 0xB1, 0x2D, 0xFF
  19. vertex 641, 1352, -121, 454, 332, 0x4B, 0x9B, 0xF6, 0xFF
  20. vertex -50, 1720, -445, 458, 40, 0xFB, 0x7A, 0xDE, 0xFF
  21. vertex 75, 1720, 414, 458, 942, 0x04, 0x79, 0x24, 0xFF
  22. vertex -417, 1720, 47, 8, 492, 0xD3, 0x76, 0x06, 0xFF
  23. vertex -332, 1603, 460, 32, 928, 0xC7, 0x3E, 0x5E, 0xFF
  24. vertex 123, 1601, 575, 484, 1112, 0x0F, 0x3B, 0x6F, 0xFF
  25. vertex 526, 1601, 334, 936, 928, 0x50, 0x42, 0x48, 0xFF
  26. vertex -55, 1597, -640, 484, -162, 0xEF, 0x29, 0x8A, 0xFF
  27. ttm_seg7_vertex_0700A460: # 0x0700A460 - 0x0700A560
  28. vertex -417, 1720, 47, -110, 234, 0xD3, 0x76, 0x06, 0xFF
  29. vertex -574, 1602, 56, 18, 292, 0x89, 0x26, 0x11, 0xFF
  30. vertex -332, 1603, 460, 174, -216, 0xC7, 0x3E, 0x5E, 0xFF
  31. vertex -458, 1597, -399, -130, 802, 0xAF, 0x4C, 0xC4, 0xFF
  32. vertex -459, 1352, -399, 156, 890, 0xA9, 0xC0, 0xBF, 0xFF
  33. vertex -574, 1352, 56, 312, 382, 0xB5, 0x9B, 0x0B, 0xFF
  34. vertex -333, 1352, 460, 468, -126, 0xBA, 0xB1, 0x45, 0xFF
  35. vertex -417, 1720, 47, 8, 492, 0xD3, 0x76, 0x06, 0xFF
  36. vertex -458, 1597, -399, 32, 24, 0xAF, 0x4C, 0xC4, 0xFF
  37. vertex -574, 1602, 56, -154, 476, 0x89, 0x26, 0x11, 0xFF
  38. vertex -50, 1720, -445, 458, 40, 0xFB, 0x7A, 0xDE, 0xFF
  39. vertex -55, 1597, -640, 484, -162, 0xEF, 0x29, 0x8A, 0xFF
  40. vertex 526, 1352, 334, 1068, 752, 0x57, 0xB1, 0x2D, 0xFF
  41. vertex 526, 1601, 334, 1068, 480, 0x50, 0x42, 0x48, 0xFF
  42. vertex 122, 1352, 575, 586, 752, 0x0F, 0xC0, 0x6C, 0xFF
  43. vertex 123, 1601, 575, 586, 480, 0x0F, 0x3B, 0x6F, 0xFF
  44. ttm_seg7_vertex_0700A560: # 0x0700A560 - 0x0700A640
  45. vertex 122, 1352, 575, 586, 752, 0x0F, 0xC0, 0x6C, 0xFF
  46. vertex -332, 1603, 460, 104, 480, 0xC7, 0x3E, 0x5E, 0xFF
  47. vertex -333, 1352, 460, 104, 752, 0xBA, 0xB1, 0x45, 0xFF
  48. vertex 123, 1601, 575, 586, 480, 0x0F, 0x3B, 0x6F, 0xFF
  49. vertex -459, 1352, -399, 810, 684, 0xA9, 0xC0, 0xBF, 0xFF
  50. vertex -458, 1597, -399, 810, 480, 0xAF, 0x4C, 0xC4, 0xFF
  51. vertex -55, 1597, -640, 534, 478, 0xEF, 0x29, 0x8A, 0xFF
  52. vertex -55, 1352, -640, 534, 682, 0xF6, 0x9B, 0xB5, 0xFF
  53. vertex 400, 1597, -525, 142, 480, 0x3A, 0x50, 0xB2, 0xFF
  54. vertex 400, 1352, -525, 142, 684, 0x41, 0xC0, 0xA9, 0xFF
  55. vertex 400, 1352, -525, 114, 1692, 0x41, 0xC0, 0xA9, 0xFF
  56. vertex 641, 1596, -121, 404, 1134, 0x76, 0x2A, 0xEF, 0xFF
  57. vertex 641, 1352, -121, 114, 1134, 0x4B, 0x9B, 0xF6, 0xFF
  58. vertex 400, 1597, -525, 406, 1692, 0x3A, 0x50, 0xB2, 0xFF
  59. ttm_seg7_vertex_0700A640: # 0x0700A640 - 0x0700A710
  60. vertex 28, 1473, -46, 0, 0, 0x00, 0x82, 0x00, 0xFF
  61. vertex -574, 1352, 56, -52, 986, 0xB5, 0x9B, 0x0B, 0xFF
  62. vertex -459, 1352, -399, 668, 688, 0xA9, 0xC0, 0xBF, 0xFF
  63. vertex -333, 1352, 460, 714, 688, 0xBA, 0xB1, 0x45, 0xFF
  64. vertex -574, 1352, 56, -10, 986, 0xB5, 0x9B, 0x0B, 0xFF
  65. vertex 122, 1352, 575, 1012, -36, 0x0F, 0xC0, 0x6C, 0xFF
  66. vertex 526, 1352, 334, 714, 694, 0x57, 0xB1, 0x2D, 0xFF
  67. vertex 122, 1352, 575, 1012, -28, 0x0F, 0xC0, 0x6C, 0xFF
  68. vertex 641, 1352, -121, -10, 992, 0x4B, 0x9B, 0xF6, 0xFF
  69. vertex 400, 1352, -525, 694, 668, 0x41, 0xC0, 0xA9, 0xFF
  70. vertex 641, 1352, -121, 994, -54, 0x4B, 0x9B, 0xF6, 0xFF
  71. vertex -55, 1352, -640, -28, 968, 0xF6, 0x9B, 0xB5, 0xFF
  72. vertex -55, 1352, -640, 968, -36, 0xF6, 0x9B, 0xB5, 0xFF
  73. ttm_seg7_dl_0700A710: # 0x0700A710 - 0x0700A848
  74. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800
  75. gsDPLoadSync
  76. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  77. gsSPLight ttm_seg7_light_0700A348, 1
  78. gsSPLight ttm_seg7_light_0700A340, 2
  79. gsSPVertex ttm_seg7_vertex_0700A370, 15, 0
  80. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  81. gsSP2Triangles 5, 4, 6, 0x0, 5, 6, 7, 0x0
  82. gsSP2Triangles 8, 9, 0, 0x0, 8, 10, 9, 0x0
  83. gsSP2Triangles 10, 11, 9, 0x0, 9, 11, 12, 0x0
  84. gsSP2Triangles 9, 13, 0, 0x0, 9, 12, 13, 0x0
  85. gsSP2Triangles 0, 2, 8, 0x0, 8, 2, 14, 0x0
  86. gsSPVertex ttm_seg7_vertex_0700A460, 16, 0
  87. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 4, 0x0
  88. gsSP2Triangles 1, 4, 5, 0x0, 6, 1, 5, 0x0
  89. gsSP2Triangles 6, 2, 1, 0x0, 7, 8, 9, 0x0
  90. gsSP2Triangles 10, 8, 7, 0x0, 10, 11, 8, 0x0
  91. gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
  92. gsSPVertex ttm_seg7_vertex_0700A560, 14, 0
  93. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  94. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  95. gsSP2Triangles 6, 8, 9, 0x0, 6, 9, 7, 0x0
  96. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  97. gsSPEndDisplayList
  98. ttm_seg7_dl_0700A848: # 0x0700A848 - 0x0700A8C0
  99. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07000800
  100. gsDPLoadSync
  101. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  102. gsSPLight ttm_seg7_light_0700A360, 1
  103. gsSPLight ttm_seg7_light_0700A358, 2
  104. gsSPVertex ttm_seg7_vertex_0700A640, 13, 0
  105. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  106. gsSP2Triangles 0, 5, 3, 0x0, 0, 6, 7, 0x0
  107. gsSP2Triangles 0, 8, 6, 0x0, 0, 9, 10, 0x0
  108. gsSP2Triangles 11, 9, 0, 0x0, 0, 2, 12, 0x0
  109. gsSPEndDisplayList
  110. glabel ttm_seg7_dl_0700A8C0 # 0x0700A8C0 - 0x0700A928
  111. gsDPPipeSync
  112. 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
  113. 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
  114. gsSPTexture -1, -1, 0, 0, 1
  115. gsDPTileSync
  116. 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
  117. gsDPSetTileSize 0, 0, 0, 124, 124
  118. gsSPDisplayList ttm_seg7_dl_0700A710
  119. gsSPDisplayList ttm_seg7_dl_0700A848
  120. gsSPTexture -1, -1, 0, 0, 0
  121. gsDPPipeSync
  122. 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
  123. gsSPEndDisplayList