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.

87 lines
4.5 KiB

6 years ago
  1. ccm_seg7_light_0700F800: # 0x0700F800 - 0x0700F808
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ccm_seg7_light_0700F808: # 0x0700F808 - 0x0700F818
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ccm_seg7_vertex_0700F818: # 0x0700F818 - 0x0700F878
  7. vertex -177, 102, -153, 2906, -3104, 0x00, 0x7F, 0x00, 0xFF
  8. vertex 0, 102, 154, 1832, -4510, 0x00, 0x7F, 0x00, 0xFF
  9. vertex 177, 102, 51, 1020, -3890, 0x00, 0x7F, 0x00, 0xFF
  10. vertex -177, 102, 51, 2776, -4116, 0x00, 0x7F, 0x00, 0xFF
  11. vertex 177, 102, -153, 1152, -2876, 0x00, 0x7F, 0x00, 0xFF
  12. vertex 0, 102, -255, 2094, -2482, 0x00, 0x7F, 0x00, 0xFF
  13. ccm_seg7_vertex_0700F878: # 0x0700F878 - 0x0700F968
  14. vertex 177, 0, 51, 0, 990, 0x3F, 0x00, 0x6D, 0xFF
  15. vertex 0, 102, 154, 2012, 0, 0x3F, 0x00, 0x6D, 0xFF
  16. vertex 0, 0, 154, 2012, 990, 0x3F, 0x00, 0x6D, 0xFF
  17. vertex -177, 0, -153, 2012, 990, 0xC1, 0x00, 0x92, 0xFF
  18. vertex -177, 102, -153, 2012, 0, 0xC1, 0x00, 0x92, 0xFF
  19. vertex 0, 102, -255, 0, 0, 0xC1, 0x00, 0x92, 0xFF
  20. vertex 0, 0, -255, 0, 990, 0xC1, 0x00, 0x92, 0xFF
  21. vertex -177, 0, 51, 2012, 990, 0x81, 0x00, 0x00, 0xFF
  22. vertex -177, 102, 51, 2012, 0, 0x81, 0x00, 0x00, 0xFF
  23. vertex -177, 102, -153, 0, 0, 0x81, 0x00, 0x00, 0xFF
  24. vertex -177, 0, -153, 0, 990, 0x81, 0x00, 0x00, 0xFF
  25. vertex 0, 0, 154, 2012, 990, 0xC1, 0x00, 0x6D, 0xFF
  26. vertex -177, 102, 51, 0, 0, 0xC1, 0x00, 0x6D, 0xFF
  27. vertex -177, 0, 51, 0, 990, 0xC1, 0x00, 0x6D, 0xFF
  28. vertex 0, 102, 154, 2012, 0, 0xC1, 0x00, 0x6D, 0xFF
  29. ccm_seg7_vertex_0700F968: # 0x0700F968 - 0x0700FA18
  30. vertex 0, 0, -255, 0, 990, 0x3F, 0x00, 0x92, 0xFF
  31. vertex 0, 102, -255, 0, 0, 0x3F, 0x00, 0x92, 0xFF
  32. vertex 177, 102, -153, 2012, 0, 0x3F, 0x00, 0x92, 0xFF
  33. vertex 177, 0, 51, 0, 990, 0x3F, 0x00, 0x6D, 0xFF
  34. vertex 177, 102, 51, 0, 0, 0x3F, 0x00, 0x6D, 0xFF
  35. vertex 0, 102, 154, 2012, 0, 0x3F, 0x00, 0x6D, 0xFF
  36. vertex 177, 0, -153, 0, 990, 0x7F, 0x00, 0x00, 0xFF
  37. vertex 177, 102, 51, 2012, 0, 0x7F, 0x00, 0x00, 0xFF
  38. vertex 177, 0, 51, 2012, 990, 0x7F, 0x00, 0x00, 0xFF
  39. vertex 177, 102, -153, 0, 0, 0x7F, 0x00, 0x00, 0xFF
  40. vertex 177, 0, -153, 2012, 990, 0x3F, 0x00, 0x92, 0xFF
  41. ccm_seg7_dl_0700FA18: # 0x0700FA18 - 0x0700FA70
  42. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000
  43. gsDPLoadSync
  44. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  45. gsSPLight ccm_seg7_light_0700F808, 1
  46. gsSPLight ccm_seg7_light_0700F800, 2
  47. gsSPVertex ccm_seg7_vertex_0700F818, 6, 0
  48. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  49. gsSP2Triangles 0, 2, 4, 0x0, 0, 4, 5, 0x0
  50. gsSPEndDisplayList
  51. ccm_seg7_dl_0700FA70: # 0x0700FA70 - 0x0700FB00
  52. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07001900
  53. gsDPLoadSync
  54. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  55. gsSPVertex ccm_seg7_vertex_0700F878, 15, 0
  56. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  57. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  58. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  59. gsSP1Triangle 11, 14, 12, 0x0
  60. gsSPVertex ccm_seg7_vertex_0700F968, 11, 0
  61. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  62. gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
  63. gsSP1Triangle 0, 2, 10, 0x0
  64. gsSPEndDisplayList
  65. glabel ccm_seg7_dl_0700FB00 # 0x0700FB00 - 0x0700FB78
  66. gsDPPipeSync
  67. 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
  68. gsSPClearGeometryMode G_SHADING_SMOOTH
  69. 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
  70. gsSPTexture -1, -1, 0, 0, 1
  71. gsDPTileSync
  72. 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
  73. gsDPSetTileSize 0, 0, 0, 124, 124
  74. gsSPDisplayList ccm_seg7_dl_0700FA18
  75. gsSPDisplayList ccm_seg7_dl_0700FA70
  76. gsSPTexture -1, -1, 0, 0, 0
  77. gsDPPipeSync
  78. 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
  79. gsSPSetGeometryMode G_SHADING_SMOOTH
  80. gsSPEndDisplayList