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.

127 lines
6.3 KiB

6 years ago
  1. ttm_seg7_light_0700CD88: # 0x0700CD88 - 0x0700CD90
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_0700CD90: # 0x0700CD90 - 0x0700CDA0
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_0700CDA0: # 0x0700CDA0 - 0x0700CDA8
  7. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  8. ttm_seg7_light_0700CDA8: # 0x0700CDA8 - 0x0700CDB8
  9. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_0700CDB8: # 0x0700CDB8 - 0x0700CDC0
  12. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  13. ttm_seg7_light_0700CDC0: # 0x0700CDC0 - 0x0700CDD0
  14. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_0700CDD0: # 0x0700CDD0 - 0x0700CEC0
  17. vertex -921, -307, -204, 11012, -6956, 0xBC, 0x00, 0x6B, 0xFF
  18. vertex 675, -307, 811, 14778, -6956, 0xBC, 0x00, 0x6B, 0xFF
  19. vertex 675, 307, 811, 14778, -8184, 0xBC, 0x00, 0x6B, 0xFF
  20. vertex -302, -102, -325, 0, 1806, 0x3B, 0x59, 0xBD, 0xFF
  21. vertex 733, -102, 592, -2792, 1806, 0x3B, 0x59, 0xBD, 0xFF
  22. vertex 945, -307, 506, -2996, 2214, 0x3B, 0x59, 0xBD, 0xFF
  23. vertex -167, -307, -477, 0, 2214, 0x3B, 0x59, 0xBD, 0xFF
  24. vertex 810, 307, 659, 372, -236, 0x5E, 0x00, 0x54, 0xFF
  25. vertex 675, 307, 811, 0, -236, 0x5E, 0x00, 0x54, 0xFF
  26. vertex 675, -307, 811, 0, 990, 0x5E, 0x00, 0x54, 0xFF
  27. vertex 810, 0, 659, 372, 376, 0x5E, 0x00, 0x54, 0xFF
  28. vertex 810, 0, 659, 372, 376, 0x5F, 0x00, 0x54, 0xFF
  29. vertex 675, -307, 811, 0, 990, 0x5F, 0x00, 0x54, 0xFF
  30. vertex 945, -307, 506, 782, 990, 0x5F, 0x00, 0x54, 0xFF
  31. vertex -921, 307, -204, 11012, -8184, 0xBC, 0x00, 0x6B, 0xFF
  32. ttm_seg7_vertex_0700CEC0: # 0x0700CEC0 - 0x0700CF00
  33. vertex 945, -307, 506, 6966, -44, 0x00, 0x81, 0x00, 0xFF
  34. vertex 675, -307, 811, 6426, 564, 0x00, 0x81, 0x00, 0xFF
  35. vertex -921, -307, -204, 3238, -1462, 0x00, 0x81, 0x00, 0xFF
  36. vertex -535, -307, -802, 4008, -2658, 0x00, 0x81, 0x00, 0xFF
  37. ttm_seg7_vertex_0700CF00: # 0x0700CF00 - 0x0700D000
  38. vertex -302, 307, -325, 372, -236, 0x5E, 0x00, 0x54, 0xFF
  39. vertex -302, -102, -325, 372, 582, 0x5E, 0x00, 0x54, 0xFF
  40. vertex -167, -307, -477, 782, 582, 0x5E, 0x00, 0x54, 0xFF
  41. vertex 810, -102, 659, -2996, 1806, 0x54, 0x00, 0xA1, 0xFF
  42. vertex -302, -102, -325, 0, 1806, 0x54, 0x00, 0xA1, 0xFF
  43. vertex -302, 307, -325, 0, 990, 0x54, 0x00, 0xA1, 0xFF
  44. vertex 810, 307, 659, -2996, 990, 0x54, 0x00, 0xA1, 0xFF
  45. vertex -166, 307, -479, 0, 990, 0x54, 0x00, 0xA1, 0xFF
  46. vertex -167, -307, -477, 0, 2214, 0x54, 0x00, 0xA1, 0xFF
  47. vertex -535, -307, -802, 948, 2214, 0x54, 0x00, 0xA1, 0xFF
  48. vertex -166, 307, -479, 0, 990, 0x53, 0x00, 0xA1, 0xFF
  49. vertex -535, -307, -802, 948, 2214, 0x53, 0x00, 0xA1, 0xFF
  50. vertex -535, 307, -802, 948, 990, 0x53, 0x00, 0xA1, 0xFF
  51. vertex 810, 0, 659, -2996, 1602, 0x0E, 0x3D, 0x92, 0xFF
  52. vertex 945, -307, 506, -2996, 2214, 0x0E, 0x3D, 0x92, 0xFF
  53. vertex 733, -102, 592, -2792, 1806, 0x0E, 0x3D, 0x92, 0xFF
  54. ttm_seg7_vertex_0700D000: # 0x0700D000 - 0x0700D030
  55. vertex -302, 307, -325, 372, -236, 0x5F, 0x00, 0x54, 0xFF
  56. vertex -167, -307, -477, 782, 582, 0x5F, 0x00, 0x54, 0xFF
  57. vertex -166, 307, -479, 782, -236, 0x5F, 0x00, 0x54, 0xFF
  58. ttm_seg7_vertex_0700D030: # 0x0700D030 - 0x0700D090
  59. vertex 810, 307, 659, 11600, -1172, 0x00, 0x7F, 0x00, 0xFF
  60. vertex -302, 307, -325, 9380, -3138, 0x00, 0x7F, 0x00, 0xFF
  61. vertex -921, 307, -204, 8144, -2896, 0x00, 0x7F, 0x00, 0xFF
  62. vertex -166, 307, -479, 9650, -3444, 0x00, 0x7F, 0x00, 0xFF
  63. vertex -535, 307, -802, 8914, -4092, 0x00, 0x7F, 0x00, 0xFF
  64. vertex 675, 307, 811, 11332, -868, 0x00, 0x7F, 0x00, 0xFF
  65. ttm_seg7_dl_0700D090: # 0x0700D090 - 0x0700D180
  66. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000
  67. gsDPLoadSync
  68. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  69. gsSPLight ttm_seg7_light_0700CD90, 1
  70. gsSPLight ttm_seg7_light_0700CD88, 2
  71. gsSPVertex ttm_seg7_vertex_0700CDD0, 15, 0
  72. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  73. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  74. gsSP2Triangles 9, 10, 7, 0x0, 11, 12, 13, 0x0
  75. gsSP1Triangle 0, 2, 14, 0x0
  76. gsSPLight ttm_seg7_light_0700CDA8, 1
  77. gsSPLight ttm_seg7_light_0700CDA0, 2
  78. gsSPVertex ttm_seg7_vertex_0700CEC0, 4, 0
  79. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  80. gsSPLight ttm_seg7_light_0700CDC0, 1
  81. gsSPLight ttm_seg7_light_0700CDB8, 2
  82. gsSPVertex ttm_seg7_vertex_0700CF00, 16, 0
  83. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  84. gsSP2Triangles 6, 3, 5, 0x0, 7, 8, 9, 0x0
  85. gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
  86. gsSPVertex ttm_seg7_vertex_0700D000, 3, 0
  87. gsSP1Triangle 0, 1, 2, 0x0
  88. gsSPEndDisplayList
  89. ttm_seg7_dl_0700D180: # 0x0700D180 - 0x0700D1D8
  90. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  91. gsDPLoadSync
  92. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  93. gsSPLight ttm_seg7_light_0700CD90, 1
  94. gsSPLight ttm_seg7_light_0700CD88, 2
  95. gsSPVertex ttm_seg7_vertex_0700D030, 6, 0
  96. gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 4, 0x0
  97. gsSP2Triangles 2, 1, 4, 0x0, 2, 5, 0, 0x0
  98. gsSPEndDisplayList
  99. glabel ttm_seg7_dl_0700D1D8 # 0x0700D1D8 - 0x0700D250
  100. gsDPPipeSync
  101. 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
  102. gsSPClearGeometryMode G_SHADING_SMOOTH
  103. 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
  104. gsSPTexture -1, -1, 0, 0, 1
  105. gsDPTileSync
  106. 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
  107. gsDPSetTileSize 0, 0, 0, 124, 124
  108. gsSPDisplayList ttm_seg7_dl_0700D090
  109. gsSPDisplayList ttm_seg7_dl_0700D180
  110. gsSPTexture -1, -1, 0, 0, 0
  111. gsDPPipeSync
  112. 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
  113. gsSPSetGeometryMode G_SHADING_SMOOTH
  114. gsSPEndDisplayList