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.

128 lines
6.4 KiB

6 years ago
  1. ttm_seg7_light_070111A0: # 0x070111A0 - 0x070111A8
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttm_seg7_light_070111A8: # 0x070111A8 - 0x070111B8
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_light_070111B8: # 0x070111B8 - 0x070111C0
  7. .byte 0x4C, 0x4C, 0x4C, 0x00, 0x4C, 0x4C, 0x4C, 0x00
  8. ttm_seg7_light_070111C0: # 0x070111C0 - 0x070111D0
  9. .byte 0x99, 0x99, 0x99, 0x00, 0x99, 0x99, 0x99, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttm_seg7_light_070111D0: # 0x070111D0 - 0x070111D8
  12. .byte 0x5D, 0x5D, 0x5D, 0x00, 0x5D, 0x5D, 0x5D, 0x00
  13. ttm_seg7_light_070111D8: # 0x070111D8 - 0x070111E8
  14. .byte 0xBB, 0xBB, 0xBB, 0x00, 0xBB, 0xBB, 0xBB, 0x00
  15. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  16. ttm_seg7_vertex_070111E8: # 0x070111E8 - 0x07011228
  17. vertex 375, -306, -295, 0, 650, 0xF3, 0x00, 0x82, 0xFF
  18. vertex -133, -409, -241, 1672, 990, 0xF3, 0x00, 0x82, 0xFF
  19. vertex -133, -306, -241, 1672, 650, 0xF3, 0x00, 0x82, 0xFF
  20. vertex 375, -409, -295, 0, 990, 0xF3, 0x00, 0x82, 0xFF
  21. ttm_seg7_vertex_07011228: # 0x07011228 - 0x070112F8
  22. vertex -206, -409, 682, 3042, -7070, 0x00, 0x81, 0x00, 0xFF
  23. vertex -498, -409, 585, 4012, -6746, 0x00, 0x81, 0x00, 0xFF
  24. vertex -133, -409, -241, 2798, -3998, 0x00, 0x81, 0x00, 0xFF
  25. vertex 168, 205, 53, 1796, -4978, 0xEC, 0x88, 0x22, 0xFF
  26. vertex -271, 205, -208, 3258, -4106, 0xEC, 0x88, 0x22, 0xFF
  27. vertex 325, 102, -210, 1272, -4100, 0xEC, 0x88, 0x22, 0xFF
  28. vertex 325, 102, -210, 1272, -4100, 0x1D, 0x8F, 0xD0, 0xFF
  29. vertex -185, 205, -753, 2972, -2294, 0x1D, 0x8F, 0xD0, 0xFF
  30. vertex 430, 205, -386, 924, -3514, 0x1D, 0x8F, 0xD0, 0xFF
  31. vertex 325, 102, -210, 1272, -4100, 0xEB, 0x83, 0xFD, 0xFF
  32. vertex -271, 205, -208, 3258, -4106, 0xEB, 0x83, 0xFD, 0xFF
  33. vertex -185, 205, -753, 2972, -2294, 0xEB, 0x83, 0xFD, 0xFF
  34. vertex 375, -409, -295, 1104, -3818, 0x00, 0x81, 0x00, 0xFF
  35. ttm_seg7_vertex_070112F8: # 0x070112F8 - 0x07011378
  36. vertex -7, 205, -51, 308, 990, 0x93, 0x00, 0xC1, 0xFF
  37. vertex 44, 410, -139, 0, 308, 0x93, 0x00, 0xC1, 0xFF
  38. vertex 44, 205, -139, 0, 990, 0x93, 0x00, 0xC1, 0xFF
  39. vertex -7, 410, -51, 308, 308, 0x93, 0x00, 0xC1, 0xFF
  40. vertex -133, -306, -241, 5254, -5824, 0x8C, 0x00, 0xCD, 0xFF
  41. vertex -133, -409, -241, 5254, -5482, 0x8C, 0x00, 0xCD, 0xFF
  42. vertex -498, -409, 585, 8046, -5482, 0x8C, 0x00, 0xCD, 0xFF
  43. vertex -498, -306, 585, 8046, -5824, 0x8C, 0x00, 0xCD, 0xFF
  44. ttm_seg7_vertex_07011378: # 0x07011378 - 0x070113F8
  45. vertex 168, 205, 53, 650, 990, 0xC0, 0x00, 0x6D, 0xFF
  46. vertex -7, 410, -51, 0, 308, 0xC0, 0x00, 0x6D, 0xFF
  47. vertex -7, 205, -51, 0, 990, 0xC0, 0x00, 0x6D, 0xFF
  48. vertex 168, 410, 53, 650, 308, 0xC0, 0x00, 0x6D, 0xFF
  49. vertex 44, 205, -139, 730, 990, 0x09, 0x00, 0x82, 0xFF
  50. vertex 44, 410, -139, 730, 308, 0x09, 0x00, 0x82, 0xFF
  51. vertex 272, 410, -122, 0, 308, 0x09, 0x00, 0x82, 0xFF
  52. vertex 272, 205, -122, 0, 990, 0x09, 0x00, 0x82, 0xFF
  53. ttm_seg7_vertex_070113F8: # 0x070113F8 - 0x070114B8
  54. vertex 272, 410, -122, 1126, -16018, 0x00, 0x7F, 0x00, 0xFF
  55. vertex 44, 410, -139, 670, -16052, 0x00, 0x7F, 0x00, 0xFF
  56. vertex -7, 410, -51, 564, -15878, 0x00, 0x7F, 0x00, 0xFF
  57. vertex 168, 410, 53, 916, -15668, 0x00, 0x7F, 0x00, 0xFF
  58. vertex 375, -306, -295, 1332, -16364, 0x00, 0x7F, 0x00, 0xFF
  59. vertex -133, -306, -241, 314, -16256, 0x00, 0x7F, 0x00, 0xFF
  60. vertex -498, -306, 585, -412, -14606, 0x00, 0x7F, 0x00, 0xFF
  61. vertex -206, -306, 682, 168, -14412, 0x00, 0x7F, 0x00, 0xFF
  62. vertex 430, 205, -386, 1440, -16546, 0x00, 0x7F, 0x00, 0xFF
  63. vertex -185, 205, -753, 210, -17278, 0x00, 0x7F, 0x00, 0xFF
  64. vertex -271, 205, -208, 38, -16192, 0x00, 0x7F, 0x00, 0xFF
  65. vertex 168, 205, 53, 916, -15668, 0x00, 0x7F, 0x00, 0xFF
  66. ttm_seg7_dl_070114B8: # 0x070114B8 - 0x070115B0
  67. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000
  68. gsDPLoadSync
  69. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  70. gsSPLight ttm_seg7_light_070111A8, 1
  71. gsSPLight ttm_seg7_light_070111A0, 2
  72. gsSPVertex ttm_seg7_vertex_070111E8, 4, 0
  73. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  74. gsSPLight ttm_seg7_light_070111C0, 1
  75. gsSPLight ttm_seg7_light_070111B8, 2
  76. gsSPVertex ttm_seg7_vertex_07011228, 13, 0
  77. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  78. gsSP2Triangles 6, 7, 8, 0x0, 9, 10, 11, 0x0
  79. gsSP1Triangle 0, 2, 12, 0x0
  80. gsSPLight ttm_seg7_light_070111D8, 1
  81. gsSPLight ttm_seg7_light_070111D0, 2
  82. gsSPVertex ttm_seg7_vertex_070112F8, 8, 0
  83. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  84. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  85. gsSPLight ttm_seg7_light_070111A8, 1
  86. gsSPLight ttm_seg7_light_070111A0, 2
  87. gsSPVertex ttm_seg7_vertex_07011378, 8, 0
  88. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  89. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  90. gsSPEndDisplayList
  91. ttm_seg7_dl_070115B0: # 0x070115B0 - 0x07011608
  92. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800
  93. gsDPLoadSync
  94. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  95. gsSPVertex ttm_seg7_vertex_070113F8, 12, 0
  96. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  97. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  98. gsSP2Triangles 8, 9, 10, 0x0, 8, 10, 11, 0x0
  99. gsSPEndDisplayList
  100. glabel ttm_seg7_dl_07011608 # 0x07011608 - 0x07011680
  101. gsDPPipeSync
  102. 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
  103. gsSPClearGeometryMode G_SHADING_SMOOTH
  104. 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
  105. gsSPTexture -1, -1, 0, 0, 1
  106. gsDPTileSync
  107. 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
  108. gsDPSetTileSize 0, 0, 0, 124, 124
  109. gsSPDisplayList ttm_seg7_dl_070114B8
  110. gsSPDisplayList ttm_seg7_dl_070115B0
  111. gsSPTexture -1, -1, 0, 0, 0
  112. gsDPPipeSync
  113. 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
  114. gsSPSetGeometryMode G_SHADING_SMOOTH
  115. gsSPEndDisplayList