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.

220 lines
12 KiB

6 years ago
  1. hmc_seg7_light_07023160: # 0x07023160 - 0x07023168
  2. .byte 0x79, 0x79, 0x79, 0x00, 0x79, 0x79, 0x79, 0x00
  3. hmc_seg7_light_07023168: # 0x07023168 - 0x07023178
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. hmc_seg7_vertex_07023178: # 0x07023178 - 0x07023278
  7. vertex -204, 0, 0, 2012, 2012, 0x82, 0x00, 0x00, 0xFF
  8. vertex -173, 102, 33, 2830, 3448, 0x96, 0x41, 0x14, 0xFF
  9. vertex -173, 63, -86, 3648, 3448, 0x96, 0x28, 0xC9, 0xFF
  10. vertex -173, 0, 108, 2012, 3448, 0x96, 0x00, 0x44, 0xFF
  11. vertex -91, 108, 148, 2420, 4888, 0xC0, 0x40, 0x58, 0xFF
  12. vertex -91, 0, 183, 2012, 4888, 0xC8, 0x00, 0x71, 0xFF
  13. vertex -91, 174, 57, 2830, 4888, 0xC8, 0x6C, 0x23, 0xFF
  14. vertex 0, -62, 195, 1808, 6096, 0x00, 0xD9, 0x78, 0xFF
  15. vertex 0, 63, 195, 2216, 6096, 0x00, 0x27, 0x78, 0xFF
  16. vertex 92, 0, 183, 2012, 7304, 0x3F, 0x00, 0x6D, 0xFF
  17. vertex 92, -107, 148, 1604, 7304, 0x37, 0xBD, 0x5C, 0xFF
  18. vertex 92, 108, 148, 2420, 7304, 0x38, 0x43, 0x5C, 0xFF
  19. vertex -91, 174, -56, 3238, 4888, 0xC0, 0x68, 0xDF, 0xFF
  20. vertex -91, 108, -147, 3648, 4888, 0xC8, 0x42, 0xA4, 0xFF
  21. vertex 0, 166, 120, 2626, 6096, 0x00, 0x66, 0x4A, 0xFF
  22. vertex 0, 205, 0, 3034, 6096, 0x00, 0x7E, 0x00, 0xFF
  23. hmc_seg7_vertex_07023278: # 0x07023278 - 0x07023378
  24. vertex 0, 166, 120, 2626, 6096, 0x00, 0x66, 0x4A, 0xFF
  25. vertex 92, 108, 148, 2420, 7304, 0x38, 0x43, 0x5C, 0xFF
  26. vertex 92, 174, 57, 2830, 7304, 0x40, 0x68, 0x21, 0xFF
  27. vertex 0, 205, 0, 3034, 6096, 0x00, 0x7E, 0x00, 0xFF
  28. vertex 92, 174, -56, 3238, 7304, 0x38, 0x6C, 0xDD, 0xFF
  29. vertex -204, 0, 0, 0, 2012, 0x82, 0x00, 0x00, 0xFF
  30. vertex -173, 63, -86, -438, 3448, 0x96, 0x28, 0xC9, 0xFF
  31. vertex -173, -62, -86, 376, 3448, 0x96, 0xD8, 0xC9, 0xFF
  32. vertex 0, 63, -194, 3852, 6096, 0x00, 0x27, 0x88, 0xFF
  33. vertex 92, 108, -147, 3648, 7304, 0x3F, 0x40, 0xA8, 0xFF
  34. vertex 92, 0, -182, 4056, 7304, 0x37, 0x00, 0x8E, 0xFF
  35. vertex -91, 0, -182, 0, 4888, 0xC0, 0x00, 0x93, 0xFF
  36. vertex -91, -107, -147, 376, 4888, 0xC8, 0xBD, 0xA4, 0xFF
  37. vertex -173, 63, -86, 3648, 3448, 0x96, 0x28, 0xC9, 0xFF
  38. vertex -91, 108, -147, 3648, 4888, 0xC8, 0x42, 0xA4, 0xFF
  39. vertex -91, 0, -182, 4056, 4888, 0xC0, 0x00, 0x93, 0xFF
  40. hmc_seg7_vertex_07023378: # 0x07023378 - 0x07023478
  41. vertex -91, 108, -147, 3648, 4888, 0xC8, 0x42, 0xA4, 0xFF
  42. vertex 0, 166, -119, 3442, 6096, 0x00, 0x66, 0xB6, 0xFF
  43. vertex 0, 63, -194, 3852, 6096, 0x00, 0x27, 0x88, 0xFF
  44. vertex 92, 108, -147, 3648, 7304, 0x3F, 0x40, 0xA8, 0xFF
  45. vertex 92, 174, -56, 3238, 7304, 0x38, 0x6C, 0xDD, 0xFF
  46. vertex -204, 0, 0, 2012, 2012, 0x82, 0x00, 0x00, 0xFF
  47. vertex -173, -101, 33, 1194, 3448, 0x96, 0xBF, 0x14, 0xFF
  48. vertex -173, 0, 108, 2012, 3448, 0x96, 0x00, 0x44, 0xFF
  49. vertex -204, 0, 0, 0, 2012, 0x82, 0x00, 0x00, 0xFF
  50. vertex -173, -62, -86, 376, 3448, 0x96, 0xD8, 0xC9, 0xFF
  51. vertex -91, -173, -56, 786, 4888, 0xC0, 0x98, 0xDF, 0xFF
  52. vertex -91, -107, -147, 376, 4888, 0xC8, 0xBD, 0xA4, 0xFF
  53. vertex -91, -173, 57, 1194, 4888, 0xC8, 0x94, 0x23, 0xFF
  54. vertex 0, -62, -194, 172, 6096, 0x00, 0xD9, 0x88, 0xFF
  55. vertex 0, -165, -119, 582, 6096, 0x00, 0x9A, 0xB6, 0xFF
  56. vertex 92, -107, -147, 376, 7304, 0x3F, 0xC0, 0xA8, 0xFF
  57. hmc_seg7_vertex_07023478: # 0x07023478 - 0x07023558
  58. vertex 0, -62, -194, 172, 6096, 0x00, 0xD9, 0x88, 0xFF
  59. vertex 92, 0, -182, 0, 7304, 0x37, 0x00, 0x8E, 0xFF
  60. vertex 92, -107, -147, 376, 7304, 0x3F, 0xC0, 0xA8, 0xFF
  61. vertex 0, -165, -119, 582, 6096, 0x00, 0x9A, 0xB6, 0xFF
  62. vertex 92, -173, -56, 786, 7304, 0x38, 0x94, 0xDD, 0xFF
  63. vertex -173, -101, 33, 1194, 3448, 0x96, 0xBF, 0x14, 0xFF
  64. vertex -91, -107, 148, 1604, 4888, 0xC1, 0xC0, 0x58, 0xFF
  65. vertex -173, 0, 108, 2012, 3448, 0x96, 0x00, 0x44, 0xFF
  66. vertex -91, -173, 57, 1194, 4888, 0xC8, 0x94, 0x23, 0xFF
  67. vertex -91, 0, 183, 2012, 4888, 0xC8, 0x00, 0x71, 0xFF
  68. vertex 0, -204, 0, 990, 6096, 0x00, 0x82, 0x00, 0xFF
  69. vertex 0, -165, 120, 1398, 6096, 0x00, 0x9A, 0x4A, 0xFF
  70. vertex 92, -173, 57, 1194, 7304, 0x40, 0x98, 0x21, 0xFF
  71. vertex 92, -107, 148, 1604, 7304, 0x37, 0xBD, 0x5C, 0xFF
  72. hmc_seg7_vertex_07023558: # 0x07023558 - 0x07023638
  73. vertex 205, 0, 0, 4056, 10184, 0x7E, 0x00, 0x00, 0xFF
  74. vertex 174, 0, -107, 4056, 8744, 0x6A, 0x00, 0xBC, 0xFF
  75. vertex 174, 102, -32, 3238, 8744, 0x6A, 0x41, 0xEB, 0xFF
  76. vertex 0, 63, -194, 3852, 6096, 0x00, 0x27, 0x88, 0xFF
  77. vertex -91, 0, -182, 4056, 4888, 0xC0, 0x00, 0x93, 0xFF
  78. vertex -91, 108, -147, 3648, 4888, 0xC8, 0x42, 0xA4, 0xFF
  79. vertex 92, 108, -147, 3648, 7304, 0x3F, 0x40, 0xA8, 0xFF
  80. vertex 92, 0, -182, 4056, 7304, 0x37, 0x00, 0x8E, 0xFF
  81. vertex 92, 174, -56, 3238, 7304, 0x38, 0x6C, 0xDD, 0xFF
  82. vertex 92, 0, -182, 0, 7304, 0x37, 0x00, 0x8E, 0xFF
  83. vertex 0, -62, -194, 172, 6096, 0x00, 0xD9, 0x88, 0xFF
  84. vertex 0, 63, -194, -234, 6096, 0x00, 0x27, 0x88, 0xFF
  85. vertex -91, -107, -147, 376, 4888, 0xC8, 0xBD, 0xA4, 0xFF
  86. vertex -91, 0, -182, 0, 4888, 0xC0, 0x00, 0x93, 0xFF
  87. hmc_seg7_vertex_07023638: # 0x07023638 - 0x07023728
  88. vertex 205, 0, 0, 2012, 10184, 0x7E, 0x00, 0x00, 0xFF
  89. vertex 174, 63, 87, 2420, 8744, 0x6A, 0x28, 0x37, 0xFF
  90. vertex 174, -62, 87, 1604, 8744, 0x6A, 0xD8, 0x37, 0xFF
  91. vertex 205, 0, 0, 4056, 10184, 0x7E, 0x00, 0x00, 0xFF
  92. vertex 174, 102, -32, 3238, 8744, 0x6A, 0x41, 0xEB, 0xFF
  93. vertex 92, 174, 57, 2830, 7304, 0x40, 0x68, 0x21, 0xFF
  94. vertex 92, 174, -56, 3238, 7304, 0x38, 0x6C, 0xDD, 0xFF
  95. vertex 92, 108, 148, 2420, 7304, 0x38, 0x43, 0x5C, 0xFF
  96. vertex 0, 166, -119, 3442, 6096, 0x00, 0x66, 0xB6, 0xFF
  97. vertex 0, 205, 0, 3034, 6096, 0x00, 0x7E, 0x00, 0xFF
  98. vertex -91, 174, -56, 3238, 4888, 0xC0, 0x68, 0xDF, 0xFF
  99. vertex -91, 108, -147, 3648, 4888, 0xC8, 0x42, 0xA4, 0xFF
  100. vertex -91, 174, 57, 2830, 4888, 0xC8, 0x6C, 0x23, 0xFF
  101. vertex 92, 0, 183, 2012, 7304, 0x3F, 0x00, 0x6D, 0xFF
  102. vertex 92, -107, 148, 1604, 7304, 0x37, 0xBD, 0x5C, 0xFF
  103. hmc_seg7_vertex_07023728: # 0x07023728 - 0x07023828
  104. vertex 92, 108, 148, 2420, 7304, 0x38, 0x43, 0x5C, 0xFF
  105. vertex 0, 166, 120, 2626, 6096, 0x00, 0x66, 0x4A, 0xFF
  106. vertex 0, 63, 195, 2216, 6096, 0x00, 0x27, 0x78, 0xFF
  107. vertex -91, 108, 148, 2420, 4888, 0xC0, 0x40, 0x58, 0xFF
  108. vertex -91, 174, 57, 2830, 4888, 0xC8, 0x6C, 0x23, 0xFF
  109. vertex -91, 0, 183, 2012, 4888, 0xC8, 0x00, 0x71, 0xFF
  110. vertex 205, 0, 0, 2012, 10184, 0x7E, 0x00, 0x00, 0xFF
  111. vertex 174, -62, 87, 1604, 8744, 0x6A, 0xD8, 0x37, 0xFF
  112. vertex 174, -101, -32, 786, 8744, 0x6A, 0xBF, 0xEC, 0xFF
  113. vertex 92, -107, 148, 1604, 7304, 0x37, 0xBD, 0x5C, 0xFF
  114. vertex 92, -173, 57, 1194, 7304, 0x40, 0x98, 0x21, 0xFF
  115. vertex 92, -173, -56, 786, 7304, 0x38, 0x94, 0xDD, 0xFF
  116. vertex 0, -62, 195, 1808, 6096, 0x00, 0xD9, 0x78, 0xFF
  117. vertex 0, -165, 120, 1398, 6096, 0x00, 0x9A, 0x4A, 0xFF
  118. vertex -91, -107, 148, 1604, 4888, 0xC1, 0xC0, 0x58, 0xFF
  119. vertex -91, -173, 57, 1194, 4888, 0xC8, 0x94, 0x23, 0xFF
  120. hmc_seg7_vertex_07023828: # 0x07023828 - 0x070238D8
  121. vertex 205, 0, 0, 0, 10184, 0x7E, 0x00, 0x00, 0xFF
  122. vertex 174, -101, -32, 786, 8744, 0x6A, 0xBF, 0xEC, 0xFF
  123. vertex 174, 0, -107, 0, 8744, 0x6A, 0x00, 0xBC, 0xFF
  124. vertex 0, -165, -119, 582, 6096, 0x00, 0x9A, 0xB6, 0xFF
  125. vertex -91, -173, -56, 786, 4888, 0xC0, 0x98, 0xDF, 0xFF
  126. vertex -91, -107, -147, 376, 4888, 0xC8, 0xBD, 0xA4, 0xFF
  127. vertex 92, -107, -147, 376, 7304, 0x3F, 0xC0, 0xA8, 0xFF
  128. vertex 92, -173, -56, 786, 7304, 0x38, 0x94, 0xDD, 0xFF
  129. vertex 92, 0, -182, 0, 7304, 0x37, 0x00, 0x8E, 0xFF
  130. vertex 0, -204, 0, 990, 6096, 0x00, 0x82, 0x00, 0xFF
  131. vertex -91, -173, 57, 1194, 4888, 0xC8, 0x94, 0x23, 0xFF
  132. hmc_seg7_dl_070238D8: # 0x070238D8 - 0x07023BC8
  133. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07004800
  134. gsDPLoadSync
  135. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
  136. gsSPLight hmc_seg7_light_07023168, 1
  137. gsSPLight hmc_seg7_light_07023160, 2
  138. gsSPVertex hmc_seg7_vertex_07023178, 16, 0
  139. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  140. gsSP2Triangles 3, 4, 1, 0x0, 3, 5, 4, 0x0
  141. gsSP2Triangles 1, 4, 6, 0x0, 5, 7, 8, 0x0
  142. gsSP2Triangles 7, 9, 8, 0x0, 7, 10, 9, 0x0
  143. gsSP2Triangles 8, 9, 11, 0x0, 1, 12, 2, 0x0
  144. gsSP2Triangles 1, 6, 12, 0x0, 2, 12, 13, 0x0
  145. gsSP1Triangle 6, 14, 15, 0x0
  146. gsSPVertex hmc_seg7_vertex_07023278, 16, 0
  147. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  148. gsSP2Triangles 3, 2, 4, 0x0, 5, 6, 7, 0x0
  149. gsSP2Triangles 8, 9, 10, 0x0, 6, 11, 7, 0x0
  150. gsSP2Triangles 7, 11, 12, 0x0, 13, 14, 15, 0x0
  151. gsSPVertex hmc_seg7_vertex_07023378, 16, 0
  152. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  153. gsSP2Triangles 1, 4, 3, 0x0, 5, 6, 7, 0x0
  154. gsSP2Triangles 8, 9, 6, 0x0, 9, 10, 6, 0x0
  155. gsSP2Triangles 9, 11, 10, 0x0, 6, 10, 12, 0x0
  156. gsSP2Triangles 11, 13, 14, 0x0, 13, 15, 14, 0x0
  157. gsSPVertex hmc_seg7_vertex_07023478, 14, 0
  158. gsSP2Triangles 0, 1, 2, 0x0, 3, 2, 4, 0x0
  159. gsSP2Triangles 5, 6, 7, 0x0, 5, 8, 6, 0x0
  160. gsSP2Triangles 7, 6, 9, 0x0, 8, 10, 11, 0x0
  161. gsSP2Triangles 10, 12, 11, 0x0, 10, 4, 12, 0x0
  162. gsSP1Triangle 11, 12, 13, 0x0
  163. gsSPVertex hmc_seg7_vertex_07023558, 14, 0
  164. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  165. gsSP2Triangles 1, 6, 2, 0x0, 1, 7, 6, 0x0
  166. gsSP2Triangles 2, 6, 8, 0x0, 9, 10, 11, 0x0
  167. gsSP2Triangles 10, 12, 13, 0x0, 10, 13, 11, 0x0
  168. gsSPVertex hmc_seg7_vertex_07023638, 15, 0
  169. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 1, 0x0
  170. gsSP2Triangles 4, 5, 1, 0x0, 4, 6, 5, 0x0
  171. gsSP2Triangles 1, 5, 7, 0x0, 6, 8, 9, 0x0
  172. gsSP2Triangles 8, 10, 9, 0x0, 8, 11, 10, 0x0
  173. gsSP2Triangles 9, 10, 12, 0x0, 1, 13, 2, 0x0
  174. gsSP2Triangles 1, 7, 13, 0x0, 2, 13, 14, 0x0
  175. gsSPVertex hmc_seg7_vertex_07023728, 16, 0
  176. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  177. gsSP2Triangles 1, 4, 3, 0x0, 2, 3, 5, 0x0
  178. gsSP2Triangles 6, 7, 8, 0x0, 7, 9, 10, 0x0
  179. gsSP2Triangles 7, 10, 8, 0x0, 8, 10, 11, 0x0
  180. gsSP2Triangles 9, 12, 13, 0x0, 12, 14, 13, 0x0
  181. gsSP2Triangles 12, 5, 14, 0x0, 13, 14, 15, 0x0
  182. gsSPVertex hmc_seg7_vertex_07023828, 11, 0
  183. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  184. gsSP2Triangles 1, 6, 2, 0x0, 1, 7, 6, 0x0
  185. gsSP2Triangles 2, 6, 8, 0x0, 7, 9, 3, 0x0
  186. gsSP2Triangles 9, 4, 3, 0x0, 9, 10, 4, 0x0
  187. gsSPEndDisplayList
  188. glabel hmc_seg7_dl_07023BC8 # 0x07023BC8 - 0x07023C70
  189. gsDPPipeSync
  190. gsDPSetCycleType G_CYC_2CYCLE
  191. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  192. gsDPSetDepthSource G_ZS_PIXEL
  193. gsDPSetFogColor 0, 0, 0, 255
  194. gsSPFogPosition 960, 1000
  195. gsSPSetGeometryMode G_FOG
  196. 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
  197. 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
  198. gsSPTexture -1, -1, 0, 0, 1
  199. gsDPTileSync
  200. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  201. gsDPSetTileSize 0, 0, 0, 124, 252
  202. gsSPDisplayList hmc_seg7_dl_070238D8
  203. gsSPTexture -1, -1, 0, 0, 0
  204. gsDPPipeSync
  205. gsDPSetCycleType G_CYC_1CYCLE
  206. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  207. gsSPClearGeometryMode G_FOG
  208. 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
  209. gsSPEndDisplayList