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.

547 lines
13 KiB

6 years ago
  1. ttm_seg7_light_070122F0: # 0x070122F0 - 0x070122F8
  2. .byte 0x50, 0x50, 0x50, 0x00, 0x50, 0x50, 0x50, 0x00
  3. ttm_seg7_light_070122F8: # 0x070122F8 - 0x07012308
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x32, 0x32, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttm_seg7_vertex_07012308: # 0x07012308 - 0x07012388
  7. vertex 0, 0, 0, -32, 992, 0x00, 0x00, 0x7F, 0xFF
  8. vertex 614, 0, 0, 2012, 992, 0x00, 0x00, 0x7F, 0xFF
  9. vertex 614, 307, 0, 2012, 0, 0x00, 0x00, 0x7F, 0xFF
  10. vertex 0, 307, 0, -32, 0, 0x00, 0x00, 0x7F, 0xFF
  11. vertex 0, 307, 0, -32, 992, 0x00, 0x00, 0x7F, 0xFF
  12. vertex 614, 307, 0, 2012, 992, 0x00, 0x00, 0x7F, 0xFF
  13. vertex 614, 614, 0, 2012, -28, 0x00, 0x00, 0x7F, 0xFF
  14. vertex 0, 614, 0, -32, -28, 0x00, 0x00, 0x7F, 0xFF
  15. glabel ttm_seg7_dl_07012388 # 0x07012388 - 0x070123A0
  16. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  17. gsSPEndDisplayList
  18. glabel ttm_seg7_dl_070123A0 # 0x070123A0 - 0x070123B8
  19. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  20. gsSPEndDisplayList
  21. glabel ttm_seg7_dl_070123B8 # 0x070123B8 - 0x07012410
  22. gsDPPipeSync
  23. gsSPSetGeometryMode G_LIGHTING | G_SHADING_SMOOTH
  24. 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
  25. gsSPLight ttm_seg7_light_070122F8, 1
  26. gsSPLight ttm_seg7_light_070122F0, 2
  27. 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
  28. gsDPTileSync
  29. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 6, G_TX_NOLOD
  30. gsDPSetTileSize 0, 0, 0, 252, 124
  31. gsSPTexture -1, -1, 0, 0, 1
  32. gsSPEndDisplayList
  33. glabel ttm_seg7_dl_07012410 # 0x07012410 - 0x07012430
  34. gsSPTexture -1, -1, 0, 0, 0
  35. gsDPPipeSync
  36. 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
  37. gsSPEndDisplayList
  38. ttm_seg7_painting_dl_07012430: # 0x07012430 - 0x07012450
  39. gsDPTileSync
  40. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 6, G_TX_NOLOD
  41. gsDPSetTileSize 0, 0, 0, 252, 124
  42. gsSPEndDisplayList
  43. ttm_seg7_painting_points_07012450: # 0x07012450 - 0x07012650
  44. .hword 85
  45. .hword 49, 2016, 889
  46. .hword 53, 2016, 685
  47. .hword 55, 1843, 787
  48. .hword 50, 2016, 992
  49. .hword 51, 1843, 992
  50. .hword 52, 1843, 583
  51. .hword 75, 2016, 513
  52. .hword 54, 1671, 889
  53. .hword 59, 1671, 685
  54. .hword 62, 1502, 787
  55. .hword 56, 1502, 992
  56. .hword 57, 1671, 992
  57. .hword 58, 1502, 583
  58. .hword 60, 1671, 513
  59. .hword 61, 1330, 889
  60. .hword 65, 1330, 685
  61. .hword 63, 1162, 992
  62. .hword 64, 1330, 992
  63. .hword 66, 1162, 583
  64. .hword 67, 1330, 513
  65. .hword 69, 1162, 787
  66. .hword 68, 989, 889
  67. .hword 70, 821, 992
  68. .hword 71, 989, 992
  69. .hword 73, 989, 685
  70. .hword 72, 821, 583
  71. .hword 74, 989, 513
  72. .hword 77, 2016, 308
  73. .hword 78, 1843, 410
  74. .hword 76, 1843, 204
  75. .hword 81, 1502, 410
  76. .hword 80, 1671, 308
  77. .hword 47, 1671, 102
  78. .hword 79, 1502, 204
  79. .hword 46, 1330, 102
  80. .hword 82, 1162, 204
  81. .hword 83, 1330, 308
  82. .hword 84, 1162, 410
  83. .hword 86, 989, 308
  84. .hword 85, 821, 204
  85. .hword 48, 989, 102
  86. .hword 25, 1502, 0
  87. .hword 31, 1162, 0
  88. .hword 19, 1843, 0
  89. .hword 37, 821, 0
  90. .hword 120, 821, 787
  91. .hword 119, 649, 889
  92. .hword 122, 481, 992
  93. .hword 121, 649, 992
  94. .hword 124, 649, 685
  95. .hword 125, 481, 583
  96. .hword 123, 649, 513
  97. .hword 127, 481, 787
  98. .hword 126, 308, 889
  99. .hword 129, 140, 992
  100. .hword 128, 308, 992
  101. .hword 132, 308, 513
  102. .hword 131, 308, 685
  103. .hword 130, 140, 583
  104. .hword 134, 140, 787
  105. .hword 133, -32, 889
  106. .hword 135, -32, 513
  107. .hword 136, 821, 410
  108. .hword 116, 649, 102
  109. .hword 137, 649, 308
  110. .hword 114, 481, 204
  111. .hword 138, 481, 410
  112. .hword 139, 308, 308
  113. .hword 118, 140, 204
  114. .hword 115, 308, 102
  115. .hword 140, 140, 410
  116. .hword 117, -32, 102
  117. .hword 99, 481, 0
  118. .hword 105, 140, 0
  119. .hword 143, 2016, 102
  120. .hword 145, 1330, 0
  121. .hword 144, 1671, 0
  122. .hword 142, 2016, 0
  123. .hword 146, 989, 0
  124. .hword 155, -32, 685
  125. .hword 156, -32, 992
  126. .hword 154, -32, 308
  127. .hword 151, 308, 0
  128. .hword 150, 649, 0
  129. .hword 153, -32, 0
  130. ttm_seg7_painting_triangles_07012650: # 0x07012650 - 0x0701296A
  131. .hword 132
  132. .hword 13, 8, 5
  133. .hword 0, 1, 2
  134. .hword 3, 0, 4
  135. .hword 4, 0, 2
  136. .hword 5, 2, 1
  137. .hword 1, 6, 5
  138. .hword 7, 2, 8
  139. .hword 5, 8, 2
  140. .hword 2, 7, 4
  141. .hword 7, 8, 9
  142. .hword 10, 7, 9
  143. .hword 11, 7, 10
  144. .hword 7, 11, 4
  145. .hword 12, 9, 8
  146. .hword 8, 13, 12
  147. .hword 21, 24, 45
  148. .hword 14, 9, 15
  149. .hword 12, 15, 9
  150. .hword 9, 14, 10
  151. .hword 16, 14, 20
  152. .hword 17, 14, 16
  153. .hword 14, 15, 20
  154. .hword 14, 17, 10
  155. .hword 15, 19, 18
  156. .hword 18, 20, 15
  157. .hword 19, 15, 12
  158. .hword 20, 21, 16
  159. .hword 18, 24, 20
  160. .hword 21, 20, 24
  161. .hword 22, 21, 45
  162. .hword 23, 21, 22
  163. .hword 21, 23, 16
  164. .hword 24, 26, 25
  165. .hword 25, 45, 24
  166. .hword 26, 24, 18
  167. .hword 6, 27, 28
  168. .hword 5, 6, 28
  169. .hword 29, 28, 27
  170. .hword 27, 74, 29
  171. .hword 29, 31, 28
  172. .hword 13, 28, 31
  173. .hword 28, 13, 5
  174. .hword 36, 34, 35
  175. .hword 12, 13, 30
  176. .hword 13, 31, 30
  177. .hword 31, 32, 33
  178. .hword 32, 31, 29
  179. .hword 33, 30, 31
  180. .hword 33, 36, 30
  181. .hword 30, 19, 12
  182. .hword 19, 30, 36
  183. .hword 18, 19, 37
  184. .hword 19, 36, 37
  185. .hword 34, 36, 33
  186. .hword 35, 37, 36
  187. .hword 37, 26, 18
  188. .hword 35, 38, 37
  189. .hword 26, 37, 38
  190. .hword 25, 26, 62
  191. .hword 26, 38, 62
  192. .hword 38, 40, 39
  193. .hword 39, 62, 38
  194. .hword 40, 38, 35
  195. .hword 41, 34, 33
  196. .hword 33, 32, 41
  197. .hword 42, 34, 75
  198. .hword 34, 41, 75
  199. .hword 35, 34, 42
  200. .hword 32, 43, 76
  201. .hword 41, 32, 76
  202. .hword 43, 32, 29
  203. .hword 29, 74, 43
  204. .hword 43, 74, 77
  205. .hword 46, 49, 52
  206. .hword 42, 40, 35
  207. .hword 39, 40, 44
  208. .hword 40, 42, 78
  209. .hword 44, 40, 78
  210. .hword 25, 49, 45
  211. .hword 45, 46, 22
  212. .hword 46, 45, 49
  213. .hword 47, 46, 52
  214. .hword 48, 46, 47
  215. .hword 46, 48, 22
  216. .hword 58, 59, 57
  217. .hword 49, 51, 50
  218. .hword 50, 52, 49
  219. .hword 51, 49, 25
  220. .hword 50, 57, 52
  221. .hword 52, 53, 47
  222. .hword 53, 52, 57
  223. .hword 53, 55, 47
  224. .hword 54, 53, 59
  225. .hword 55, 53, 54
  226. .hword 53, 57, 59
  227. .hword 56, 57, 50
  228. .hword 57, 56, 58
  229. .hword 58, 79, 59
  230. .hword 59, 60, 54
  231. .hword 60, 59, 79
  232. .hword 60, 80, 54
  233. .hword 61, 79, 58
  234. .hword 62, 51, 25
  235. .hword 39, 64, 62
  236. .hword 51, 62, 64
  237. .hword 50, 51, 66
  238. .hword 51, 64, 66
  239. .hword 63, 64, 39
  240. .hword 64, 63, 65
  241. .hword 65, 66, 64
  242. .hword 66, 56, 50
  243. .hword 56, 66, 67
  244. .hword 65, 67, 66
  245. .hword 58, 56, 70
  246. .hword 56, 67, 70
  247. .hword 67, 69, 68
  248. .hword 68, 70, 67
  249. .hword 69, 67, 65
  250. .hword 70, 61, 58
  251. .hword 68, 81, 70
  252. .hword 61, 70, 81
  253. .hword 71, 73, 84
  254. .hword 71, 81, 68
  255. .hword 72, 69, 65
  256. .hword 65, 63, 72
  257. .hword 68, 69, 73
  258. .hword 69, 72, 82
  259. .hword 73, 69, 82
  260. .hword 44, 63, 39
  261. .hword 63, 44, 83
  262. .hword 72, 63, 83
  263. .hword 73, 71, 68
  264. .balign 4
  265. ttm_seg7_painting_points_0701296C: # 0x0701296C - 0x07012B6C
  266. .hword 85
  267. .hword 0, 2016, 72
  268. .hword 1, 2016, 0
  269. .hword 2, 1843, 0
  270. .hword 3, 1843, 174
  271. .hword 4, 2016, 276
  272. .hword 5, 1671, 72
  273. .hword 6, 1671, 0
  274. .hword 8, 989, 72
  275. .hword 7, 989, 0
  276. .hword 10, 821, 0
  277. .hword 9, 1162, 0
  278. .hword 11, 821, 174
  279. .hword 12, 989, 276
  280. .hword 13, 1162, 174
  281. .hword 14, 1330, 72
  282. .hword 15, 1502, 0
  283. .hword 16, 1671, 276
  284. .hword 17, 1502, 174
  285. .hword 18, 1330, 276
  286. .hword 19, 1843, 992
  287. .hword 20, 2016, 889
  288. .hword 22, 2016, 685
  289. .hword 21, 1843, 583
  290. .hword 23, 1843, 787
  291. .hword 24, 1671, 889
  292. .hword 25, 1502, 992
  293. .hword 26, 1502, 583
  294. .hword 27, 1671, 685
  295. .hword 28, 1671, 481
  296. .hword 30, 1502, 787
  297. .hword 29, 1330, 889
  298. .hword 31, 1162, 992
  299. .hword 32, 1330, 481
  300. .hword 33, 1162, 583
  301. .hword 34, 1330, 685
  302. .hword 35, 1162, 787
  303. .hword 36, 989, 889
  304. .hword 37, 821, 992
  305. .hword 39, 821, 583
  306. .hword 38, 989, 685
  307. .hword 40, 989, 481
  308. .hword 41, 2016, 481
  309. .hword 42, 1843, 378
  310. .hword 43, 1502, 378
  311. .hword 44, 1162, 378
  312. .hword 45, 821, 378
  313. .hword 87, 649, 72
  314. .hword 88, -32, 0
  315. .hword 90, 140, 0
  316. .hword 89, -32, 72
  317. .hword 92, 308, 72
  318. .hword 91, 140, 174
  319. .hword 94, 481, 174
  320. .hword 93, 649, 276
  321. .hword 95, 481, 0
  322. .hword 96, 308, 276
  323. .hword 97, 821, 787
  324. .hword 98, 649, 889
  325. .hword 99, 481, 992
  326. .hword 102, 649, 481
  327. .hword 101, 649, 685
  328. .hword 100, 481, 583
  329. .hword 103, 481, 787
  330. .hword 104, 308, 889
  331. .hword 105, 140, 992
  332. .hword 108, 308, 481
  333. .hword 107, 308, 685
  334. .hword 106, 140, 583
  335. .hword 110, -32, 889
  336. .hword 109, 140, 787
  337. .hword 111, -32, 481
  338. .hword 112, 481, 378
  339. .hword 113, 140, 378
  340. .hword 141, 1330, 0
  341. .hword 142, 2016, 992
  342. .hword 144, 1671, 992
  343. .hword 145, 1330, 992
  344. .hword 146, 989, 992
  345. .hword 147, 649, 0
  346. .hword 148, -32, 276
  347. .hword 149, 308, 0
  348. .hword 150, 649, 992
  349. .hword 151, 308, 992
  350. .hword 152, -32, 685
  351. .hword 153, -32, 992
  352. .balign 4
  353. ttm_seg7_painting_triangles_07012B6C: # 0x07012B6C - 0x07012E84
  354. .hword 132
  355. .hword 10, 7, 13
  356. .hword 0, 1, 2
  357. .hword 3, 0, 2
  358. .hword 4, 0, 3
  359. .hword 5, 2, 6
  360. .hword 2, 5, 3
  361. .hword 7, 8, 9
  362. .hword 8, 7, 10
  363. .hword 11, 7, 9
  364. .hword 12, 7, 11
  365. .hword 7, 12, 13
  366. .hword 13, 14, 10
  367. .hword 14, 73, 10
  368. .hword 5, 6, 15
  369. .hword 5, 16, 3
  370. .hword 16, 5, 17
  371. .hword 17, 5, 15
  372. .hword 14, 15, 73
  373. .hword 15, 14, 17
  374. .hword 18, 14, 13
  375. .hword 14, 18, 17
  376. .hword 19, 74, 20
  377. .hword 19, 20, 23
  378. .hword 28, 27, 22
  379. .hword 21, 41, 22
  380. .hword 22, 23, 21
  381. .hword 20, 21, 23
  382. .hword 23, 24, 19
  383. .hword 22, 27, 23
  384. .hword 24, 23, 27
  385. .hword 19, 24, 75
  386. .hword 25, 75, 24
  387. .hword 25, 24, 29
  388. .hword 24, 27, 29
  389. .hword 26, 29, 27
  390. .hword 27, 28, 26
  391. .hword 31, 36, 77
  392. .hword 26, 34, 29
  393. .hword 29, 30, 25
  394. .hword 30, 29, 34
  395. .hword 25, 30, 76
  396. .hword 31, 76, 30
  397. .hword 31, 30, 35
  398. .hword 30, 34, 35
  399. .hword 32, 34, 26
  400. .hword 33, 35, 34
  401. .hword 34, 32, 33
  402. .hword 35, 36, 31
  403. .hword 33, 39, 35
  404. .hword 36, 35, 39
  405. .hword 37, 36, 56
  406. .hword 36, 39, 56
  407. .hword 37, 77, 36
  408. .hword 28, 16, 43
  409. .hword 38, 56, 39
  410. .hword 39, 40, 38
  411. .hword 40, 39, 33
  412. .hword 22, 41, 42
  413. .hword 41, 4, 42
  414. .hword 3, 42, 4
  415. .hword 42, 28, 22
  416. .hword 28, 42, 16
  417. .hword 3, 16, 42
  418. .hword 26, 28, 43
  419. .hword 17, 43, 16
  420. .hword 43, 32, 26
  421. .hword 32, 43, 18
  422. .hword 17, 18, 43
  423. .hword 33, 32, 44
  424. .hword 32, 18, 44
  425. .hword 13, 44, 18
  426. .hword 13, 12, 44
  427. .hword 44, 40, 33
  428. .hword 40, 44, 12
  429. .hword 38, 40, 45
  430. .hword 40, 12, 45
  431. .hword 11, 45, 12
  432. .hword 9, 46, 11
  433. .hword 46, 9, 78
  434. .hword 47, 49, 48
  435. .hword 48, 49, 51
  436. .hword 49, 79, 51
  437. .hword 50, 80, 48
  438. .hword 51, 50, 48
  439. .hword 57, 56, 60
  440. .hword 46, 53, 11
  441. .hword 52, 46, 54
  442. .hword 53, 46, 52
  443. .hword 46, 78, 54
  444. .hword 54, 50, 52
  445. .hword 50, 54, 80
  446. .hword 50, 55, 52
  447. .hword 55, 50, 51
  448. .hword 38, 60, 56
  449. .hword 56, 57, 37
  450. .hword 58, 57, 62
  451. .hword 57, 60, 62
  452. .hword 58, 81, 57
  453. .hword 37, 57, 81
  454. .hword 59, 60, 38
  455. .hword 60, 59, 61
  456. .hword 61, 62, 60
  457. .hword 62, 63, 58
  458. .hword 63, 62, 66
  459. .hword 61, 66, 62
  460. .hword 63, 66, 69
  461. .hword 58, 63, 82
  462. .hword 64, 82, 63
  463. .hword 64, 63, 69
  464. .hword 45, 59, 38
  465. .hword 65, 66, 61
  466. .hword 66, 65, 67
  467. .hword 67, 69, 66
  468. .hword 68, 69, 83
  469. .hword 69, 68, 64
  470. .hword 67, 83, 69
  471. .hword 64, 68, 84
  472. .hword 70, 83, 67
  473. .hword 11, 53, 45
  474. .hword 59, 45, 53
  475. .hword 59, 53, 71
  476. .hword 61, 59, 71
  477. .hword 52, 71, 53
  478. .hword 52, 55, 71
  479. .hword 65, 71, 55
  480. .hword 71, 65, 61
  481. .hword 65, 55, 72
  482. .hword 67, 65, 72
  483. .hword 51, 72, 55
  484. .hword 70, 72, 79
  485. .hword 51, 79, 72
  486. .hword 72, 70, 67
  487. .balign 4
  488. ttm_seg7_painting_data_07012E88: # 0x07012E88
  489. .word ttm_seg7_painting_points_07012450
  490. .word ttm_seg7_painting_points_0701296C
  491. .word 0x0
  492. .balign 8
  493. ttm_seg7_painting_dl_07012E98: # 0x07012E98 - 0x07012EF8
  494. gsSPDisplayList ttm_seg7_dl_070123B8
  495. gsSPVertex ttm_seg7_vertex_07012308, 8, 0
  496. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07004000
  497. gsDPLoadSync
  498. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
  499. gsSPDisplayList ttm_seg7_dl_07012388
  500. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07003000
  501. gsDPLoadSync
  502. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
  503. gsSPDisplayList ttm_seg7_dl_070123A0
  504. gsSPDisplayList ttm_seg7_dl_07012410
  505. gsSPEndDisplayList
  506. ttm_seg7_painting_textures_07012EF8: # 0x07012EF8 - 0x07012F78
  507. .word ttm_seg7_texture_07004000, ttm_seg7_texture_07003000
  508. glabel ttm_seg7_painting_struct # 0x07012F00 (PaintingData)
  509. .hword 0x0000
  510. .byte 0x02
  511. .byte 0x00
  512. .byte 0x00
  513. .byte 0x00
  514. .byte 0x00
  515. .byte 0x00
  516. .float 0.0, 90.0, 3072.0, 921.6
  517. .float -819.2, 0.0, 20.0, 80.0
  518. .float 1.0, 0.9608, 0.9524, 0.0
  519. .float 0.24, 0.14, 0.0, 40.0
  520. .float 30.0, 0.0, 0.0, 0.0
  521. .word ttm_seg7_painting_dl_07012E98
  522. .word ttm_seg7_painting_data_07012E88
  523. .word ttm_seg7_painting_textures_07012EF8
  524. .hword 64, 32
  525. .word ttm_seg7_painting_dl_07012430
  526. .byte 0x0A, 0xFF, 0x00, 0x00, 0x00
  527. .byte 0x00, 0x00, 0x00
  528. .float 460.8