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.
 
 
 
 
 

205 lines
12 KiB

bitdw_seg7_vertex_07005C40: # 0x07005C40 - 0x07005D40
vertex -153, 435, -716, 1672, -1054, 0xFF, 0xFF, 0xA8, 0xFF
vertex -562, 435, -716, 308, -1054, 0xFF, 0xFF, 0xA8, 0xFF
vertex -869, 435, -409, -712, -616, 0xFF, 0xFF, 0xA8, 0xFF
vertex 154, 435, -409, 2694, -616, 0xFF, 0xFF, 0xA8, 0xFF
vertex 154, 435, 410, 2694, 552, 0xFF, 0xFF, 0xA8, 0xFF
vertex -869, 435, 410, -712, 552, 0xFF, 0xFF, 0xA8, 0xFF
vertex -562, 435, 717, 308, 990, 0xFF, 0xFF, 0xA8, 0xFF
vertex -153, 435, 717, 1672, 990, 0xFF, 0xFF, 0xA8, 0xFF
vertex -869, 128, -409, -712, -616, 0x52, 0x70, 0xAC, 0xFF
vertex 154, 128, -409, 2694, -616, 0x52, 0x70, 0xAC, 0xFF
vertex 154, 128, 410, 2694, 552, 0x52, 0x70, 0xAC, 0xFF
vertex -562, 128, 717, 308, 990, 0x52, 0x70, 0xAC, 0xFF
vertex -869, 128, 410, -712, 552, 0x52, 0x70, 0xAC, 0xFF
vertex -562, 128, -716, 308, -1054, 0x52, 0x70, 0xAC, 0xFF
vertex -153, 128, -716, 1672, -1054, 0x52, 0x70, 0xAC, 0xFF
vertex -153, 128, 717, 1672, 990, 0x52, 0x70, 0xAC, 0xFF
bitdw_seg7_vertex_07005D40: # 0x07005D40 - 0x07005E40
vertex 358, 333, -306, 1864, 160, 0x7C, 0x89, 0x79, 0xFF
vertex 672, 218, -306, 1150, 490, 0x7C, 0x89, 0x79, 0xFF
vertex 672, 13, -306, 808, 150, 0x7C, 0x89, 0x79, 0xFF
vertex 1178, 218, -306, 308, 1328, 0x7C, 0x89, 0x79, 0xFF
vertex 1178, 13, -306, 0, 990, 0x7C, 0x89, 0x79, 0xFF
vertex 154, 128, -306, 1864, -522, 0x7C, 0x89, 0x79, 0xFF
vertex 672, 13, 307, 808, 150, 0x7C, 0x89, 0x79, 0xFF
vertex 1178, 13, 307, 0, 990, 0x7C, 0x89, 0x79, 0xFF
vertex 1178, 218, 307, 308, 1328, 0x7C, 0x89, 0x79, 0xFF
vertex 672, 218, 307, 1150, 490, 0x7C, 0x89, 0x79, 0xFF
vertex 154, 128, 307, 1864, -522, 0x7C, 0x89, 0x79, 0xFF
vertex 358, 333, 307, 1864, 160, 0x7C, 0x89, 0x79, 0xFF
vertex 1178, 13, -306, 1160, 1840, 0x68, 0x7B, 0x6E, 0xFF
vertex 1178, 218, -306, 1502, 1498, 0x68, 0x7B, 0x6E, 0xFF
vertex 1178, 218, 307, 478, 478, 0x68, 0x7B, 0x6E, 0xFF
vertex 1178, 13, 307, 138, 820, 0x68, 0x7B, 0x6E, 0xFF
bitdw_seg7_vertex_07005E40: # 0x07005E40 - 0x07005F20
vertex 672, 13, -306, 150, 1828, 0x38, 0x4A, 0x3D, 0xFF
vertex 1178, 13, 307, 0, 0, 0x38, 0x4A, 0x3D, 0xFF
vertex 672, 13, 307, -870, 808, 0x38, 0x4A, 0x3D, 0xFF
vertex 154, 128, -306, -712, 2692, 0x38, 0x4A, 0x3D, 0xFF
vertex 1178, 13, -306, 990, 990, 0x38, 0x4A, 0x3D, 0xFF
vertex 154, 128, 307, -1734, 1670, 0x38, 0x4A, 0x3D, 0xFF
vertex 672, 218, 307, -870, 808, 0xCD, 0xDF, 0xCC, 0xFF
vertex 1178, 218, 307, 0, 0, 0xCD, 0xDF, 0xCC, 0xFF
vertex 1178, 218, -306, 990, 990, 0xCD, 0xDF, 0xCC, 0xFF
vertex 672, 218, -306, 150, 1828, 0xCD, 0xDF, 0xCC, 0xFF
vertex 358, 333, 307, -1392, 1328, 0xB7, 0xCD, 0xBA, 0xFF
vertex 672, 218, -306, 150, 1828, 0xB7, 0xCD, 0xBA, 0xFF
vertex 358, 333, -306, -370, 2350, 0xB7, 0xCD, 0xBA, 0xFF
vertex 672, 218, 307, -870, 808, 0xB7, 0xCD, 0xBA, 0xFF
bitdw_seg7_vertex_07005F20: # 0x07005F20 - 0x07006010
vertex -665, 333, -921, 0, 990, 0xC7, 0xEE, 0xFF, 0xFF
vertex -562, 435, -716, 308, 0, 0xC7, 0xEE, 0xFF, 0xFF
vertex -153, 435, -716, 990, 0, 0xC7, 0xEE, 0xFF, 0xFF
vertex -50, 333, -921, 990, 990, 0xC7, 0xEE, 0xFF, 0xFF
vertex -665, 333, 922, 990, 990, 0xC7, 0xEE, 0xFF, 0xFF
vertex -50, 333, 922, 0, 990, 0xC7, 0xEE, 0xFF, 0xFF
vertex -562, 435, 717, 820, -26, 0xC7, 0xEE, 0xFF, 0xFF
vertex -153, 435, 717, 138, -26, 0xC7, 0xEE, 0xFF, 0xFF
vertex -665, 333, 922, 0, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -562, 435, 717, 96, -30, 0xA0, 0xD8, 0xFF, 0xFF
vertex -869, 435, 410, 862, -30, 0xA0, 0xD8, 0xFF, 0xFF
vertex -562, 435, -716, 990, 0, 0xA0, 0xD8, 0xFF, 0xFF
vertex -665, 333, -921, 990, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -1074, 333, -511, 0, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -869, 435, -409, 224, 0, 0xA0, 0xD8, 0xFF, 0xFF
bitdw_seg7_vertex_07006010: # 0x07006010 - 0x070060F0
vertex -50, 333, -921, 0, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -153, 435, -716, 96, -30, 0xA0, 0xD8, 0xFF, 0xFF
vertex 154, 435, -409, 862, -30, 0xA0, 0xD8, 0xFF, 0xFF
vertex 358, 333, -511, 990, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -153, 435, 717, 990, 0, 0xA0, 0xD8, 0xFF, 0xFF
vertex -50, 333, 922, 990, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex 358, 333, 512, 0, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex 154, 435, 410, 224, 0, 0xA0, 0xD8, 0xFF, 0xFF
vertex -1074, 333, 512, 990, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -665, 333, 922, 0, 990, 0xA0, 0xD8, 0xFF, 0xFF
vertex -869, 435, 410, 862, -30, 0xA0, 0xD8, 0xFF, 0xFF
vertex -869, 435, 410, 308, 0, 0x82, 0xC2, 0xFF, 0xFF
vertex -869, 435, -409, 990, 0, 0x82, 0xC2, 0xFF, 0xFF
vertex -1074, 333, -511, 990, 990, 0x82, 0xC2, 0xFF, 0xFF
bitdw_seg7_vertex_070060F0: # 0x070060F0 - 0x070061E0
vertex -562, 128, 717, 820, 584, 0x82, 0xC2, 0xFF, 0xFF
vertex -153, 128, 717, 138, 584, 0x82, 0xC2, 0xFF, 0xFF
vertex -50, 333, 922, 0, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex -665, 333, 922, 990, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex -153, 128, -716, 888, 582, 0x82, 0xC2, 0xFF, 0xFF
vertex -665, 333, -921, 0, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex -50, 333, -921, 990, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex -562, 128, -716, 206, 582, 0x82, 0xC2, 0xFF, 0xFF
vertex 358, 333, -511, 0, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex 154, 435, -409, 138, -48, 0x82, 0xC2, 0xFF, 0xFF
vertex 358, 333, 512, 990, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex 154, 435, 410, 820, -48, 0x82, 0xC2, 0xFF, 0xFF
vertex -1074, 333, 512, 0, 990, 0x82, 0xC2, 0xFF, 0xFF
vertex -869, 435, 410, 308, 0, 0x82, 0xC2, 0xFF, 0xFF
vertex -1074, 333, -511, 990, 990, 0x82, 0xC2, 0xFF, 0xFF
bitdw_seg7_vertex_070061E0: # 0x070061E0 - 0x070062E0
vertex -869, 128, 410, 862, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex -665, 333, 922, 0, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex -1074, 333, 512, 990, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex -562, 128, 717, 96, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex 358, 333, 512, 0, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex -153, 128, 717, 920, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex 154, 128, 410, 154, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex -50, 333, 922, 990, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex 154, 128, -409, 862, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex -153, 128, -716, 96, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex -50, 333, -921, 0, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex 358, 333, -511, 990, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex -1074, 333, -511, 0, 990, 0x69, 0xB4, 0xFF, 0xFF
vertex -562, 128, -716, 920, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex -869, 128, -409, 154, 526, 0x69, 0xB4, 0xFF, 0xFF
vertex -665, 333, -921, 990, 990, 0x69, 0xB4, 0xFF, 0xFF
bitdw_seg7_vertex_070062E0: # 0x070062E0 - 0x07006360
vertex 358, 333, 512, 0, 990, 0x5F, 0x9C, 0xFF, 0xFF
vertex 154, 128, 410, 206, 582, 0x5F, 0x9C, 0xFF, 0xFF
vertex 358, 333, -511, 990, 990, 0x5F, 0x9C, 0xFF, 0xFF
vertex 154, 128, -409, 888, 582, 0x5F, 0x9C, 0xFF, 0xFF
vertex -1074, 333, -511, 990, 990, 0x5F, 0x9C, 0xFF, 0xFF
vertex -869, 128, 410, 206, 582, 0x5F, 0x9C, 0xFF, 0xFF
vertex -1074, 333, 512, 0, 990, 0x5F, 0x9C, 0xFF, 0xFF
vertex -869, 128, -409, 888, 582, 0x5F, 0x9C, 0xFF, 0xFF
bitdw_seg7_dl_07006360: # 0x07006360 - 0x070063E8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09004800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex bitdw_seg7_vertex_07005C40, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 4, 3, 2, 0x0, 5, 6, 2, 0x0
gsSP2Triangles 6, 7, 2, 0x0, 7, 4, 2, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 12, 0x0
gsSP2Triangles 8, 13, 14, 0x0, 8, 15, 11, 0x0
gsSP2Triangles 8, 14, 9, 0x0, 8, 10, 15, 0x0
gsSPEndDisplayList
bitdw_seg7_dl_070063E8: # 0x070063E8 - 0x070064A8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09007000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex bitdw_seg7_vertex_07005D40, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 4, 0x0
gsSP2Triangles 1, 4, 2, 0x0, 0, 2, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 10, 6, 9, 0x0, 10, 9, 11, 0x0
gsSP2Triangles 12, 13, 14, 0x0, 12, 14, 15, 0x0
gsSPVertex bitdw_seg7_vertex_07005E40, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 0, 4, 1, 0x0, 3, 2, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
gsSPEndDisplayList
bitdw_seg7_dl_070064A8: # 0x070064A8 - 0x070065F0
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bitdw_seg7_texture_07001000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex bitdw_seg7_vertex_07005F20, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 14, 11, 13, 0x0
gsSPVertex bitdw_seg7_vertex_07006010, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 7, 4, 6, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
gsSPVertex bitdw_seg7_vertex_070060F0, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
gsSP1Triangle 12, 13, 14, 0x0
gsSPVertex bitdw_seg7_vertex_070061E0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 10, 11, 0x0
gsSP2Triangles 12, 13, 14, 0x0, 12, 15, 13, 0x0
gsSPVertex bitdw_seg7_vertex_070062E0, 8, 0
gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
gsSPEndDisplayList
glabel bitdw_seg7_dl_070065F0 # 0x070065F0 - 0x07006670
gsDPPipeSync
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
gsSPClearGeometryMode G_LIGHTING
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
gsSPTexture -1, -1, 0, 0, 1
gsDPTileSync
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
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPDisplayList bitdw_seg7_dl_07006360
gsSPDisplayList bitdw_seg7_dl_070063E8
gsSPDisplayList bitdw_seg7_dl_070064A8
gsSPTexture -1, -1, 0, 0, 0
gsDPPipeSync
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
gsSPSetGeometryMode G_LIGHTING
gsSPEndDisplayList