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.

70 lines
3.7 KiB

6 years ago
  1. wf_seg7_light_0700E160: # 0x0700E160 - 0x0700E168
  2. .byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
  3. wf_seg7_light_0700E168: # 0x0700E168 - 0x0700E178
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. wf_seg7_vertex_0700E178: # 0x0700E178 - 0x0700E278
  7. vertex -127, 64, -575, 0, 480, 0x81, 0x00, 0x00, 0xFF
  8. vertex -127, -63, -575, 0, 990, 0x81, 0x00, 0x00, 0xFF
  9. vertex -127, -63, 576, 9166, 990, 0x81, 0x00, 0x00, 0xFF
  10. vertex -127, 64, 576, 0, 480, 0x00, 0x00, 0x7F, 0xFF
  11. vertex -127, -63, 576, 0, 990, 0x00, 0x00, 0x7F, 0xFF
  12. vertex 215, -63, 576, 990, 990, 0x00, 0x00, 0x7F, 0xFF
  13. vertex 215, 64, 576, 990, 478, 0x00, 0x00, 0x7F, 0xFF
  14. vertex 215, 64, -575, 0, 1498, 0x00, 0x7F, 0x00, 0xFF
  15. vertex -127, 64, -575, 990, 1498, 0x00, 0x7F, 0x00, 0xFF
  16. vertex -127, 64, 576, 990, -3098, 0x00, 0x7F, 0x00, 0xFF
  17. vertex 215, 64, 0, 0, -798, 0x00, 0x7F, 0x00, 0xFF
  18. vertex 215, 64, 576, 0, -3098, 0x00, 0x7F, 0x00, 0xFF
  19. vertex -127, 64, 576, 9166, 480, 0x81, 0x00, 0x00, 0xFF
  20. vertex 215, 64, -575, 0, 478, 0x00, 0x00, 0x81, 0xFF
  21. vertex 215, -63, -575, 0, 990, 0x00, 0x00, 0x81, 0xFF
  22. vertex -127, -63, -575, 990, 990, 0x00, 0x00, 0x81, 0xFF
  23. wf_seg7_vertex_0700E278: # 0x0700E278 - 0x0700E328
  24. vertex 215, 64, -575, 0, 478, 0x00, 0x00, 0x81, 0xFF
  25. vertex -127, -63, -575, 990, 990, 0x00, 0x00, 0x81, 0xFF
  26. vertex -127, 64, -575, 990, 478, 0x00, 0x00, 0x81, 0xFF
  27. vertex 215, -63, 576, 0, -3098, 0x00, 0x81, 0x00, 0xFF
  28. vertex -127, -63, 576, 990, -3098, 0x00, 0x81, 0x00, 0xFF
  29. vertex -127, -63, -575, 990, 1498, 0x00, 0x81, 0x00, 0xFF
  30. vertex 215, -63, -575, 0, 1498, 0x00, 0x81, 0x00, 0xFF
  31. vertex 215, 64, 576, 0, 478, 0x7F, 0x00, 0x00, 0xFF
  32. vertex 215, -63, 576, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  33. vertex 215, -63, -575, 9166, 990, 0x7F, 0x00, 0x00, 0xFF
  34. vertex 215, 64, -575, 9166, 480, 0x7F, 0x00, 0x00, 0xFF
  35. wf_seg7_dl_0700E328: # 0x0700E328 - 0x0700E3D0
  36. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09004000
  37. gsDPLoadSync
  38. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  39. gsSPLight wf_seg7_light_0700E168, 1
  40. gsSPLight wf_seg7_light_0700E160, 2
  41. gsSPVertex wf_seg7_vertex_0700E178, 16, 0
  42. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  43. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  44. gsSP2Triangles 9, 10, 7, 0x0, 9, 11, 10, 0x0
  45. gsSP2Triangles 0, 2, 12, 0x0, 13, 14, 15, 0x0
  46. gsSPVertex wf_seg7_vertex_0700E278, 11, 0
  47. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  48. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  49. gsSP1Triangle 7, 9, 10, 0x0
  50. gsSPEndDisplayList
  51. glabel wf_seg7_dl_0700E3D0 # 0x0700E3D0 - 0x0700E440
  52. gsDPPipeSync
  53. 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
  54. gsSPClearGeometryMode G_SHADING_SMOOTH
  55. 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
  56. gsSPTexture -1, -1, 0, 0, 1
  57. gsDPTileSync
  58. 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
  59. gsDPSetTileSize 0, 0, 0, 124, 124
  60. gsSPDisplayList wf_seg7_dl_0700E328
  61. gsSPTexture -1, -1, 0, 0, 0
  62. gsDPPipeSync
  63. 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
  64. gsSPSetGeometryMode G_SHADING_SMOOTH
  65. gsSPEndDisplayList