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.

125 lines
6.4 KiB

6 years ago
  1. wf_seg7_light_07009900: # 0x07009900 - 0x07009908
  2. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  3. wf_seg7_light_07009908: # 0x07009908 - 0x07009918
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. wf_seg7_vertex_07009918: # 0x07009918 - 0x07009958
  7. vertex 794, 38, -255, 22452, 6606, 0x00, 0x7F, 0x00, 0xFF
  8. vertex 128, 38, -255, 20408, 6606, 0x00, 0x7F, 0x00, 0xFF
  9. vertex 128, 38, 512, 20408, 8650, 0x00, 0x7F, 0x00, 0xFF
  10. vertex 794, 38, 512, 22452, 8650, 0x00, 0x7F, 0x00, 0xFF
  11. wf_seg7_vertex_07009958: # 0x07009958 - 0x07009A48
  12. vertex 794, -89, 512, -3096, 990, 0x00, 0x81, 0x00, 0xFF
  13. vertex 128, -89, -255, 990, -3098, 0x00, 0x81, 0x00, 0xFF
  14. vertex 794, -89, -255, -3096, -3098, 0x00, 0x81, 0x00, 0xFF
  15. vertex 794, 38, 512, 0, 478, 0x7F, 0x00, 0x00, 0xFF
  16. vertex 794, -89, 512, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  17. vertex 794, -89, -255, 2012, 990, 0x7F, 0x00, 0x00, 0xFF
  18. vertex 794, 38, -255, 2012, 478, 0x7F, 0x00, 0x00, 0xFF
  19. vertex 128, 38, 512, 0, 480, 0x00, 0x00, 0x7F, 0xFF
  20. vertex 128, -89, 512, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  21. vertex 794, -89, 512, 2012, 990, 0x00, 0x00, 0x7F, 0xFF
  22. vertex 794, 38, 512, 2012, 480, 0x00, 0x00, 0x7F, 0xFF
  23. vertex 128, 38, -255, -1052, 480, 0x81, 0x00, 0x00, 0xFF
  24. vertex 128, -89, -255, -1052, 990, 0x81, 0x00, 0x00, 0xFF
  25. vertex 128, -89, 512, 990, 990, 0x81, 0x00, 0x00, 0xFF
  26. vertex 128, 38, 512, 990, 478, 0x81, 0x00, 0x00, 0xFF
  27. wf_seg7_vertex_07009A48: # 0x07009A48 - 0x07009AB8
  28. vertex 794, 38, -255, 0, 478, 0x00, 0x00, 0x81, 0xFF
  29. vertex 128, -89, -255, 2012, 990, 0x00, 0x00, 0x81, 0xFF
  30. vertex 128, 38, -255, 2012, 480, 0x00, 0x00, 0x81, 0xFF
  31. vertex 794, -89, 512, -3096, 990, 0x00, 0x81, 0x00, 0xFF
  32. vertex 128, -89, 512, 990, 990, 0x00, 0x81, 0x00, 0xFF
  33. vertex 128, -89, -255, 990, -3098, 0x00, 0x81, 0x00, 0xFF
  34. vertex 794, -89, -255, 0, 990, 0x00, 0x00, 0x81, 0xFF
  35. wf_seg7_vertex_07009AB8: # 0x07009AB8 - 0x07009BA8
  36. vertex -666, 38, -178, 7122, 990, 0x00, 0x00, 0x81, 0xFF
  37. vertex -666, 63, -178, 7122, 582, 0x00, 0x00, 0x81, 0xFF
  38. vertex 358, 63, -178, 0, 582, 0x00, 0x00, 0x81, 0xFF
  39. vertex -666, 38, -76, 990, 376, 0x81, 0x00, 0x00, 0xFF
  40. vertex -666, 63, -76, 990, 0, 0x81, 0x00, 0x00, 0xFF
  41. vertex -666, 63, -178, 172, 0, 0x81, 0x00, 0x00, 0xFF
  42. vertex -666, 38, -178, 172, 376, 0x81, 0x00, 0x00, 0xFF
  43. vertex 358, 63, -178, 4568, -1310, 0x00, 0x7F, 0x00, 0xFF
  44. vertex -666, 63, -178, -13316, -1310, 0x00, 0x7F, 0x00, 0xFF
  45. vertex -666, 63, -76, -13316, 0, 0x00, 0x7F, 0x00, 0xFF
  46. vertex 358, 63, -76, 4568, 0, 0x00, 0x7F, 0x00, 0xFF
  47. vertex 358, 38, -76, 2012, 1396, 0x00, 0x00, 0x7F, 0xFF
  48. vertex 358, 63, -76, 2012, 990, 0x00, 0x00, 0x7F, 0xFF
  49. vertex -666, 63, -76, -5140, 990, 0x00, 0x00, 0x7F, 0xFF
  50. vertex -666, 38, -76, -5140, 1396, 0x00, 0x00, 0x7F, 0xFF
  51. wf_seg7_vertex_07009BA8: # 0x07009BA8 - 0x07009C58
  52. vertex 358, 38, -178, 990, 990, 0x7F, 0x00, 0x00, 0xFF
  53. vertex 358, 63, -178, 990, 582, 0x7F, 0x00, 0x00, 0xFF
  54. vertex 358, 63, -76, 0, 582, 0x7F, 0x00, 0x00, 0xFF
  55. vertex -666, 38, -178, 7122, 990, 0x00, 0x00, 0x81, 0xFF
  56. vertex 358, 63, -178, 0, 582, 0x00, 0x00, 0x81, 0xFF
  57. vertex 358, 38, -178, 0, 990, 0x00, 0x00, 0x81, 0xFF
  58. vertex 358, 38, -76, 4568, 0, 0x00, 0x81, 0x00, 0xFF
  59. vertex -666, 38, -76, -13316, 0, 0x00, 0x81, 0x00, 0xFF
  60. vertex -666, 38, -178, -13316, -1310, 0x00, 0x81, 0x00, 0xFF
  61. vertex 358, 38, -178, 4568, -1310, 0x00, 0x81, 0x00, 0xFF
  62. vertex 358, 38, -76, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  63. wf_seg7_dl_07009C58: # 0x07009C58 - 0x07009CA0
  64. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09001000
  65. gsDPLoadSync
  66. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  67. gsSPLight wf_seg7_light_07009908, 1
  68. gsSPLight wf_seg7_light_07009900, 2
  69. gsSPVertex wf_seg7_vertex_07009918, 4, 0
  70. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  71. gsSPEndDisplayList
  72. wf_seg7_dl_07009CA0: # 0x07009CA0 - 0x07009D20
  73. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09000800
  74. gsDPLoadSync
  75. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  76. gsSPVertex wf_seg7_vertex_07009958, 15, 0
  77. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  78. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  79. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  80. gsSP1Triangle 11, 13, 14, 0x0
  81. gsSPVertex wf_seg7_vertex_07009A48, 7, 0
  82. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  83. gsSP1Triangle 0, 6, 1, 0x0
  84. gsSPEndDisplayList
  85. wf_seg7_dl_07009D20: # 0x07009D20 - 0x07009DB0
  86. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09006800
  87. gsDPLoadSync
  88. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  89. gsSPVertex wf_seg7_vertex_07009AB8, 15, 0
  90. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  91. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  92. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  93. gsSP1Triangle 11, 13, 14, 0x0
  94. gsSPVertex wf_seg7_vertex_07009BA8, 11, 0
  95. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  96. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  97. gsSP1Triangle 0, 2, 10, 0x0
  98. gsSPEndDisplayList
  99. glabel wf_seg7_dl_07009DB0 # 0x07009DB0 - 0x07009E30
  100. gsDPPipeSync
  101. 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
  102. gsSPClearGeometryMode G_SHADING_SMOOTH
  103. 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
  104. gsSPTexture -1, -1, 0, 0, 1
  105. gsDPTileSync
  106. 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
  107. gsDPSetTileSize 0, 0, 0, 124, 124
  108. gsSPDisplayList wf_seg7_dl_07009C58
  109. gsSPDisplayList wf_seg7_dl_07009CA0
  110. gsSPDisplayList wf_seg7_dl_07009D20
  111. gsSPTexture -1, -1, 0, 0, 0
  112. gsDPPipeSync
  113. 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
  114. gsSPSetGeometryMode G_SHADING_SMOOTH
  115. gsSPEndDisplayList