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.

116 lines
5.5 KiB

6 years ago
  1. # Quicksand Pit
  2. ssl_seg7_light_07004000: # 0x07004000 - 0x07004008
  3. .byte 0x3F, 0x3F, 0x3F, 0x00, 0x3F, 0x3F, 0x3F, 0x00
  4. ssl_seg7_light_07004008: # 0x07004008 - 0x07004018
  5. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  6. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  7. glabel ssl_seg7_texture_07004018 # 0x07004018 - 0x07004818
  8. .incbin "levels/ssl/7.rgba16"
  9. glabel ssl_seg7_dl_07004818 # 0x07004818 - 0x07004860
  10. gsDPPipeSync
  11. 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
  12. gsSPLight ssl_seg7_light_07004008, 1
  13. gsSPLight ssl_seg7_light_07004000, 2
  14. gsSPTexture -1, -1, 0, 0, 1
  15. gsDPTileSync
  16. 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
  17. gsDPSetTileSize 0, 0, 0, 124, 124
  18. gsSPEndDisplayList
  19. glabel ssl_seg7_dl_07004860 # 0x07004860 - 0x07004880
  20. gsSPTexture -1, -1, 0, 0, 0
  21. gsDPPipeSync
  22. 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
  23. gsSPEndDisplayList
  24. glabel ssl_seg7_dl_07004880 # 0x07004880 - 0x070048F8
  25. gsDPPipeSync
  26. gsDPSetCycleType G_CYC_2CYCLE
  27. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  28. gsDPSetDepthSource G_ZS_PIXEL
  29. gsDPSetFogColor 0, 0, 0, 255
  30. gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
  31. gsSPSetGeometryMode G_FOG
  32. gsDPSetCombineMode G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE, G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_COMBINED, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_COMBINED
  33. gsSPLight ssl_seg7_light_07004008, 1
  34. gsSPLight ssl_seg7_light_07004000, 2
  35. gsSPTexture -1, -1, 0, 0, 1
  36. gsDPTileSync
  37. 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
  38. gsDPSetTileSize 0, 0, 0, 124, 124
  39. gsSPEndDisplayList
  40. glabel ssl_seg7_dl_070048F8 # 0x070048F8 - 0x07004930
  41. gsSPTexture -1, -1, 0, 0, 0
  42. gsDPPipeSync
  43. gsDPSetCycleType G_CYC_1CYCLE
  44. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  45. gsSPClearGeometryMode G_FOG
  46. 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
  47. gsSPEndDisplayList
  48. glabel ssl_seg7_arr_07004930 # 0x07004930 - 0x07004AB4
  49. .hword 10, 0, -204, 0, 0, 127, 0, 0
  50. .hword 0, 1024, 0, 0, 0, 127, 0, 2
  51. .hword 0, 512, 0, -886, 0, 127, 0, 2
  52. .hword 1, -511, 0, -886, 0, 127, 0, 2
  53. .hword 2, -1023, 0, 0, 0, 127, 0, 2
  54. .hword 3, -511, 0, 887, 0, 127, 0, 2
  55. .hword 2, 512, 0, 887, 0, 127, 0, 2
  56. .hword 1, 1024, 0, 0, 0, 127, 0, 2
  57. .hword 0, 0
  58. glabel ssl_seg7_arr_070049B4 # 0x070049B4 - 0x07004A38
  59. .hword 5, 0, -204, 0, 0, 127, 0, 0
  60. .hword 0, 1024, 0, 0, 0, 127, 0, 2
  61. .hword 0, 512, 0, -886, 0, 127, 0, 2
  62. .hword 1, -511, 0, -886, 0, 127, 0, 2
  63. .hword 2, -1023, 0, 0, 0, 127, 0, 2
  64. .hword 3, -511, 0, 887, 0, 127, 0, 2
  65. .hword 2, 512, 0, 887, 0, 127, 0, 2
  66. .hword 1, 1024, 0, 0, 0, 127, 0, 2
  67. .hword 0, 0
  68. glabel ssl_seg7_dl_07004A38 # 0x07004A38 - 0x07004A70
  69. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  70. gsSP2Triangles 0, 3, 4, 0x0, 0, 4, 5, 0x0
  71. gsSP2Triangles 0, 5, 6, 0x0, 0, 6, 7, 0x0
  72. gsSPEndDisplayList
  73. ssl_seg7_vertex_07004A70: # 0x07004A70 - 0x07004AE0
  74. vertex 0, -204, 0, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  75. vertex 1024, 0, 0, 2016, 0, 0x00, 0x7F, 0x00, 0xFF
  76. vertex 512, 0, -886, 2016, 992, 0x00, 0x7F, 0x00, 0xFF
  77. vertex -511, 0, -886, 2016, 2016, 0x00, 0x7F, 0x00, 0xFF
  78. vertex -1023, 0, 0, 2016, 3040, 0x00, 0x7F, 0x00, 0xFF
  79. vertex -511, 0, 887, 2016, 2016, 0x00, 0x7F, 0x00, 0xFF
  80. vertex 512, 0, 887, 2016, 992, 0x00, 0x7F, 0x00, 0xFF
  81. glabel ssl_seg7_dl_07004AE0 # 0x07004AE0 - 0x07004BE0
  82. gsDPPipeSync
  83. gsDPSetCycleType G_CYC_2CYCLE
  84. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  85. gsDPSetDepthSource G_ZS_PIXEL
  86. gsDPSetFogColor 0, 0, 0, 255
  87. gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
  88. gsSPSetGeometryMode G_FOG
  89. gsDPSetCombineMode G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE, G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_COMBINED, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_COMBINED
  90. gsSPLight ssl_seg7_light_07004008, 1
  91. gsSPLight ssl_seg7_light_07004000, 2
  92. gsSPTexture -1, -1, 0, 0, 1
  93. gsDPLoadTextureBlock ssl_seg7_texture_07001000, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD
  94. gsSPVertex ssl_seg7_vertex_07004A70, 7, 0
  95. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  96. gsSP2Triangles 0, 3, 4, 0x0, 0, 4, 5, 0x0
  97. gsSP2Triangles 0, 5, 6, 0x0, 0, 6, 1, 0x0
  98. gsSPTexture -1, -1, 0, 0, 0
  99. gsDPPipeSync
  100. gsDPSetCycleType G_CYC_1CYCLE
  101. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  102. gsSPClearGeometryMode G_FOG
  103. 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
  104. gsSPEndDisplayList