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.

112 lines
6.0 KiB

6 years ago
  1. wf_seg7_light_0700BB18: # 0x0700BB18 - 0x0700BB20
  2. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  3. wf_seg7_light_0700BB20: # 0x0700BB20 - 0x0700BB30
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. wf_seg7_vertex_0700BB30: # 0x0700BB30 - 0x0700BC20
  7. vertex 443, 0, -255, 1026, 0, 0x38, 0x90, 0xF1, 0xFF
  8. vertex 512, 0, 0, 0, 0, 0x38, 0x90, 0xF1, 0xFF
  9. vertex 0, -255, 0, 498, 988, 0x38, 0x90, 0xF1, 0xFF
  10. vertex -255, 0, -442, -66, 0, 0xD7, 0x90, 0xD7, 0xFF
  11. vertex 0, -255, 0, 460, 988, 0xD7, 0x90, 0xD7, 0xFF
  12. vertex -442, 0, -255, 990, 0, 0xD7, 0x90, 0xD7, 0xFF
  13. vertex -255, 0, -442, 990, 0, 0xF1, 0x90, 0xC8, 0xFF
  14. vertex 0, 0, -511, -66, 0, 0xF1, 0x90, 0xC8, 0xFF
  15. vertex 0, -255, 0, 460, 988, 0xF1, 0x90, 0xC8, 0xFF
  16. vertex 0, 0, -511, 1026, 0, 0x0F, 0x90, 0xC8, 0xFF
  17. vertex 256, 0, -442, 0, 0, 0x0F, 0x90, 0xC8, 0xFF
  18. vertex 0, -255, 0, 498, 988, 0x0F, 0x90, 0xC8, 0xFF
  19. vertex 256, 0, -442, 1026, 0, 0x29, 0x90, 0xD7, 0xFF
  20. vertex 443, 0, -255, 0, 0, 0x29, 0x90, 0xD7, 0xFF
  21. vertex 0, -255, 0, 498, 988, 0x29, 0x90, 0xD7, 0xFF
  22. wf_seg7_vertex_0700BC20: # 0x0700BC20 - 0x0700BD10
  23. vertex -255, 0, 443, 1026, 0, 0xD7, 0x90, 0x29, 0xFF
  24. vertex -442, 0, 256, 0, 0, 0xD7, 0x90, 0x29, 0xFF
  25. vertex 0, -255, 0, 498, 988, 0xD7, 0x90, 0x29, 0xFF
  26. vertex 512, 0, 0, 1026, 0, 0x38, 0x90, 0x0F, 0xFF
  27. vertex 443, 0, 256, 0, 0, 0x38, 0x90, 0x0F, 0xFF
  28. vertex 0, -255, 0, 498, 988, 0x38, 0x90, 0x0F, 0xFF
  29. vertex 443, 0, 256, 1026, 0, 0x29, 0x90, 0x29, 0xFF
  30. vertex 256, 0, 443, 0, 0, 0x29, 0x90, 0x29, 0xFF
  31. vertex 0, -255, 0, 498, 988, 0x29, 0x90, 0x29, 0xFF
  32. vertex 256, 0, 443, 1026, 0, 0x0F, 0x90, 0x38, 0xFF
  33. vertex 0, 0, 512, 0, 0, 0x0F, 0x90, 0x38, 0xFF
  34. vertex 0, -255, 0, 498, 988, 0x0F, 0x90, 0x38, 0xFF
  35. vertex 0, 0, 512, 1026, 0, 0xF1, 0x90, 0x38, 0xFF
  36. vertex -255, 0, 443, 0, 0, 0xF1, 0x90, 0x38, 0xFF
  37. vertex 0, -255, 0, 498, 988, 0xF1, 0x90, 0x38, 0xFF
  38. wf_seg7_vertex_0700BD10: # 0x0700BD10 - 0x0700BD70
  39. vertex -442, 0, 256, 1026, 0, 0xC8, 0x90, 0x0F, 0xFF
  40. vertex -511, 0, 0, 0, 0, 0xC8, 0x90, 0x0F, 0xFF
  41. vertex 0, -255, 0, 498, 988, 0xC8, 0x90, 0x0F, 0xFF
  42. vertex -442, 0, -255, 0, 0, 0xC8, 0x90, 0xF1, 0xFF
  43. vertex 0, -255, 0, 498, 988, 0xC8, 0x90, 0xF1, 0xFF
  44. vertex -511, 0, 0, 1026, 0, 0xC8, 0x90, 0xF1, 0xFF
  45. wf_seg7_vertex_0700BD70: # 0x0700BD70 - 0x0700BE30
  46. vertex -442, 0, -255, -188, -714, 0x00, 0x7F, 0x00, 0xFF
  47. vertex 443, 0, 256, 2170, 650, 0x00, 0x7F, 0x00, 0xFF
  48. vertex 512, 0, 0, 2352, 0, 0x00, 0x7F, 0x00, 0xFF
  49. vertex 443, 0, -255, 2170, -714, 0x00, 0x7F, 0x00, 0xFF
  50. vertex 256, 0, -442, 1672, -1212, 0x00, 0x7F, 0x00, 0xFF
  51. vertex 0, 0, -511, 990, -1394, 0x00, 0x7F, 0x00, 0xFF
  52. vertex -255, 0, -442, 308, -1212, 0x00, 0x7F, 0x00, 0xFF
  53. vertex -255, 0, 443, 308, 1146, 0x00, 0x7F, 0x00, 0xFF
  54. vertex 0, 0, 512, 990, 1328, 0x00, 0x7F, 0x00, 0xFF
  55. vertex -511, 0, 0, -370, 0, 0x00, 0x7F, 0x00, 0xFF
  56. vertex -442, 0, 256, -188, 650, 0x00, 0x7F, 0x00, 0xFF
  57. vertex 256, 0, 443, 1672, 1146, 0x00, 0x7F, 0x00, 0xFF
  58. wf_seg7_dl_0700BE30: # 0x0700BE30 - 0x0700BED8
  59. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005000
  60. gsDPLoadSync
  61. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  62. gsSPLight wf_seg7_light_0700BB20, 1
  63. gsSPLight wf_seg7_light_0700BB18, 2
  64. gsSPVertex wf_seg7_vertex_0700BB30, 15, 0
  65. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  66. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  67. gsSP1Triangle 12, 13, 14, 0x0
  68. gsSPVertex wf_seg7_vertex_0700BC20, 15, 0
  69. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  70. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  71. gsSP1Triangle 12, 13, 14, 0x0
  72. gsSPVertex wf_seg7_vertex_0700BD10, 6, 0
  73. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  74. gsSPEndDisplayList
  75. wf_seg7_dl_0700BED8: # 0x0700BED8 - 0x0700BF50
  76. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09005800
  77. gsDPLoadSync
  78. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  79. gsSPVertex wf_seg7_vertex_0700BD70, 12, 0
  80. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  81. gsSP2Triangles 0, 4, 5, 0x0, 0, 3, 4, 0x0
  82. gsSP2Triangles 0, 5, 6, 0x0, 0, 7, 8, 0x0
  83. gsSP2Triangles 0, 9, 10, 0x0, 0, 10, 7, 0x0
  84. gsSP2Triangles 0, 8, 11, 0x0, 0, 11, 1, 0x0
  85. gsSPEndDisplayList
  86. glabel wf_seg7_dl_0700BF50 # 0x0700BF50 - 0x0700BFE0
  87. gsDPPipeSync
  88. 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
  89. gsSPClearGeometryMode G_SHADING_SMOOTH
  90. 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
  91. gsSPTexture -1, -1, 0, 0, 1
  92. gsDPTileSync
  93. 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_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  94. gsDPSetTileSize 0, 0, 0, 124, 124
  95. gsSPDisplayList wf_seg7_dl_0700BE30
  96. gsDPTileSync
  97. 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
  98. gsDPSetTileSize 0, 0, 0, 124, 124
  99. gsSPDisplayList wf_seg7_dl_0700BED8
  100. gsSPTexture -1, -1, 0, 0, 0
  101. gsDPPipeSync
  102. 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
  103. gsSPSetGeometryMode G_SHADING_SMOOTH
  104. gsSPEndDisplayList