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.

120 lines
6.9 KiB

5 years ago
  1. bitdw_seg7_vertex_07003688: # 0x07003688 - 0x07003778
  2. vertex 3507, -588, 205, 4226, -542, 0x2B, 0x5C, 0x54, 0xFF
  3. vertex 3712, -485, 614, 4056, -1054, 0x2B, 0x5C, 0x54, 0xFF
  4. vertex 3712, -588, 614, 4056, -1054, 0x2B, 0x5C, 0x54, 0xFF
  5. vertex 3507, -485, 205, 4226, -542, 0x2B, 0x5C, 0x54, 0xFF
  6. vertex -1305, 333, 614, -116, 3118, 0x2B, 0x5C, 0x54, 0xFF
  7. vertex -1305, 640, 614, -116, 3118, 0x2B, 0x5C, 0x54, 0xFF
  8. vertex -2124, 1152, -921, 478, 5076, 0x2B, 0x5C, 0x54, 0xFF
  9. vertex -1919, 742, -921, 650, 4906, 0x2B, 0x5C, 0x54, 0xFF
  10. vertex -1509, 742, -1125, 1160, 4736, 0x2B, 0x5C, 0x54, 0xFF
  11. vertex -895, 640, 0, 734, 3288, 0x2B, 0x5C, 0x54, 0xFF
  12. vertex -895, 230, 0, 734, 3288, 0x2B, 0x5C, 0x54, 0xFF
  13. vertex -1509, 1152, -1125, 1160, 4736, 0x2B, 0x5C, 0x54, 0xFF
  14. vertex 742, 230, 1126, 1160, 990, 0x37, 0x7E, 0x69, 0xFF
  15. vertex -1305, 640, 614, -116, 3118, 0x37, 0x7E, 0x69, 0xFF
  16. vertex -1305, 333, 614, -116, 3118, 0x37, 0x7E, 0x69, 0xFF
  17. bitdw_seg7_vertex_07003778: # 0x07003778 - 0x07003868
  18. vertex 3712, -588, 614, 4056, -1054, 0x37, 0x7E, 0x69, 0xFF
  19. vertex 3712, -485, 614, 4056, -1054, 0x37, 0x7E, 0x69, 0xFF
  20. vertex 2381, -383, 614, 2948, 54, 0x37, 0x7E, 0x69, 0xFF
  21. vertex 2381, -588, 614, 2948, 54, 0x37, 0x7E, 0x69, 0xFF
  22. vertex 2176, -485, 0, 3290, 734, 0x37, 0x7E, 0x69, 0xFF
  23. vertex 3507, -485, 205, 4226, -542, 0x37, 0x7E, 0x69, 0xFF
  24. vertex 3507, -588, 205, 4226, -542, 0x37, 0x7E, 0x69, 0xFF
  25. vertex 2176, -383, 0, 3290, 734, 0x37, 0x7E, 0x69, 0xFF
  26. vertex 742, 230, 512, 1672, 1500, 0x37, 0x7E, 0x69, 0xFF
  27. vertex -895, 230, 0, 734, 3288, 0x37, 0x7E, 0x69, 0xFF
  28. vertex -895, 640, 0, 734, 3288, 0x37, 0x7E, 0x69, 0xFF
  29. vertex 742, -178, 512, 1672, 1500, 0x37, 0x7E, 0x69, 0xFF
  30. vertex 447, -59, 1044, 982, 1302, 0x37, 0x7E, 0x69, 0xFF
  31. vertex 742, 230, 1126, 1160, 990, 0x37, 0x7E, 0x69, 0xFF
  32. vertex -1305, 333, 614, -116, 3118, 0x37, 0x7E, 0x69, 0xFF
  33. bitdw_seg7_vertex_07003868: # 0x07003868 - 0x07003968
  34. vertex 742, 230, 512, 1672, 1500, 0x2E, 0x9A, 0x73, 0xFF
  35. vertex 2176, -383, 0, 3290, 734, 0x2E, 0x9A, 0x73, 0xFF
  36. vertex 2176, -485, 0, 3290, 734, 0x2E, 0x9A, 0x73, 0xFF
  37. vertex 742, -178, 512, 1672, 1500, 0x2E, 0x9A, 0x73, 0xFF
  38. vertex 2381, -588, 614, 2948, 54, 0x2E, 0x9A, 0x73, 0xFF
  39. vertex 742, 230, 1126, 1160, 990, 0x2E, 0x9A, 0x73, 0xFF
  40. vertex 447, -59, 1044, 982, 1302, 0x2E, 0x9A, 0x73, 0xFF
  41. vertex 2381, -383, 614, 2948, 54, 0x2E, 0x9A, 0x73, 0xFF
  42. vertex -1509, 1152, -1125, 1160, 4736, 0xFF, 0xFF, 0xFF, 0xFF
  43. vertex -2124, 1152, -921, 478, 5076, 0xFF, 0xFF, 0xFF, 0xFF
  44. vertex -1305, 640, 614, -116, 3118, 0xFF, 0xFF, 0xFF, 0xFF
  45. vertex 2176, -383, 0, 3290, 734, 0xFF, 0xFF, 0xFF, 0xFF
  46. vertex 2381, -383, 614, 2948, 54, 0xFF, 0xFF, 0xFF, 0xFF
  47. vertex 3712, -485, 614, 4056, -1054, 0xFF, 0xFF, 0xFF, 0xFF
  48. vertex 3507, -485, 205, 4226, -542, 0xFF, 0xFF, 0xFF, 0xFF
  49. vertex 742, 230, 512, 1672, 1500, 0xFF, 0xFF, 0xFF, 0xFF
  50. bitdw_seg7_vertex_07003968: # 0x07003968 - 0x07003A68
  51. vertex 742, 230, 512, 1672, 1500, 0xFF, 0xFF, 0xFF, 0xFF
  52. vertex 742, 230, 1126, 1160, 990, 0xFF, 0xFF, 0xFF, 0xFF
  53. vertex 2381, -383, 614, 2948, 54, 0xFF, 0xFF, 0xFF, 0xFF
  54. vertex 742, 230, 512, 1672, 1498, 0xFF, 0xFF, 0xFF, 0xFF
  55. vertex -895, 640, 0, 734, 3288, 0xFF, 0xFF, 0xFF, 0xFF
  56. vertex -1305, 640, 614, -116, 3118, 0xFF, 0xFF, 0xFF, 0xFF
  57. vertex -1509, 1152, -1125, 1160, 4736, 0xFF, 0xFF, 0xFF, 0xFF
  58. vertex 2176, -485, 0, 3290, 734, 0x00, 0x43, 0x43, 0xFF
  59. vertex 3507, -588, 205, 4226, -542, 0x00, 0x43, 0x43, 0xFF
  60. vertex 2381, -588, 614, 2948, 54, 0x00, 0x43, 0x43, 0xFF
  61. vertex 3712, -588, 614, 4056, -1054, 0x00, 0x43, 0x43, 0xFF
  62. vertex 742, -178, 512, 1672, 1500, 0x00, 0x43, 0x43, 0xFF
  63. vertex 447, -59, 1044, 982, 1302, 0x00, 0x43, 0x43, 0xFF
  64. vertex -1305, 333, 614, -116, 3118, 0x00, 0x43, 0x43, 0xFF
  65. vertex -895, 230, 0, 734, 3288, 0x00, 0x43, 0x43, 0xFF
  66. vertex -1919, 742, -921, 650, 4906, 0x00, 0x43, 0x43, 0xFF
  67. bitdw_seg7_vertex_07003A68: # 0x07003A68 - 0x07003A98
  68. vertex -1919, 742, -921, 650, 4906, 0x00, 0x43, 0x43, 0xFF
  69. vertex -1509, 742, -1125, 1160, 4736, 0x00, 0x43, 0x43, 0xFF
  70. vertex -895, 230, 0, 734, 3288, 0x00, 0x43, 0x43, 0xFF
  71. bitdw_seg7_dl_07003A98: # 0x07003A98 - 0x07003BF0
  72. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bitdw_seg7_texture_07000800
  73. gsDPLoadSync
  74. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  75. gsSPVertex bitdw_seg7_vertex_07003688, 15, 0
  76. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  77. gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
  78. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
  79. gsSP1Triangle 12, 13, 14, 0x0
  80. gsSPVertex bitdw_seg7_vertex_07003778, 15, 0
  81. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  82. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  83. gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
  84. gsSP1Triangle 12, 13, 14, 0x0
  85. gsSPVertex bitdw_seg7_vertex_07003868, 16, 0
  86. gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
  87. gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
  88. gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
  89. gsSP2Triangles 14, 11, 13, 0x0, 11, 15, 12, 0x0
  90. gsSPVertex bitdw_seg7_vertex_07003968, 16, 0
  91. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 1, 0x0
  92. gsSP2Triangles 4, 5, 1, 0x0, 4, 6, 5, 0x0
  93. gsSP2Triangles 7, 8, 9, 0x0, 8, 10, 9, 0x0
  94. gsSP2Triangles 11, 7, 9, 0x0, 11, 9, 12, 0x0
  95. gsSP2Triangles 13, 14, 11, 0x0, 12, 13, 11, 0x0
  96. gsSP1Triangle 13, 15, 14, 0x0
  97. gsSPVertex bitdw_seg7_vertex_07003A68, 3, 0
  98. gsSP1Triangle 0, 1, 2, 0x0
  99. gsSPEndDisplayList
  100. glabel bitdw_seg7_dl_07003BF0 # 0x07003BF0 - 0x07003C60
  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_LIGHTING
  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 bitdw_seg7_dl_07003A98
  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_LIGHTING
  114. gsSPEndDisplayList