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.

193 lines
10 KiB

6 years ago
  1. ssl_seg7_light_070222A0: # 0x070222A0 - 0x070222A8
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ssl_seg7_light_070222A8: # 0x070222A8 - 0x070222B8
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ssl_seg7_vertex_070222B8: # 0x070222B8 - 0x070223B8
  7. vertex -306, 0, 0, 486, 912, 0x81, 0x00, 0x00, 0xFF
  8. vertex -306, 78, -188, 172, 0, 0xB7, 0x1A, 0x9D, 0xFF
  9. vertex -306, -77, -188, 798, 0, 0xB7, 0xCC, 0xA7, 0xFF
  10. vertex -306, -77, -188, 172, 0, 0xB7, 0xCC, 0xA7, 0xFF
  11. vertex -306, -188, -77, 798, 0, 0xB7, 0x9D, 0xE6, 0xFF
  12. vertex -306, 78, 189, 172, 0, 0xB7, 0x34, 0x59, 0xFF
  13. vertex -306, 189, 78, 798, 0, 0xB7, 0x63, 0x1A, 0xFF
  14. vertex -306, 189, 78, 172, 0, 0xB7, 0x63, 0x1A, 0xFF
  15. vertex -306, 189, -77, 798, 0, 0xB7, 0x59, 0xCC, 0xFF
  16. vertex -306, 189, -77, 172, 0, 0xB7, 0x59, 0xCC, 0xFF
  17. vertex -306, 78, -188, 798, 0, 0xB7, 0x1A, 0x9D, 0xFF
  18. vertex 307, 78, 189, 798, 0, 0x49, 0x1A, 0x63, 0xFF
  19. vertex 307, -77, 189, 172, 0, 0x49, 0xCC, 0x59, 0xFF
  20. vertex 307, 0, 0, 486, 912, 0x7F, 0x00, 0x00, 0xFF
  21. vertex -306, -188, -77, 172, 0, 0xB7, 0x9D, 0xE6, 0xFF
  22. vertex -306, -188, 78, 798, 0, 0xB7, 0xA7, 0x34, 0xFF
  23. ssl_seg7_vertex_070223B8: # 0x070223B8 - 0x070224B8
  24. vertex -306, 0, 0, 486, 912, 0x81, 0x00, 0x00, 0xFF
  25. vertex -306, -188, 78, 172, 0, 0xB7, 0xA7, 0x34, 0xFF
  26. vertex -306, -77, 189, 798, 0, 0xB7, 0xE6, 0x63, 0xFF
  27. vertex -306, -77, 189, 172, 0, 0xB7, 0xE6, 0x63, 0xFF
  28. vertex -306, 78, 189, 798, 0, 0xB7, 0x34, 0x59, 0xFF
  29. vertex 307, 189, 78, 798, 0, 0x49, 0x59, 0x34, 0xFF
  30. vertex 307, 78, 189, 172, 0, 0x49, 0x1A, 0x63, 0xFF
  31. vertex 307, 0, 0, 486, 912, 0x7F, 0x00, 0x00, 0xFF
  32. vertex 307, 78, -188, 798, 0, 0x49, 0x34, 0xA7, 0xFF
  33. vertex 307, 189, -77, 172, 0, 0x49, 0x63, 0xE6, 0xFF
  34. vertex 307, -77, 189, 798, 0, 0x49, 0xCC, 0x59, 0xFF
  35. vertex 307, -188, 78, 172, 0, 0x49, 0x9D, 0x1A, 0xFF
  36. vertex 307, -188, 78, 798, 0, 0x49, 0x9D, 0x1A, 0xFF
  37. vertex 307, -188, -77, 172, 0, 0x49, 0xA7, 0xCC, 0xFF
  38. vertex 307, -188, -77, 798, 0, 0x49, 0xA7, 0xCC, 0xFF
  39. vertex 307, -77, -188, 172, 0, 0x49, 0xE6, 0x9D, 0xFF
  40. ssl_seg7_vertex_070224B8: # 0x070224B8 - 0x07022508
  41. vertex 307, -77, -188, 798, 0, 0x49, 0xE6, 0x9D, 0xFF
  42. vertex 307, 78, -188, 172, 0, 0x49, 0x34, 0xA7, 0xFF
  43. vertex 307, 0, 0, 486, 912, 0x7F, 0x00, 0x00, 0xFF
  44. vertex 307, 189, -77, 798, 0, 0x49, 0x63, 0xE6, 0xFF
  45. vertex 307, 189, 78, 172, 0, 0x49, 0x59, 0x34, 0xFF
  46. ssl_seg7_vertex_07022508: # 0x07022508 - 0x070225F8
  47. vertex -306, -77, -188, 990, 2012, 0xB7, 0xCC, 0xA7, 0xFF
  48. vertex 307, -77, -188, 990, -4120, 0x49, 0xE6, 0x9D, 0xFF
  49. vertex 307, -188, -77, 0, -4120, 0x49, 0xA7, 0xCC, 0xFF
  50. vertex -306, -77, 189, 990, 2012, 0xB7, 0xE6, 0x63, 0xFF
  51. vertex 307, -77, 189, 990, -4120, 0x49, 0xCC, 0x59, 0xFF
  52. vertex 307, 78, 189, 0, -4120, 0x49, 0x1A, 0x63, 0xFF
  53. vertex -306, 78, 189, 0, 2012, 0xB7, 0x34, 0x59, 0xFF
  54. vertex -306, -188, 78, 990, 2012, 0xB7, 0xA7, 0x34, 0xFF
  55. vertex 307, -77, 189, 0, -4120, 0x49, 0xCC, 0x59, 0xFF
  56. vertex -306, -77, 189, 0, 2012, 0xB7, 0xE6, 0x63, 0xFF
  57. vertex 307, -188, 78, 990, -4120, 0x49, 0x9D, 0x1A, 0xFF
  58. vertex -306, -188, -77, 990, 2012, 0xB7, 0x9D, 0xE6, 0xFF
  59. vertex 307, -188, 78, 0, -4120, 0x49, 0x9D, 0x1A, 0xFF
  60. vertex -306, -188, 78, 0, 2012, 0xB7, 0xA7, 0x34, 0xFF
  61. vertex 307, -188, -77, 990, -4120, 0x49, 0xA7, 0xCC, 0xFF
  62. ssl_seg7_vertex_070225F8: # 0x070225F8 - 0x070226E8
  63. vertex -306, 189, 78, 990, 2012, 0xB7, 0x63, 0x1A, 0xFF
  64. vertex 307, 189, 78, 990, -4120, 0x49, 0x59, 0x34, 0xFF
  65. vertex 307, 189, -77, 0, -4120, 0x49, 0x63, 0xE6, 0xFF
  66. vertex -306, -77, -188, 990, 2012, 0xB7, 0xCC, 0xA7, 0xFF
  67. vertex 307, -188, -77, 0, -4120, 0x49, 0xA7, 0xCC, 0xFF
  68. vertex -306, -188, -77, 0, 2012, 0xB7, 0x9D, 0xE6, 0xFF
  69. vertex -306, 78, -188, 990, 2012, 0xB7, 0x1A, 0x9D, 0xFF
  70. vertex 307, -77, -188, 0, -4120, 0x49, 0xE6, 0x9D, 0xFF
  71. vertex -306, -77, -188, 0, 2012, 0xB7, 0xCC, 0xA7, 0xFF
  72. vertex 307, 78, -188, 990, -4120, 0x49, 0x34, 0xA7, 0xFF
  73. vertex -306, 189, -77, 990, 2012, 0xB7, 0x59, 0xCC, 0xFF
  74. vertex 307, 78, -188, 0, -4120, 0x49, 0x34, 0xA7, 0xFF
  75. vertex -306, 78, -188, 0, 2012, 0xB7, 0x1A, 0x9D, 0xFF
  76. vertex 307, 189, -77, 990, -4120, 0x49, 0x63, 0xE6, 0xFF
  77. vertex -306, 189, -77, 0, 2012, 0xB7, 0x59, 0xCC, 0xFF
  78. ssl_seg7_vertex_070226E8: # 0x070226E8 - 0x07022728
  79. vertex -306, 78, 189, 990, 2012, 0xB7, 0x34, 0x59, 0xFF
  80. vertex 307, 78, 189, 990, -4120, 0x49, 0x1A, 0x63, 0xFF
  81. vertex 307, 189, 78, 0, -4120, 0x49, 0x59, 0x34, 0xFF
  82. vertex -306, 189, 78, 0, 2012, 0xB7, 0x63, 0x1A, 0xFF
  83. ssl_seg7_dl_07022728: # 0x07022728 - 0x070227F0
  84. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09002000
  85. gsDPLoadSync
  86. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  87. gsSPLight ssl_seg7_light_070222A8, 1
  88. gsSPLight ssl_seg7_light_070222A0, 2
  89. gsSPVertex ssl_seg7_vertex_070222B8, 16, 0
  90. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  91. gsSP2Triangles 0, 5, 6, 0x0, 0, 7, 8, 0x0
  92. gsSP2Triangles 0, 9, 10, 0x0, 11, 12, 13, 0x0
  93. gsSP1Triangle 0, 14, 15, 0x0
  94. gsSPVertex ssl_seg7_vertex_070223B8, 16, 0
  95. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
  96. gsSP2Triangles 5, 6, 7, 0x0, 8, 9, 7, 0x0
  97. gsSP2Triangles 10, 11, 7, 0x0, 12, 13, 7, 0x0
  98. gsSP1Triangle 14, 15, 7, 0x0
  99. gsSPVertex ssl_seg7_vertex_070224B8, 5, 0
  100. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 2, 0x0
  101. gsSPEndDisplayList
  102. ssl_seg7_dl_070227F0: # 0x070227F0 - 0x070228A8
  103. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_07002800
  104. gsDPLoadSync
  105. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
  106. gsSPVertex ssl_seg7_vertex_07022508, 15, 0
  107. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  108. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  109. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  110. gsSP1Triangle 11, 14, 12, 0x0
  111. gsSPVertex ssl_seg7_vertex_070225F8, 15, 0
  112. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  113. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  114. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  115. gsSP1Triangle 0, 2, 14, 0x0
  116. gsSPVertex ssl_seg7_vertex_070226E8, 4, 0
  117. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  118. gsSPEndDisplayList
  119. glabel ssl_seg7_dl_070228A8 # 0x070228A8 - 0x07022970
  120. gsDPPipeSync
  121. gsDPSetCycleType G_CYC_2CYCLE
  122. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  123. gsDPSetDepthSource G_ZS_PIXEL
  124. gsDPSetFogColor 0, 0, 0, 255
  125. gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
  126. gsSPSetGeometryMode G_FOG
  127. 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
  128. 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
  129. gsSPTexture -1, -1, 0, 0, 1
  130. gsDPTileSync
  131. 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
  132. gsDPSetTileSize 0, 0, 0, 124, 124
  133. gsSPDisplayList ssl_seg7_dl_07022728
  134. gsDPTileSync
  135. 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
  136. gsDPSetTileSize 0, 0, 0, 124, 252
  137. gsSPDisplayList ssl_seg7_dl_070227F0
  138. gsSPTexture -1, -1, 0, 0, 0
  139. gsDPPipeSync
  140. gsDPSetCycleType G_CYC_1CYCLE
  141. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  142. gsSPClearGeometryMode G_FOG
  143. 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
  144. gsSPEndDisplayList
  145. ssl_seg7_vertex_07022970: # 0x07022970 - 0x070229B0
  146. vertex -183, 82, 193, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
  147. vertex 184, 82, 193, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
  148. vertex 184, 193, 82, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  149. vertex -183, 193, 82, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  150. ssl_seg7_dl_070229B0: # 0x070229B0 - 0x070229E8
  151. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_07003800
  152. gsDPLoadSync
  153. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  154. gsSPVertex ssl_seg7_vertex_07022970, 4, 0
  155. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  156. gsSPEndDisplayList
  157. glabel ssl_seg7_dl_070229E8 # 0x070229E8 - 0x07022AA0
  158. gsDPPipeSync
  159. gsDPSetCycleType G_CYC_2CYCLE
  160. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2
  161. gsDPSetDepthSource G_ZS_PIXEL
  162. gsDPSetFogColor 0, 0, 0, 255
  163. gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
  164. gsSPSetGeometryMode G_FOG
  165. 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
  166. gsSPClearGeometryMode G_LIGHTING
  167. 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
  168. gsSPTexture -1, -1, 0, 0, 1
  169. gsDPTileSync
  170. 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
  171. gsDPSetTileSize 0, 0, 0, 124, 124
  172. gsSPDisplayList ssl_seg7_dl_070229B0
  173. gsSPTexture -1, -1, 0, 0, 0
  174. gsDPPipeSync
  175. gsDPSetCycleType G_CYC_1CYCLE
  176. gsDPSetRenderMode G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2
  177. gsSPClearGeometryMode G_FOG
  178. 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
  179. gsSPSetGeometryMode G_LIGHTING
  180. gsSPEndDisplayList