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.

202 lines
11 KiB

6 years ago
  1. ssl_seg7_light_07022DA8: # 0x07022DA8 - 0x07022DB0
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ssl_seg7_light_07022DB0: # 0x07022DB0 - 0x07022DC0
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ssl_seg7_vertex_07022DC0: # 0x07022DC0 - 0x07022E80
  7. vertex 512, 0, -511, 3034, -1054, 0x2A, 0x54, 0xAC, 0xFF
  8. vertex -511, -50, -511, -1052, -1054, 0xD6, 0xAC, 0xAC, 0xFF
  9. vertex -511, 0, -511, -1052, -1054, 0x99, 0x33, 0xCD, 0xFF
  10. vertex 512, -50, -511, 3034, -1054, 0x67, 0xCD, 0xCD, 0xFF
  11. vertex 512, 0, 512, 3034, 3032, 0x67, 0x33, 0x33, 0xFF
  12. vertex 512, -50, 512, 3034, 3032, 0x2A, 0xAC, 0x54, 0xFF
  13. vertex -511, -50, 512, -1052, 3032, 0x99, 0xCD, 0x33, 0xFF
  14. vertex -511, 0, 512, -1052, 3032, 0xD6, 0x54, 0x54, 0xFF
  15. vertex -511, 0, 512, -1052, 2010, 0xD6, 0x54, 0x54, 0xFF
  16. vertex 512, 0, -511, 3034, -2076, 0x2A, 0x54, 0xAC, 0xFF
  17. vertex -511, 0, -511, -1052, -2076, 0x99, 0x33, 0xCD, 0xFF
  18. vertex 512, 0, 512, 3034, 2010, 0x67, 0x33, 0x33, 0xFF
  19. ssl_seg7_vertex_07022E80: # 0x07022E80 - 0x07022F70
  20. vertex 512, 256, -511, -4118, 0, 0x21, 0x65, 0xBD, 0xFF
  21. vertex 512, 205, -511, -4118, 480, 0x43, 0x9B, 0xDF, 0xFF
  22. vertex -511, 205, -511, 6100, 480, 0xDF, 0x9B, 0xBD, 0xFF
  23. vertex 512, 256, 512, -4630, 0, 0x43, 0x65, 0x21, 0xFF
  24. vertex 512, 205, -511, 5590, 478, 0x43, 0x9B, 0xDF, 0xFF
  25. vertex 512, 256, -511, 5590, 0, 0x21, 0x65, 0xBD, 0xFF
  26. vertex 512, 205, 512, -4630, 480, 0x21, 0x9B, 0x43, 0xFF
  27. vertex -511, 256, 512, -4118, 0, 0xDF, 0x65, 0x43, 0xFF
  28. vertex 512, 205, 512, 6100, 478, 0x21, 0x9B, 0x43, 0xFF
  29. vertex 512, 256, 512, 6100, 0, 0x43, 0x65, 0x21, 0xFF
  30. vertex -511, 205, 512, -4118, 480, 0xBD, 0x9B, 0x21, 0xFF
  31. vertex -511, 256, -511, -4630, 0, 0xBD, 0x65, 0xDF, 0xFF
  32. vertex -511, 205, 512, 5590, 478, 0xBD, 0x9B, 0x21, 0xFF
  33. vertex -511, 256, 512, 5590, 0, 0xDF, 0x65, 0x43, 0xFF
  34. vertex -511, 205, -511, -4630, 480, 0xDF, 0x9B, 0xBD, 0xFF
  35. ssl_seg7_vertex_07022F70: # 0x07022F70 - 0x07023060
  36. vertex -460, 256, -460, -4118, 0, 0x21, 0x65, 0x43, 0xFF
  37. vertex -460, 205, -460, -4118, 478, 0x43, 0x9B, 0x21, 0xFF
  38. vertex 461, 205, -460, 5078, 478, 0xDF, 0x9B, 0x43, 0xFF
  39. vertex 512, 256, -511, -4118, 0, 0x21, 0x65, 0xBD, 0xFF
  40. vertex -511, 205, -511, 6100, 480, 0xDF, 0x9B, 0xBD, 0xFF
  41. vertex -511, 256, -511, 6100, 0, 0xBD, 0x65, 0xDF, 0xFF
  42. vertex 461, 256, 461, -4118, 0, 0xDF, 0x65, 0xBD, 0xFF
  43. vertex -460, 205, 461, 5078, 480, 0x21, 0x9B, 0xBD, 0xFF
  44. vertex -460, 256, 461, 5078, 0, 0x43, 0x65, 0xDF, 0xFF
  45. vertex 461, 205, 461, -4118, 478, 0xBD, 0x9B, 0xDF, 0xFF
  46. vertex -460, 256, 461, -3606, 0, 0x43, 0x65, 0xDF, 0xFF
  47. vertex -460, 205, 461, -3606, 480, 0x21, 0x9B, 0xBD, 0xFF
  48. vertex -460, 205, -460, 5588, 478, 0x43, 0x9B, 0x21, 0xFF
  49. vertex -460, 256, -460, 5588, 0, 0x21, 0x65, 0x43, 0xFF
  50. vertex 461, 256, -460, 5078, 0, 0xBD, 0x65, 0x21, 0xFF
  51. ssl_seg7_vertex_07023060: # 0x07023060 - 0x07023150
  52. vertex 512, 256, 512, 6100, -5142, 0x43, 0x65, 0x21, 0xFF
  53. vertex -460, 256, 461, 5588, 4564, 0x43, 0x65, 0xDF, 0xFF
  54. vertex -511, 256, 512, 6100, 5076, 0xDF, 0x65, 0x43, 0xFF
  55. vertex 461, 256, -460, -4628, 0, 0xBD, 0x65, 0x21, 0xFF
  56. vertex 461, 205, 461, 4566, 480, 0xBD, 0x9B, 0xDF, 0xFF
  57. vertex 461, 256, 461, 4566, 0, 0xDF, 0x65, 0xBD, 0xFF
  58. vertex 461, 205, -460, -4628, 478, 0xDF, 0x9B, 0x43, 0xFF
  59. vertex -511, 205, -511, -4118, 6098, 0xDF, 0x9B, 0xBD, 0xFF
  60. vertex -460, 205, 461, -3608, -3610, 0x21, 0x9B, 0xBD, 0xFF
  61. vertex -511, 205, 512, -4118, -4120, 0xBD, 0x9B, 0x21, 0xFF
  62. vertex 512, 205, -511, 6100, 6098, 0x43, 0x9B, 0xDF, 0xFF
  63. vertex -460, 205, -460, -3608, 5588, 0x43, 0x9B, 0x21, 0xFF
  64. vertex 461, 205, -460, 5590, 5588, 0xDF, 0x9B, 0x43, 0xFF
  65. vertex 461, 205, 461, 5590, -3610, 0xBD, 0x9B, 0xDF, 0xFF
  66. vertex 512, 205, 512, 6100, -4120, 0x21, 0x9B, 0x43, 0xFF
  67. ssl_seg7_vertex_07023150: # 0x07023150 - 0x070231D0
  68. vertex 512, 256, -511, -4118, -5142, 0x21, 0x65, 0xBD, 0xFF
  69. vertex 461, 256, 461, 5588, -4632, 0xDF, 0x65, 0xBD, 0xFF
  70. vertex 512, 256, 512, 6100, -5142, 0x43, 0x65, 0x21, 0xFF
  71. vertex -511, 256, 512, 6100, 5076, 0xDF, 0x65, 0x43, 0xFF
  72. vertex -460, 256, -460, -3606, 4566, 0x21, 0x65, 0x43, 0xFF
  73. vertex -511, 256, -511, -4118, 5076, 0xBD, 0x65, 0xDF, 0xFF
  74. vertex -460, 256, 461, 5588, 4564, 0x43, 0x65, 0xDF, 0xFF
  75. vertex 461, 256, -460, -3606, -4632, 0xBD, 0x65, 0x21, 0xFF
  76. ssl_seg7_dl_070231D0: # 0x070231D0 - 0x07023268
  77. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_0900A800
  78. gsDPLoadSync
  79. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  80. gsSPLight ssl_seg7_light_07022DB0, 1
  81. gsSPLight ssl_seg7_light_07022DA8, 2
  82. gsSPVertex ssl_seg7_vertex_07022DC0, 12, 0
  83. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  84. gsSP2Triangles 4, 3, 0, 0x0, 1, 3, 5, 0x0
  85. gsSP2Triangles 4, 5, 3, 0x0, 1, 5, 6, 0x0
  86. gsSP2Triangles 2, 1, 6, 0x0, 2, 6, 7, 0x0
  87. gsSP2Triangles 7, 6, 5, 0x0, 7, 5, 4, 0x0
  88. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
  89. gsSPEndDisplayList
  90. ssl_seg7_dl_07023268: # 0x07023268 - 0x070233A8
  91. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09001000
  92. gsDPLoadSync
  93. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  94. gsSPVertex ssl_seg7_vertex_07022E80, 15, 0
  95. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  96. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  97. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  98. gsSP1Triangle 11, 14, 12, 0x0
  99. gsSPVertex ssl_seg7_vertex_07022F70, 15, 0
  100. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  101. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  102. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  103. gsSP1Triangle 0, 2, 14, 0x0
  104. gsSPVertex ssl_seg7_vertex_07023060, 15, 0
  105. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  106. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  107. gsSP2Triangles 10, 11, 7, 0x0, 7, 11, 8, 0x0
  108. gsSP2Triangles 10, 12, 11, 0x0, 9, 8, 13, 0x0
  109. gsSP2Triangles 9, 13, 14, 0x0, 14, 12, 10, 0x0
  110. gsSP1Triangle 14, 13, 12, 0x0
  111. gsSPVertex ssl_seg7_vertex_07023150, 8, 0
  112. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  113. gsSP2Triangles 2, 1, 6, 0x0, 3, 6, 4, 0x0
  114. gsSP2Triangles 5, 4, 7, 0x0, 5, 7, 0, 0x0
  115. gsSP1Triangle 0, 7, 1, 0x0
  116. gsSPEndDisplayList
  117. glabel ssl_seg7_dl_070233A8 # 0x070233A8 - 0x07023458
  118. gsDPPipeSync
  119. gsDPSetCycleType G_CYC_2CYCLE
  120. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  121. gsDPSetDepthSource G_ZS_PIXEL
  122. gsDPSetFogColor 0, 0, 0, 255
  123. gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
  124. gsSPSetGeometryMode G_FOG
  125. 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
  126. 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
  127. gsSPTexture -1, -1, 0, 0, 1
  128. gsDPTileSync
  129. 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
  130. gsDPSetTileSize 0, 0, 0, 124, 124
  131. gsSPDisplayList ssl_seg7_dl_070231D0
  132. gsSPDisplayList ssl_seg7_dl_07023268
  133. gsSPTexture -1, -1, 0, 0, 0
  134. gsDPPipeSync
  135. gsDPSetCycleType G_CYC_1CYCLE
  136. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  137. gsSPClearGeometryMode G_FOG
  138. 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
  139. gsSPEndDisplayList
  140. ssl_seg7_vertex_07023458: # 0x07023458 - 0x07023558
  141. vertex -485, 0, -485, 96, 990, 0xFF, 0xFF, 0xFF, 0xFF
  142. vertex -485, 205, 486, 9804, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  143. vertex -485, 0, 486, 9804, 990, 0xFF, 0xFF, 0xFF, 0xFF
  144. vertex 486, 0, 486, 9804, 990, 0xFF, 0xFF, 0xFF, 0xFF
  145. vertex -485, 0, 486, 96, 990, 0xFF, 0xFF, 0xFF, 0xFF
  146. vertex -485, 205, 486, 96, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  147. vertex 486, 205, 486, 9804, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  148. vertex 486, 0, 486, 96, 990, 0xFF, 0xFF, 0xFF, 0xFF
  149. vertex 486, 205, 486, 96, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  150. vertex 486, 205, -485, 9804, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  151. vertex 486, 0, -485, 9804, 990, 0xFF, 0xFF, 0xFF, 0xFF
  152. vertex -485, 0, -485, 9804, 990, 0xFF, 0xFF, 0xFF, 0xFF
  153. vertex 486, 205, -485, 96, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  154. vertex -485, 205, -485, 9804, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  155. vertex 486, 0, -485, 96, 990, 0xFF, 0xFF, 0xFF, 0xFF
  156. vertex -485, 205, -485, 96, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  157. ssl_seg7_dl_07023558: # 0x07023558 - 0x070235C0
  158. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09008800
  159. gsDPLoadSync
  160. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  161. gsSPVertex ssl_seg7_vertex_07023458, 16, 0
  162. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  163. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  164. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  165. gsSP2Triangles 11, 14, 12, 0x0, 0, 15, 1, 0x0
  166. gsSPEndDisplayList
  167. glabel ssl_seg7_dl_070235C0 # 0x070235C0 - 0x07023678
  168. gsDPPipeSync
  169. gsDPSetCycleType G_CYC_2CYCLE
  170. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2
  171. gsDPSetDepthSource G_ZS_PIXEL
  172. gsDPSetFogColor 0, 0, 0, 255
  173. gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
  174. gsSPSetGeometryMode G_FOG
  175. gsDPSetCombineMode G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_COMBINED, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_COMBINED
  176. gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
  177. 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
  178. gsSPTexture -1, -1, 0, 0, 1
  179. gsDPTileSync
  180. 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
  181. gsDPSetTileSize 0, 0, 0, 124, 124
  182. gsSPDisplayList ssl_seg7_dl_07023558
  183. gsSPTexture -1, -1, 0, 0, 0
  184. gsDPPipeSync
  185. gsDPSetCycleType G_CYC_1CYCLE
  186. gsDPSetRenderMode G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2
  187. gsSPClearGeometryMode G_FOG
  188. 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
  189. gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
  190. gsSPEndDisplayList