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.

182 lines
9.8 KiB

6 years ago
  1. wf_seg7_light_07008838: # 0x07008838 - 0x07008840
  2. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  3. wf_seg7_light_07008840: # 0x07008840 - 0x07008850
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. wf_seg7_vertex_07008850: # 0x07008850 - 0x07008950
  7. vertex 128, 1792, 128, 1244, 1000, 0x00, 0x00, 0x7F, 0xFF
  8. vertex 128, 2048, 128, 1244, -20, 0x00, 0x00, 0x7F, 0xFF
  9. vertex -127, 2048, 128, 222, -20, 0x00, 0x00, 0x7F, 0xFF
  10. vertex -127, 1792, -127, 1236, 990, 0x00, 0x00, 0x81, 0xFF
  11. vertex 128, 2048, -127, 214, -30, 0x00, 0x00, 0x81, 0xFF
  12. vertex 128, 1792, -127, 214, 990, 0x00, 0x00, 0x81, 0xFF
  13. vertex -127, 2048, -127, 1236, -30, 0x00, 0x00, 0x81, 0xFF
  14. vertex -127, 1792, 128, 1226, 988, 0x81, 0x00, 0x00, 0xFF
  15. vertex -127, 2048, 128, 1226, -34, 0x81, 0x00, 0x00, 0xFF
  16. vertex -127, 2048, -127, 204, -34, 0x81, 0x00, 0x00, 0xFF
  17. vertex -127, 1792, -127, 204, 988, 0x81, 0x00, 0x00, 0xFF
  18. vertex 128, 1792, -127, 1244, 996, 0x7F, 0x00, 0x00, 0xFF
  19. vertex 128, 2048, -127, 1244, -24, 0x7F, 0x00, 0x00, 0xFF
  20. vertex 128, 2048, 128, 222, -24, 0x7F, 0x00, 0x00, 0xFF
  21. vertex 128, 1792, 128, 222, 996, 0x7F, 0x00, 0x00, 0xFF
  22. vertex -127, 1792, 128, 222, 1000, 0x00, 0x00, 0x7F, 0xFF
  23. wf_seg7_vertex_07008950: # 0x07008950 - 0x070089F0
  24. vertex 256, 2048, 256, 4056, 4054, 0x00, 0x81, 0x00, 0xFF
  25. vertex -255, 2048, 256, 4056, 0, 0x00, 0x81, 0x00, 0xFF
  26. vertex -255, 2048, -255, 0, 0, 0x00, 0x81, 0x00, 0xFF
  27. vertex 256, 2048, -255, 0, 4054, 0x00, 0x81, 0x00, 0xFF
  28. vertex 0, 1792, -537, -802, -1362, 0x00, 0x7F, 0x00, 0xFF
  29. vertex 466, 1792, 269, 1056, 1858, 0x00, 0x7F, 0x00, 0xFF
  30. vertex 466, 1792, -268, 1056, -288, 0x00, 0x7F, 0x00, 0xFF
  31. vertex -465, 1792, -268, -2662, -288, 0x00, 0x7F, 0x00, 0xFF
  32. vertex -465, 1792, 269, -2662, 1858, 0x00, 0x7F, 0x00, 0xFF
  33. vertex 0, 1792, 538, -802, 2932, 0x00, 0x7F, 0x00, 0xFF
  34. wf_seg7_vertex_070089F0: # 0x070089F0 - 0x07008AF0
  35. vertex 466, 1536, -268, 990, 990, 0x7F, 0x00, 0x00, 0xFF
  36. vertex 466, 1792, -268, 990, 0, 0x7F, 0x00, 0x00, 0xFF
  37. vertex 466, 1792, 269, -82, 0, 0x7F, 0x00, 0x00, 0xFF
  38. vertex -465, 1536, 269, 1042, 990, 0x81, 0x00, 0x00, 0xFF
  39. vertex -465, 1792, -268, 0, 0, 0x81, 0x00, 0x00, 0xFF
  40. vertex -465, 1536, -268, 0, 990, 0x81, 0x00, 0x00, 0xFF
  41. vertex -465, 1792, 269, 1042, 0, 0x81, 0x00, 0x00, 0xFF
  42. vertex 0, 1536, 538, 1042, 990, 0xC1, 0x00, 0x6D, 0xFF
  43. vertex -465, 1792, 269, 0, 0, 0xC1, 0x00, 0x6D, 0xFF
  44. vertex -465, 1536, 269, 0, 990, 0xC1, 0x00, 0x6D, 0xFF
  45. vertex 0, 1792, 538, 1042, 0, 0xC1, 0x00, 0x6D, 0xFF
  46. vertex 466, 1536, 269, 990, 990, 0x3F, 0x00, 0x6D, 0xFF
  47. vertex 0, 1792, 538, -82, 0, 0x3F, 0x00, 0x6D, 0xFF
  48. vertex 0, 1536, 538, -82, 990, 0x3F, 0x00, 0x6D, 0xFF
  49. vertex 466, 1792, 269, 990, 0, 0x3F, 0x00, 0x6D, 0xFF
  50. vertex 466, 1536, 269, -82, 990, 0x7F, 0x00, 0x00, 0xFF
  51. wf_seg7_vertex_07008AF0: # 0x07008AF0 - 0x07008BD0
  52. vertex 0, 1536, -537, 990, 990, 0x3F, 0x00, 0x93, 0xFF
  53. vertex 466, 1792, -268, -82, 0, 0x3F, 0x00, 0x93, 0xFF
  54. vertex 466, 1536, -268, -82, 990, 0x3F, 0x00, 0x93, 0xFF
  55. vertex 0, 1792, -537, 990, 0, 0x3F, 0x00, 0x93, 0xFF
  56. vertex -465, 1536, -268, 1042, 990, 0xC1, 0x00, 0x93, 0xFF
  57. vertex 0, 1792, -537, 0, 0, 0xC1, 0x00, 0x93, 0xFF
  58. vertex 0, 1536, -537, 0, 990, 0xC1, 0x00, 0x93, 0xFF
  59. vertex -465, 1792, -268, 1042, 0, 0xC1, 0x00, 0x93, 0xFF
  60. vertex 256, 2048, -255, -1052, 990, 0x00, 0x38, 0x8F, 0xFF
  61. vertex -255, 2048, -255, 3034, 990, 0x00, 0x38, 0x8F, 0xFF
  62. vertex 0, 2560, 0, 990, -3580, 0x00, 0x38, 0x8F, 0xFF
  63. vertex -255, 2048, 256, -2414, 982, 0x00, 0x38, 0x71, 0xFF
  64. vertex 256, 2048, 256, 1672, 982, 0x00, 0x38, 0x71, 0xFF
  65. vertex 0, 2560, 0, -370, -3588, 0x00, 0x38, 0x71, 0xFF
  66. wf_seg7_vertex_07008BD0: # 0x07008BD0 - 0x07008C30
  67. vertex -255, 2048, -255, 0, 990, 0x8F, 0x38, 0x00, 0xFF
  68. vertex -255, 2048, 256, 4056, 990, 0x8F, 0x38, 0x00, 0xFF
  69. vertex 0, 2560, 0, 2012, -3580, 0x8F, 0x38, 0x00, 0xFF
  70. vertex 256, 2048, 256, 0, 990, 0x71, 0x38, 0x00, 0xFF
  71. vertex 256, 2048, -255, 4056, 990, 0x71, 0x38, 0x00, 0xFF
  72. vertex 0, 2560, 0, 2012, -3580, 0x71, 0x38, 0x00, 0xFF
  73. wf_seg7_vertex_07008C30: # 0x07008C30 - 0x07008D20
  74. vertex 466, 0, -268, 1246, 7120, 0x7F, 0x00, 0x00, 0xFF
  75. vertex 466, 1536, 269, -94, -544, 0x7F, 0x00, 0x00, 0xFF
  76. vertex 466, 0, 269, -94, 7120, 0x7F, 0x00, 0x00, 0xFF
  77. vertex -465, 0, 269, 1246, 7120, 0x81, 0x00, 0x00, 0xFF
  78. vertex -465, 1536, 269, 1246, -542, 0x81, 0x00, 0x00, 0xFF
  79. vertex -465, 1536, -268, -94, -544, 0x81, 0x00, 0x00, 0xFF
  80. vertex -465, 0, -268, -94, 7120, 0x81, 0x00, 0x00, 0xFF
  81. vertex 0, 0, 538, 1246, 7120, 0xC1, 0x00, 0x6D, 0xFF
  82. vertex 0, 1536, 538, 1246, -542, 0xC1, 0x00, 0x6D, 0xFF
  83. vertex -465, 1536, 269, -94, -542, 0xC1, 0x00, 0x6D, 0xFF
  84. vertex -465, 0, 269, -94, 7120, 0xC1, 0x00, 0x6D, 0xFF
  85. vertex 466, 0, 269, 1246, 7120, 0x3F, 0x00, 0x6D, 0xFF
  86. vertex 466, 1536, 269, 1246, -544, 0x3F, 0x00, 0x6D, 0xFF
  87. vertex 0, 1536, 538, -94, -544, 0x3F, 0x00, 0x6D, 0xFF
  88. vertex 0, 0, 538, -94, 7120, 0x3F, 0x00, 0x6D, 0xFF
  89. wf_seg7_vertex_07008D20: # 0x07008D20 - 0x07008DD0
  90. vertex -465, 0, -268, 1246, 7120, 0xC1, 0x00, 0x93, 0xFF
  91. vertex -465, 1536, -268, 1246, -544, 0xC1, 0x00, 0x93, 0xFF
  92. vertex 0, 1536, -537, -94, -544, 0xC1, 0x00, 0x93, 0xFF
  93. vertex 466, 0, -268, 1246, 7120, 0x7F, 0x00, 0x00, 0xFF
  94. vertex 466, 1536, -268, 1246, -544, 0x7F, 0x00, 0x00, 0xFF
  95. vertex 466, 1536, 269, -94, -544, 0x7F, 0x00, 0x00, 0xFF
  96. vertex 0, 0, -537, 1246, 7120, 0x3F, 0x00, 0x93, 0xFF
  97. vertex 0, 1536, -537, 1246, -542, 0x3F, 0x00, 0x93, 0xFF
  98. vertex 466, 1536, -268, -94, -544, 0x3F, 0x00, 0x93, 0xFF
  99. vertex 466, 0, -268, -94, 7120, 0x3F, 0x00, 0x93, 0xFF
  100. vertex 0, 0, -537, -94, 7120, 0xC1, 0x00, 0x93, 0xFF
  101. wf_seg7_dl_07008DD0: # 0x07008DD0 - 0x07008E48
  102. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wf_seg7_texture_07001800
  103. gsDPLoadSync
  104. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  105. gsSPLight wf_seg7_light_07008840, 1
  106. gsSPLight wf_seg7_light_07008838, 2
  107. gsSPVertex wf_seg7_vertex_07008850, 16, 0
  108. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  109. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  110. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  111. gsSP2Triangles 11, 13, 14, 0x0, 0, 2, 15, 0x0
  112. gsSPEndDisplayList
  113. wf_seg7_dl_07008E48: # 0x07008E48 - 0x07008EA0
  114. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007800
  115. gsDPLoadSync
  116. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  117. gsSPVertex wf_seg7_vertex_07008950, 10, 0
  118. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  119. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 8, 0x0
  120. gsSP2Triangles 4, 8, 9, 0x0, 4, 9, 5, 0x0
  121. gsSPEndDisplayList
  122. wf_seg7_dl_07008EA0: # 0x07008EA0 - 0x07008F58
  123. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09009000
  124. gsDPLoadSync
  125. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  126. gsSPVertex wf_seg7_vertex_070089F0, 16, 0
  127. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  128. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  129. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  130. gsSP2Triangles 11, 14, 12, 0x0, 0, 2, 15, 0x0
  131. gsSPVertex wf_seg7_vertex_07008AF0, 14, 0
  132. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  133. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  134. gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
  135. gsSPVertex wf_seg7_vertex_07008BD0, 6, 0
  136. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  137. gsSPEndDisplayList
  138. wf_seg7_dl_07008F58: # 0x07008F58 - 0x07008FE8
  139. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09007000
  140. gsDPLoadSync
  141. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  142. gsSPVertex wf_seg7_vertex_07008C30, 15, 0
  143. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  144. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  145. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  146. gsSP1Triangle 11, 13, 14, 0x0
  147. gsSPVertex wf_seg7_vertex_07008D20, 11, 0
  148. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  149. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  150. gsSP1Triangle 0, 2, 10, 0x0
  151. gsSPEndDisplayList
  152. glabel wf_seg7_dl_07008FE8 # 0x07008FE8 - 0x07009070
  153. gsDPPipeSync
  154. 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
  155. gsSPClearGeometryMode G_SHADING_SMOOTH
  156. 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
  157. gsSPTexture -1, -1, 0, 0, 1
  158. gsDPTileSync
  159. 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
  160. gsDPSetTileSize 0, 0, 0, 124, 124
  161. gsSPDisplayList wf_seg7_dl_07008DD0
  162. gsSPDisplayList wf_seg7_dl_07008E48
  163. gsSPDisplayList wf_seg7_dl_07008EA0
  164. gsSPDisplayList wf_seg7_dl_07008F58
  165. gsSPTexture -1, -1, 0, 0, 0
  166. gsDPPipeSync
  167. 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
  168. gsSPSetGeometryMode G_SHADING_SMOOTH
  169. gsSPEndDisplayList