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.

168 lines
9.0 KiB

6 years ago
  1. ttc_seg7_light_0700F090: # 0x0700F090 - 0x0700F098
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttc_seg7_light_0700F098: # 0x0700F098 - 0x0700F0A8
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttc_seg7_vertex_0700F0A8: # 0x0700F0A8 - 0x0700F188
  7. vertex 20, -665, 20, 95, 1492, 0x38, 0x00, 0x71, 0xFF
  8. vertex -19, 0, 20, 0, 0, 0xC8, 0x00, 0x71, 0xFF
  9. vertex -19, -665, 20, 0, 1492, 0x8F, 0x00, 0x38, 0xFF
  10. vertex -19, -665, 20, 479, 1492, 0x8F, 0x00, 0x38, 0xFF
  11. vertex -19, 0, 20, 479, 0, 0xC8, 0x00, 0x71, 0xFF
  12. vertex -19, 0, -19, 351, 0, 0x8F, 0x00, 0xC8, 0xFF
  13. vertex -19, -665, -19, 351, 1492, 0xC8, 0x00, 0x8F, 0xFF
  14. vertex -19, -665, -19, 350, 1492, 0xC8, 0x00, 0x8F, 0xFF
  15. vertex 20, 0, -19, 223, 0, 0x38, 0x00, 0x8F, 0xFF
  16. vertex 20, -665, -19, 224, 1492, 0x71, 0x00, 0xC8, 0xFF
  17. vertex -19, 0, -19, 350, 0, 0x8F, 0x00, 0xC8, 0xFF
  18. vertex 20, 0, 20, 96, 0, 0x71, 0x00, 0x38, 0xFF
  19. vertex 20, -665, 20, 96, 1492, 0x38, 0x00, 0x71, 0xFF
  20. vertex 20, 0, 20, 95, 0, 0x71, 0x00, 0x38, 0xFF
  21. ttc_seg7_vertex_0700F188: # 0x0700F188 - 0x0700F278
  22. vertex -144, -771, 67, 0, 344, 0xDE, 0x06, 0x79, 0xFF
  23. vertex 106, -916, 67, 852, 856, 0x50, 0xBD, 0x48, 0xFF
  24. vertex 145, -848, 67, 990, 618, 0x67, 0xEF, 0x47, 0xFF
  25. vertex -105, -916, -66, 102, 856, 0xE5, 0xEA, 0x87, 0xFF
  26. vertex -144, -848, -66, 0, 618, 0x8A, 0xEC, 0xD7, 0xFF
  27. vertex -144, -771, -66, 0, 344, 0x9E, 0x24, 0xB9, 0xFF
  28. vertex -105, -704, -66, 102, 106, 0xBD, 0x50, 0xB9, 0xFF
  29. vertex 145, -771, -66, 990, 344, 0x67, 0x12, 0xB9, 0xFF
  30. vertex 145, -848, -66, 990, 618, 0x62, 0xDD, 0xB9, 0xFF
  31. vertex -38, -665, -66, 340, 0, 0xEE, 0x67, 0xB9, 0xFF
  32. vertex 106, -916, -66, 852, 856, 0x42, 0xB0, 0xB8, 0xFF
  33. vertex 39, -954, -66, 614, 990, 0x11, 0x99, 0xB9, 0xFF
  34. vertex -38, -954, -66, 340, 990, 0xD8, 0x8F, 0xD7, 0xFF
  35. vertex 39, -665, -66, 614, 0, 0x24, 0x62, 0xB9, 0xFF
  36. vertex 106, -704, -66, 852, 106, 0x50, 0x43, 0xB9, 0xFF
  37. ttc_seg7_vertex_0700F278: # 0x0700F278 - 0x0700F338
  38. vertex -144, -771, 67, 0, 344, 0xDE, 0x06, 0x79, 0xFF
  39. vertex -38, -665, 67, 340, 0, 0xDC, 0x62, 0x47, 0xFF
  40. vertex -105, -704, 67, 102, 106, 0xA4, 0x4D, 0x29, 0xFF
  41. vertex 39, -954, 67, 614, 990, 0x23, 0x9E, 0x47, 0xFF
  42. vertex 106, -916, 67, 852, 856, 0x50, 0xBD, 0x48, 0xFF
  43. vertex 145, -848, 67, 990, 618, 0x67, 0xEF, 0x47, 0xFF
  44. vertex 145, -771, 67, 990, 344, 0x62, 0x24, 0x47, 0xFF
  45. vertex 39, -665, 67, 614, 0, 0x12, 0x67, 0x47, 0xFF
  46. vertex 106, -704, 67, 852, 106, 0x43, 0x50, 0x47, 0xFF
  47. vertex -144, -848, 67, 0, 618, 0x90, 0xD7, 0x29, 0xFF
  48. vertex -105, -916, 67, 102, 856, 0xBE, 0xB0, 0x48, 0xFF
  49. vertex -38, -954, 67, 340, 990, 0xEF, 0x99, 0x47, 0xFF
  50. ttc_seg7_vertex_0700F338: # 0x0700F338 - 0x0700F438
  51. vertex 106, -916, -66, 0, 694, 0x42, 0xB0, 0xB8, 0xFF
  52. vertex 106, -916, 67, 990, 694, 0x50, 0xBD, 0x48, 0xFF
  53. vertex 39, -954, 67, 990, 780, 0x23, 0x9E, 0x47, 0xFF
  54. vertex 106, -704, 67, 990, 224, 0x43, 0x50, 0x47, 0xFF
  55. vertex 106, -704, -66, 0, 224, 0x50, 0x43, 0xB9, 0xFF
  56. vertex 39, -665, -66, 0, 138, 0x24, 0x62, 0xB9, 0xFF
  57. vertex 39, -665, 67, 990, 138, 0x12, 0x67, 0x47, 0xFF
  58. vertex 145, -771, 67, 990, 374, 0x62, 0x24, 0x47, 0xFF
  59. vertex 145, -771, -66, 0, 374, 0x67, 0x12, 0xB9, 0xFF
  60. vertex -38, -665, -66, 0, 138, 0xEE, 0x67, 0xB9, 0xFF
  61. vertex -38, -665, 67, 990, 138, 0xDC, 0x62, 0x47, 0xFF
  62. vertex 145, -848, 67, 990, 546, 0x67, 0xEF, 0x47, 0xFF
  63. vertex 145, -848, -66, 0, 546, 0x62, 0xDD, 0xB9, 0xFF
  64. vertex -144, -771, -66, 0, 374, 0x9E, 0x24, 0xB9, 0xFF
  65. vertex -105, -704, 67, 990, 224, 0xA4, 0x4D, 0x29, 0xFF
  66. vertex -105, -704, -66, 0, 224, 0xBD, 0x50, 0xB9, 0xFF
  67. ttc_seg7_vertex_0700F438: # 0x0700F438 - 0x0700F528
  68. vertex 106, -916, -66, 0, 694, 0x42, 0xB0, 0xB8, 0xFF
  69. vertex 39, -954, 67, 990, 780, 0x23, 0x9E, 0x47, 0xFF
  70. vertex 39, -954, -66, 0, 780, 0x11, 0x99, 0xB9, 0xFF
  71. vertex -38, -954, 67, 990, 780, 0xEF, 0x99, 0x47, 0xFF
  72. vertex -38, -954, -66, 0, 780, 0xD8, 0x8F, 0xD7, 0xFF
  73. vertex -105, -916, 67, 990, 694, 0xBE, 0xB0, 0x48, 0xFF
  74. vertex -105, -916, -66, 0, 694, 0xE5, 0xEA, 0x87, 0xFF
  75. vertex -144, -848, 67, 990, 546, 0x90, 0xD7, 0x29, 0xFF
  76. vertex -144, -848, -66, 0, 546, 0x8A, 0xEC, 0xD7, 0xFF
  77. vertex -144, -771, 67, 990, 374, 0xDE, 0x06, 0x79, 0xFF
  78. vertex -144, -771, -66, 0, 374, 0x9E, 0x24, 0xB9, 0xFF
  79. vertex -105, -704, 67, 990, 224, 0xA4, 0x4D, 0x29, 0xFF
  80. vertex -105, -704, -66, 0, 224, 0xBD, 0x50, 0xB9, 0xFF
  81. vertex -38, -665, 67, 990, 138, 0xDC, 0x62, 0x47, 0xFF
  82. vertex -38, -665, -66, 0, 138, 0xEE, 0x67, 0xB9, 0xFF
  83. ttc_seg7_dl_0700F528: # 0x0700F528 - 0x0700F5A0
  84. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttc_seg7_texture_07000800
  85. gsDPLoadSync
  86. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x200
  87. gsSPLight ttc_seg7_light_0700F098, 1
  88. gsSPLight ttc_seg7_light_0700F090, 2
  89. gsSPVertex ttc_seg7_vertex_0700F0A8, 14, 0
  90. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  91. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  92. gsSP2Triangles 7, 10, 8, 0x0, 9, 11, 12, 0x0
  93. gsSP2Triangles 9, 8, 11, 0x0, 0, 13, 1, 0x0
  94. gsSPEndDisplayList
  95. ttc_seg7_dl_0700F5A0: # 0x0700F5A0 - 0x0700F670
  96. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09001800
  97. gsDPLoadSync
  98. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  99. gsSPVertex ttc_seg7_vertex_0700F188, 15, 0
  100. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  101. gsSP2Triangles 3, 5, 6, 0x0, 3, 7, 8, 0x0
  102. gsSP2Triangles 3, 6, 9, 0x0, 3, 10, 11, 0x0
  103. gsSP2Triangles 3, 11, 12, 0x0, 3, 8, 10, 0x0
  104. gsSP2Triangles 3, 9, 13, 0x0, 3, 13, 14, 0x0
  105. gsSP1Triangle 3, 14, 7, 0x0
  106. gsSPVertex ttc_seg7_vertex_0700F278, 12, 0
  107. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  108. gsSP2Triangles 0, 5, 6, 0x0, 0, 7, 1, 0x0
  109. gsSP2Triangles 0, 8, 7, 0x0, 0, 6, 8, 0x0
  110. gsSP2Triangles 0, 9, 10, 0x0, 0, 10, 11, 0x0
  111. gsSP1Triangle 0, 11, 3, 0x0
  112. gsSPEndDisplayList
  113. ttc_seg7_dl_0700F670: # 0x0700F670 - 0x0700F760
  114. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09005000
  115. gsDPLoadSync
  116. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  117. gsSPVertex ttc_seg7_vertex_0700F338, 16, 0
  118. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  119. gsSP2Triangles 3, 5, 6, 0x0, 7, 4, 3, 0x0
  120. gsSP2Triangles 7, 8, 4, 0x0, 9, 6, 5, 0x0
  121. gsSP2Triangles 9, 10, 6, 0x0, 8, 7, 11, 0x0
  122. gsSP2Triangles 8, 11, 12, 0x0, 1, 12, 11, 0x0
  123. gsSP2Triangles 1, 0, 12, 0x0, 13, 14, 15, 0x0
  124. gsSPVertex ttc_seg7_vertex_0700F438, 15, 0
  125. gsSP2Triangles 0, 1, 2, 0x0, 2, 1, 3, 0x0
  126. gsSP2Triangles 2, 3, 4, 0x0, 4, 3, 5, 0x0
  127. gsSP2Triangles 4, 5, 6, 0x0, 6, 5, 7, 0x0
  128. gsSP2Triangles 6, 7, 8, 0x0, 8, 7, 9, 0x0
  129. gsSP2Triangles 8, 9, 10, 0x0, 10, 9, 11, 0x0
  130. gsSP2Triangles 12, 11, 13, 0x0, 12, 13, 14, 0x0
  131. gsSPEndDisplayList
  132. glabel ttc_seg7_dl_0700F760 # 0x0700F760 - 0x0700F830
  133. gsDPPipeSync
  134. gsDPSetCycleType G_CYC_2CYCLE
  135. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  136. gsDPSetDepthSource G_ZS_PIXEL
  137. gsDPSetFogColor 200, 255, 255, 255
  138. gsSPFogPosition 900, 1000
  139. gsSPSetGeometryMode G_FOG
  140. 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
  141. 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
  142. gsSPTexture -1, -1, 0, 0, 1
  143. gsDPTileSync
  144. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 4, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 4, G_TX_NOLOD
  145. gsDPSetTileSize 0, 0, 0, 60, 252
  146. gsSPDisplayList ttc_seg7_dl_0700F528
  147. gsDPTileSync
  148. 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
  149. gsDPSetTileSize 0, 0, 0, 124, 124
  150. gsSPDisplayList ttc_seg7_dl_0700F5A0
  151. gsSPDisplayList ttc_seg7_dl_0700F670
  152. gsSPTexture -1, -1, 0, 0, 0
  153. gsDPPipeSync
  154. gsDPSetCycleType G_CYC_1CYCLE
  155. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  156. gsSPClearGeometryMode G_FOG
  157. 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
  158. gsSPEndDisplayList