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.

129 lines
7.2 KiB

6 years ago
  1. wf_seg7_light_07005F58: # 0x07005F58 - 0x07005F60
  2. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  3. wf_seg7_light_07005F60: # 0x07005F60 - 0x07005F70
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. wf_seg7_vertex_07005F70: # 0x07005F70 - 0x07006060
  7. vertex 179, 458, 900, 0, 2008, 0x00, 0x7F, 0x00, 0xFF
  8. vertex 179, 458, 520, 0, 3526, 0x00, 0x7F, 0x00, 0xFF
  9. vertex -178, 458, 520, 1398, 3526, 0x00, 0x7F, 0x00, 0xFF
  10. vertex 179, -88, -239, 0, 6558, 0x00, 0x7E, 0x02, 0xFF
  11. vertex 179, -79, -620, 0, 8080, 0x00, 0x7E, 0x02, 0xFF
  12. vertex -178, -88, -239, 1398, 6558, 0x00, 0x7E, 0x02, 0xFF
  13. vertex -178, -79, -620, 1398, 8080, 0x00, 0x7E, 0x02, 0xFF
  14. vertex 179, 640, 1280, 0, 494, 0x00, 0x7F, 0x00, 0xFF
  15. vertex -178, 640, 900, 1398, 2010, 0x00, 0x7F, 0x00, 0xFF
  16. vertex -178, 640, 1280, 1398, 494, 0x00, 0x7F, 0x00, 0xFF
  17. vertex 179, 640, 900, 0, 2010, 0x00, 0x7F, 0x00, 0xFF
  18. vertex 179, 640, 900, 70, 262, 0x00, 0x00, 0x81, 0xFF
  19. vertex -178, 458, 900, 1502, 990, 0x00, 0x00, 0x81, 0xFF
  20. vertex -178, 640, 900, 1502, 262, 0x00, 0x00, 0x81, 0xFF
  21. vertex 179, 458, 900, 70, 990, 0x00, 0x00, 0x81, 0xFF
  22. wf_seg7_vertex_07006060: # 0x07006060 - 0x07006150
  23. vertex 179, 275, 140, 70, 1708, 0x00, 0x00, 0x81, 0xFF
  24. vertex 179, 93, 140, 70, 2436, 0x00, 0x00, 0x81, 0xFF
  25. vertex -178, 93, 140, 1502, 2436, 0x00, 0x00, 0x81, 0xFF
  26. vertex 179, 458, 900, 0, 2008, 0x00, 0x7F, 0x00, 0xFF
  27. vertex -178, 458, 520, 1398, 3526, 0x00, 0x7F, 0x00, 0xFF
  28. vertex -178, 458, 900, 1398, 2008, 0x00, 0x7F, 0x00, 0xFF
  29. vertex 179, 458, 520, 70, 986, 0x00, 0x00, 0x81, 0xFF
  30. vertex -178, 275, 520, 1502, 1712, 0x00, 0x00, 0x81, 0xFF
  31. vertex -178, 458, 520, 1502, 986, 0x00, 0x00, 0x81, 0xFF
  32. vertex 179, 275, 520, 70, 1712, 0x00, 0x00, 0x81, 0xFF
  33. vertex 179, 275, 520, 0, 3524, 0x00, 0x7F, 0x00, 0xFF
  34. vertex -178, 275, 140, 1398, 5044, 0x00, 0x7F, 0x00, 0xFF
  35. vertex -178, 275, 520, 1398, 3524, 0x00, 0x7F, 0x00, 0xFF
  36. vertex 179, 275, 140, 0, 5044, 0x00, 0x7F, 0x00, 0xFF
  37. vertex -178, 275, 140, 1502, 1708, 0x00, 0x00, 0x81, 0xFF
  38. wf_seg7_vertex_07006150: # 0x07006150 - 0x07006250
  39. vertex 179, 93, 140, 0, 5042, 0x00, 0x7F, 0x00, 0xFF
  40. vertex -178, 93, -239, 1398, 6560, 0x00, 0x7F, 0x00, 0xFF
  41. vertex -178, 93, 140, 1398, 5042, 0x00, 0x7F, 0x00, 0xFF
  42. vertex 179, 93, -239, 0, 6560, 0x00, 0x7F, 0x00, 0xFF
  43. vertex 179, 93, -239, 70, 2432, 0x00, 0x00, 0x81, 0xFF
  44. vertex -178, -88, -239, 1502, 3160, 0x00, 0x00, 0x81, 0xFF
  45. vertex -178, 93, -239, 1502, 2432, 0x00, 0x00, 0x81, 0xFF
  46. vertex 179, -88, -239, 70, 3160, 0x00, 0x00, 0x81, 0xFF
  47. vertex 179, 275, 520, 1980, 1626, 0x7F, 0x00, 0x00, 0xFF
  48. vertex 179, 458, 520, 1982, 900, 0x7F, 0x00, 0x00, 0xFF
  49. vertex 179, 458, 900, 462, 900, 0x7F, 0x00, 0x00, 0xFF
  50. vertex 179, 640, 900, 464, 172, 0x7F, 0x00, 0x00, 0xFF
  51. vertex 179, 640, 1280, -1052, 172, 0x7F, 0x00, 0x00, 0xFF
  52. vertex -178, -587, -1279, 1398, 2234, 0x00, 0x68, 0xB9, 0xFF
  53. vertex -178, -267, -810, 1398, 0, 0x00, 0x68, 0xB9, 0xFF
  54. vertex 179, -267, -810, 0, 0, 0x00, 0x68, 0xB9, 0xFF
  55. wf_seg7_vertex_07006250: # 0x07006250 - 0x07006330
  56. vertex 179, 93, 140, 3496, 2354, 0x7F, 0x00, 0x00, 0xFF
  57. vertex 179, 275, 140, 3498, 1626, 0x7F, 0x00, 0x00, 0xFF
  58. vertex 179, 275, 520, 1980, 1626, 0x7F, 0x00, 0x00, 0xFF
  59. vertex 179, -88, -239, 5012, 3082, 0x7F, 0x00, 0x00, 0xFF
  60. vertex 179, 93, -239, 5014, 2354, 0x7F, 0x00, 0x00, 0xFF
  61. vertex 179, -79, -620, 6534, 3046, 0x7F, 0x00, 0x00, 0xFF
  62. vertex 179, -271, -620, 6534, 3812, 0x7F, 0x00, 0x00, 0xFF
  63. vertex 179, -271, -620, 70, 3886, 0x00, 0x00, 0x81, 0xFF
  64. vertex -178, -271, -620, 1502, 3884, 0x00, 0x00, 0x81, 0xFF
  65. vertex 179, -79, -620, 70, 3118, 0x00, 0x00, 0x81, 0xFF
  66. vertex -178, -79, -620, 1502, 3118, 0x00, 0x00, 0x81, 0xFF
  67. vertex 179, -588, -1279, 0, 2236, 0x00, 0x68, 0xB9, 0xFF
  68. vertex -178, -587, -1279, 1398, 2234, 0x00, 0x68, 0xB9, 0xFF
  69. vertex 179, -267, -810, 0, 0, 0x00, 0x68, 0xB9, 0xFF
  70. wf_seg7_vertex_07006330: # 0x07006330 - 0x070063A0
  71. vertex 179, -271, -620, 0, 8080, 0x00, 0x7E, 0x02, 0xFF
  72. vertex 179, -267, -810, 0, 8840, 0x00, 0x7E, 0x02, 0xFF
  73. vertex -178, -267, -810, 1398, 8840, 0x00, 0x7E, 0x02, 0xFF
  74. vertex 179, -267, -810, 7294, 3794, 0x7F, 0x00, 0x00, 0xFF
  75. vertex 179, -271, -620, 6534, 3812, 0x7F, 0x00, 0x00, 0xFF
  76. vertex 179, -588, -1279, 9166, 5076, 0x7F, 0x00, 0x00, 0xFF
  77. vertex -178, -271, -620, 1398, 8080, 0x00, 0x7E, 0x02, 0xFF
  78. wf_seg7_dl_070063A0: # 0x070063A0 - 0x070064E8
  79. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000
  80. gsDPLoadSync
  81. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  82. gsSPLight wf_seg7_light_07005F60, 1
  83. gsSPLight wf_seg7_light_07005F58, 2
  84. gsSPVertex wf_seg7_vertex_07005F70, 15, 0
  85. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  86. gsSP2Triangles 4, 6, 5, 0x0, 7, 8, 9, 0x0
  87. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  88. gsSP1Triangle 11, 14, 12, 0x0
  89. gsSPVertex wf_seg7_vertex_07006060, 15, 0
  90. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  91. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  92. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  93. gsSP1Triangle 0, 2, 14, 0x0
  94. gsSPVertex wf_seg7_vertex_07006150, 16, 0
  95. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  96. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  97. gsSP2Triangles 8, 9, 10, 0x0, 10, 11, 12, 0x0
  98. gsSP1Triangle 13, 14, 15, 0x0
  99. gsSPVertex wf_seg7_vertex_07006250, 14, 0
  100. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 0, 0x0
  101. gsSP2Triangles 5, 3, 6, 0x0, 7, 8, 9, 0x0
  102. gsSP2Triangles 8, 10, 9, 0x0, 11, 12, 13, 0x0
  103. gsSPVertex wf_seg7_vertex_07006330, 7, 0
  104. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  105. gsSP1Triangle 0, 2, 6, 0x0
  106. gsSPEndDisplayList
  107. glabel wf_seg7_dl_070064E8 # 0x070064E8 - 0x07006558
  108. gsDPPipeSync
  109. 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
  110. gsSPClearGeometryMode G_SHADING_SMOOTH
  111. 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
  112. gsSPTexture -1, -1, 0, 0, 1
  113. gsDPTileSync
  114. 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
  115. gsDPSetTileSize 0, 0, 0, 124, 124
  116. gsSPDisplayList wf_seg7_dl_070063A0
  117. gsSPTexture -1, -1, 0, 0, 0
  118. gsDPPipeSync
  119. 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
  120. gsSPSetGeometryMode G_SHADING_SMOOTH
  121. gsSPEndDisplayList