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.

105 lines
5.0 KiB

6 years ago
  1. ttm_seg7_light_0700C0E0: # 0x0700C0E0 - 0x0700C0E8
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700C0E8: # 0x0700C0E8 - 0x0700C0F8
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_0700C0F8: # 0x0700C0F8 - 0x0700C100
  7. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  8. ttm_seg7_light_0700C100: # 0x0700C100 - 0x0700C110
  9. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_0700C110: # 0x0700C110 - 0x0700C118
  12. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  13. ttm_seg7_light_0700C118: # 0x0700C118 - 0x0700C128
  14. .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_0700C128: # 0x0700C128 - 0x0700C228
  17. vertex 162, 256, 35, 0, -2076, 0xA6, 0x00, 0xA7, 0xFF
  18. vertex 18, -255, 180, 990, 480, 0xA6, 0x00, 0xA7, 0xFF
  19. vertex 18, 256, 180, 990, -2076, 0xA6, 0x00, 0xA7, 0xFF
  20. vertex 18, 256, 180, 0, -1566, 0x5A, 0x00, 0xA7, 0xFF
  21. vertex 18, -255, 180, 0, 990, 0x5A, 0x00, 0xA7, 0xFF
  22. vertex -126, -255, 35, 990, 990, 0x5A, 0x00, 0xA7, 0xFF
  23. vertex -126, 256, 35, 990, -1566, 0x5A, 0x00, 0xA7, 0xFF
  24. vertex -126, 256, 35, 990, -2076, 0x59, 0x00, 0x59, 0xFF
  25. vertex -126, -255, 35, 990, 480, 0x59, 0x00, 0x59, 0xFF
  26. vertex 18, -255, -109, 0, 478, 0x59, 0x00, 0x59, 0xFF
  27. vertex 18, 256, -109, 0, -2076, 0x59, 0x00, 0x59, 0xFF
  28. vertex 18, 256, -109, 990, -1566, 0xA7, 0x00, 0x59, 0xFF
  29. vertex 162, -255, 35, 0, 990, 0xA7, 0x00, 0x59, 0xFF
  30. vertex 162, 256, 35, 0, -1566, 0xA7, 0x00, 0x59, 0xFF
  31. vertex 18, -255, -109, 990, 990, 0xA7, 0x00, 0x59, 0xFF
  32. vertex 162, -255, 35, 0, 478, 0xA6, 0x00, 0xA7, 0xFF
  33. ttm_seg7_vertex_0700C228: # 0x0700C228 - 0x0700C2A8
  34. vertex 307, 256, 35, 14686, -17952, 0x00, 0x7F, 0x00, 0xFF
  35. vertex 18, 256, -253, 14108, -18530, 0x00, 0x7F, 0x00, 0xFF
  36. vertex 162, 256, 35, 14396, -17952, 0x00, 0x7F, 0x00, 0xFF
  37. vertex 18, 256, -109, 14108, -18240, 0x00, 0x7F, 0x00, 0xFF
  38. vertex -126, 256, 35, 13818, -17952, 0x00, 0x7F, 0x00, 0xFF
  39. vertex -271, 256, 35, 13528, -17952, 0x00, 0x7F, 0x00, 0xFF
  40. vertex 18, 256, 325, 14108, -17374, 0x00, 0x7F, 0x00, 0xFF
  41. vertex 18, 256, 180, 14108, -17662, 0x00, 0x7F, 0x00, 0xFF
  42. ttm_seg7_vertex_0700C2A8: # 0x0700C2A8 - 0x0700C2E8
  43. vertex 18, -255, 180, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  44. vertex 162, -255, 35, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  45. vertex 18, -255, -109, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  46. vertex -126, -255, 35, 0, 0, 0x00, 0x7F, 0x00, 0xFF
  47. ttm_seg7_dl_0700C2E8: # 0x0700C2E8 - 0x0700C360
  48. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000000
  49. gsDPLoadSync
  50. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  51. gsSPLight ttm_seg7_light_0700C0E8, 1
  52. gsSPLight ttm_seg7_light_0700C0E0, 2
  53. gsSPVertex ttm_seg7_vertex_0700C128, 16, 0
  54. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  55. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  56. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  57. gsSP2Triangles 11, 14, 12, 0x0, 0, 15, 1, 0x0
  58. gsSPEndDisplayList
  59. ttm_seg7_dl_0700C360: # 0x0700C360 - 0x0700C3D8
  60. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  61. gsDPLoadSync
  62. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  63. gsSPLight ttm_seg7_light_0700C100, 1
  64. gsSPLight ttm_seg7_light_0700C0F8, 2
  65. gsSPVertex ttm_seg7_vertex_0700C228, 8, 0
  66. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
  67. gsSP2Triangles 4, 3, 1, 0x0, 4, 1, 5, 0x0
  68. gsSP2Triangles 0, 2, 6, 0x0, 2, 7, 6, 0x0
  69. gsSP2Triangles 7, 4, 5, 0x0, 7, 5, 6, 0x0
  70. gsSPEndDisplayList
  71. ttm_seg7_dl_0700C3D8: # 0x0700C3D8 - 0x0700C408
  72. gsSPLight ttm_seg7_light_0700C118, 1
  73. gsSPLight ttm_seg7_light_0700C110, 2
  74. gsSPVertex ttm_seg7_vertex_0700C2A8, 4, 0
  75. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  76. gsSPEndDisplayList
  77. glabel ttm_seg7_dl_0700C408 # 0x0700C408 - 0x0700C488
  78. gsDPPipeSync
  79. 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
  80. gsSPClearGeometryMode G_SHADING_SMOOTH
  81. 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
  82. gsSPTexture -1, -1, 0, 0, 1
  83. gsDPTileSync
  84. 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
  85. gsDPSetTileSize 0, 0, 0, 124, 124
  86. gsSPDisplayList ttm_seg7_dl_0700C2E8
  87. gsSPDisplayList ttm_seg7_dl_0700C360
  88. gsSPTexture -1, -1, 0, 0, 0
  89. gsDPPipeSync
  90. 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
  91. gsSPDisplayList ttm_seg7_dl_0700C3D8
  92. gsSPSetGeometryMode G_SHADING_SMOOTH
  93. gsSPEndDisplayList