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.
 
 
 
 
 

218 lines
12 KiB

bitdw_seg7_vertex_07004630: # 0x07004630 - 0x07004720
vertex -716, 1024, 306, -302, 922, 0xFF, 0x4E, 0x00, 0xFF
vertex -511, 1126, -205, -644, 786, 0xFF, 0x4E, 0x00, 0xFF
vertex -716, 1024, -307, -712, 922, 0xFF, 0x4E, 0x00, 0xFF
vertex -511, 1126, 204, -370, 786, 0xFF, 0x4E, 0x00, 0xFF
vertex 717, 1024, -307, -712, 0, 0xFF, 0x4E, 0x00, 0xFF
vertex 512, 1126, -205, -644, 104, 0xFF, 0x4E, 0x00, 0xFF
vertex 512, 1126, 204, -370, 104, 0xFF, 0x4E, 0x00, 0xFF
vertex 717, 1024, 306, -302, 0, 0xFF, 0x4E, 0x00, 0xFF
vertex 512, 1126, 204, -370, 104, 0xFB, 0x5F, 0x19, 0xFF
vertex 205, 1126, 511, -166, 308, 0xFB, 0x5F, 0x19, 0xFF
vertex 307, 1024, 716, 0, 240, 0xFB, 0x5F, 0x19, 0xFF
vertex 717, 1024, -307, -712, 0, 0xFB, 0x5F, 0x19, 0xFF
vertex 307, 1024, -717, -984, 240, 0xFB, 0x5F, 0x19, 0xFF
vertex 205, 1126, -512, -848, 308, 0xFB, 0x5F, 0x19, 0xFF
vertex 512, 1126, -205, -644, 104, 0xFB, 0x5F, 0x19, 0xFF
bitdw_seg7_vertex_07004720: # 0x07004720 - 0x07004810
vertex -511, 1126, -205, -644, 786, 0xFB, 0x5F, 0x19, 0xFF
vertex -204, 1126, -512, -848, 582, 0xFB, 0x5F, 0x19, 0xFF
vertex -306, 1024, -717, -984, 650, 0xFB, 0x5F, 0x19, 0xFF
vertex -716, 1024, -307, -712, 922, 0xFB, 0x5F, 0x19, 0xFF
vertex -716, 1024, 306, -302, 922, 0xFB, 0x5F, 0x19, 0xFF
vertex -306, 1024, 716, 0, 650, 0xFB, 0x5F, 0x19, 0xFF
vertex -204, 1126, 511, -166, 582, 0xFB, 0x5F, 0x19, 0xFF
vertex -511, 1126, 204, -370, 786, 0xFB, 0x5F, 0x19, 0xFF
vertex 512, 1126, 204, -370, 104, 0xFB, 0x5F, 0x19, 0xFF
vertex 307, 1024, 716, 0, 240, 0xFB, 0x5F, 0x19, 0xFF
vertex 717, 1024, 306, -302, 0, 0xFB, 0x5F, 0x19, 0xFF
vertex -204, 1126, -512, -848, 582, 0xFF, 0x7C, 0x30, 0xFF
vertex 307, 1024, -717, -984, 240, 0xFF, 0x7C, 0x30, 0xFF
vertex -306, 1024, -717, -984, 650, 0xFF, 0x7C, 0x30, 0xFF
vertex 205, 1126, -512, -848, 308, 0xFF, 0x7C, 0x30, 0xFF
bitdw_seg7_vertex_07004810: # 0x07004810 - 0x07004910
vertex 205, 1126, 511, -166, 308, 0xFF, 0x7C, 0x30, 0xFF
vertex -306, 1024, 716, 0, 650, 0xFF, 0x7C, 0x30, 0xFF
vertex 307, 1024, 716, 0, 240, 0xFF, 0x7C, 0x30, 0xFF
vertex -204, 1126, 511, -166, 582, 0xFF, 0x7C, 0x30, 0xFF
vertex 307, 1024, 716, 0, 240, 0xCE, 0x35, 0x16, 0xFF
vertex -306, 1024, 716, 0, 650, 0xCE, 0x35, 0x16, 0xFF
vertex 205, 819, 511, -166, 308, 0xCE, 0x35, 0x16, 0xFF
vertex -204, 819, 511, -166, 582, 0xCE, 0x35, 0x16, 0xFF
vertex -306, 1024, -717, -984, 650, 0xCE, 0x35, 0x16, 0xFF
vertex 307, 1024, -717, -984, 240, 0xCE, 0x35, 0x16, 0xFF
vertex -204, 819, -512, -848, 582, 0xCE, 0x35, 0x16, 0xFF
vertex 205, 819, -512, -848, 308, 0xCE, 0x35, 0x16, 0xFF
vertex 717, 1024, 306, -302, 0, 0x66, 0x16, 0x00, 0xFF
vertex 512, 819, 204, -370, 104, 0x66, 0x16, 0x00, 0xFF
vertex 717, 1024, -307, -712, 0, 0x66, 0x16, 0x00, 0xFF
vertex 512, 819, -205, -644, 104, 0x66, 0x16, 0x00, 0xFF
bitdw_seg7_vertex_07004910: # 0x07004910 - 0x07004A00
vertex -716, 1024, -307, -712, 922, 0x66, 0x16, 0x00, 0xFF
vertex -511, 819, 204, -370, 786, 0x66, 0x16, 0x00, 0xFF
vertex -716, 1024, 306, -302, 922, 0x66, 0x16, 0x00, 0xFF
vertex -511, 819, -205, -644, 786, 0x66, 0x16, 0x00, 0xFF
vertex -716, 1024, -307, -712, 922, 0x9E, 0x27, 0x00, 0xFF
vertex -306, 1024, -717, -984, 650, 0x9E, 0x27, 0x00, 0xFF
vertex -511, 819, -205, -644, 786, 0x9E, 0x27, 0x00, 0xFF
vertex 717, 1024, 306, -302, 0, 0x9E, 0x27, 0x00, 0xFF
vertex 307, 1024, 716, 0, 240, 0x9E, 0x27, 0x00, 0xFF
vertex 512, 819, 204, -370, 104, 0x9E, 0x27, 0x00, 0xFF
vertex 205, 819, 511, -166, 308, 0x9E, 0x27, 0x00, 0xFF
vertex -511, 819, 204, -370, 786, 0x9E, 0x27, 0x00, 0xFF
vertex -204, 819, 511, -166, 582, 0x9E, 0x27, 0x00, 0xFF
vertex -716, 1024, 306, -302, 922, 0x9E, 0x27, 0x00, 0xFF
vertex -306, 1024, 716, 0, 650, 0x9E, 0x27, 0x00, 0xFF
bitdw_seg7_vertex_07004A00: # 0x07004A00 - 0x07004B00
vertex 205, 819, -512, -848, 308, 0x9E, 0x27, 0x00, 0xFF
vertex 307, 1024, -717, -984, 240, 0x9E, 0x27, 0x00, 0xFF
vertex 717, 1024, -307, -712, 0, 0x9E, 0x27, 0x00, 0xFF
vertex -306, 1024, -717, -984, 650, 0x9E, 0x27, 0x00, 0xFF
vertex -204, 819, -512, -848, 582, 0x9E, 0x27, 0x00, 0xFF
vertex -511, 819, -205, -644, 786, 0x9E, 0x27, 0x00, 0xFF
vertex 512, 819, -205, -644, 104, 0x9E, 0x27, 0x00, 0xFF
vertex 0, 1126, 93, 432, 944, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 1536, 0, 432, 478, 0xFF, 0xFF, 0xFF, 0xFF
vertex -92, 1126, 0, 0, 478, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 1126, -92, 432, 14, 0xFF, 0xFF, 0xFF, 0xFF
vertex 93, 1126, 0, 898, 478, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, -716, -511, -26, -18, 0xFF, 0xFF, 0xFF, 0xFF
vertex -511, -716, 0, -20, 1000, 0xFF, 0xFF, 0xFF, 0xFF
vertex -162, 819, 0, 320, 656, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 819, 163, 638, 656, 0xFF, 0xFF, 0xFF, 0xFF
bitdw_seg7_vertex_07004B00: # 0x07004B00 - 0x07004B80
vertex -511, -716, 0, -20, 1000, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, -716, 512, 982, 1004, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 819, 163, 638, 656, 0xFF, 0xFF, 0xFF, 0xFF
vertex 512, -716, 0, 976, -14, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 819, -162, 318, 330, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, -716, -511, -26, -18, 0xFF, 0xFF, 0xFF, 0xFF
vertex -162, 819, 0, 320, 656, 0xFF, 0xFF, 0xFF, 0xFF
vertex 163, 819, 0, 636, 332, 0xFF, 0xFF, 0xFF, 0xFF
bitdw_seg7_vertex_07004B80: # 0x07004B80 - 0x07004C80
vertex -204, 1126, -512, 1502, 0, 0xFE, 0xFF, 0xA8, 0xFF
vertex 205, 1126, 511, 3546, 582, 0xFE, 0xFF, 0xA8, 0xFF
vertex 512, 1126, 204, 5078, 0, 0xFE, 0xFF, 0xA8, 0xFF
vertex 512, 1126, -205, 5078, -440, 0xFE, 0xFF, 0xA8, 0xFF
vertex 205, 1126, -512, 3546, -440, 0xFE, 0xFF, 0xA8, 0xFF
vertex -511, 1126, 204, 0, 990, 0xFE, 0xFF, 0xA8, 0xFF
vertex -204, 1126, 511, 1502, 990, 0xFE, 0xFF, 0xA8, 0xFF
vertex -511, 1126, -205, 0, 582, 0xFE, 0xFF, 0xA8, 0xFF
vertex 205, 819, -512, 3546, -440, 0x5D, 0x5D, 0x00, 0xFF
vertex 512, 819, -205, 5078, -440, 0x5D, 0x5D, 0x00, 0xFF
vertex -204, 819, -512, 1502, 0, 0x5D, 0x5D, 0x00, 0xFF
vertex 512, 819, 204, 5078, 0, 0x5D, 0x5D, 0x00, 0xFF
vertex -204, 819, 511, 1502, 990, 0x5D, 0x5D, 0x00, 0xFF
vertex -511, 819, 204, 0, 990, 0x5D, 0x5D, 0x00, 0xFF
vertex 205, 819, 511, 3546, 582, 0x5D, 0x5D, 0x00, 0xFF
vertex -511, 819, -205, 0, 582, 0x5D, 0x5D, 0x00, 0xFF
bitdw_seg7_vertex_07004C80: # 0x07004C80 - 0x07004D80
vertex 410, -1023, 0, 1398, -648, 0x2F, 0x49, 0x5E, 0xFF
vertex 0, -1023, 410, 582, -1466, 0x2F, 0x49, 0x5E, 0xFF
vertex -409, -1023, 0, -234, -648, 0x2F, 0x49, 0x5E, 0xFF
vertex 0, -1023, -409, 582, 170, 0x2F, 0x49, 0x5E, 0xFF
vertex -511, -716, 0, 1168, 2380, 0x3B, 0x4F, 0x67, 0xFF
vertex -409, -1023, 0, 1692, 1494, 0x3B, 0x4F, 0x67, 0xFF
vertex 0, -1023, 410, 246, 52, 0x3B, 0x4F, 0x67, 0xFF
vertex 0, -716, 512, -638, 576, 0x3B, 0x4F, 0x67, 0xFF
vertex 512, -716, 0, -1052, 990, 0x3B, 0x4F, 0x67, 0xFF
vertex 0, -1023, -409, 1360, 1826, 0x3B, 0x4F, 0x67, 0xFF
vertex 0, -716, -511, 752, 2794, 0x3B, 0x4F, 0x67, 0xFF
vertex 410, -1023, 0, -84, 384, 0x3B, 0x4F, 0x67, 0xFF
vertex 0, -716, 512, 1872, 302, 0x4E, 0x69, 0x7E, 0xFF
vertex 410, -1023, 0, -458, 1222, 0x4E, 0x69, 0x7E, 0xFF
vertex 512, -716, 0, 64, 2106, 0x4E, 0x69, 0x7E, 0xFF
vertex 0, -1023, 410, 986, -222, 0x4E, 0x69, 0x7E, 0xFF
bitdw_seg7_vertex_07004D80: # 0x07004D80 - 0x07004DC0
vertex 0, -716, -511, 480, 2522, 0x4E, 0x69, 0x7E, 0xFF
vertex 0, -1023, -409, -126, 1552, 0x4E, 0x69, 0x7E, 0xFF
vertex -409, -1023, 0, 1318, 110, 0x4E, 0x69, 0x7E, 0xFF
vertex -511, -716, 0, 2286, 716, 0x4E, 0x69, 0x7E, 0xFF
bitdw_seg7_dl_07004DC0: # 0x07004DC0 - 0x07004F70
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bitdw_seg7_texture_07000000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex bitdw_seg7_vertex_07004630, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPVertex bitdw_seg7_vertex_07004720, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 14, 12, 0x0
gsSPVertex bitdw_seg7_vertex_07004810, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 5, 7, 6, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
gsSP2Triangles 12, 13, 14, 0x0, 13, 15, 14, 0x0
gsSPVertex bitdw_seg7_vertex_07004910, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 8, 10, 9, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 12, 14, 13, 0x0
gsSPVertex bitdw_seg7_vertex_07004A00, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 0, 2, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 8, 10, 9, 0x0, 8, 11, 10, 0x0
gsSP2Triangles 11, 8, 7, 0x0, 12, 13, 14, 0x0
gsSP1Triangle 13, 15, 14, 0x0
gsSPVertex bitdw_seg7_vertex_07004B00, 8, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 2, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 7, 3, 5, 0x0
gsSP2Triangles 7, 5, 4, 0x0, 3, 7, 2, 0x0
gsSPEndDisplayList
bitdw_seg7_dl_07004F70: # 0x07004F70 - 0x07004FF8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09004800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex bitdw_seg7_vertex_07004B80, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
gsSP2Triangles 0, 2, 3, 0x0, 0, 5, 6, 0x0
gsSP2Triangles 0, 6, 1, 0x0, 0, 7, 5, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 9, 11, 10, 0x0
gsSP2Triangles 12, 13, 10, 0x0, 11, 14, 10, 0x0
gsSP2Triangles 14, 12, 10, 0x0, 13, 15, 10, 0x0
gsSPEndDisplayList
bitdw_seg7_dl_07004FF8: # 0x07004FF8 - 0x07005078
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09007000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex bitdw_seg7_vertex_07004C80, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 9, 0x0
gsSP2Triangles 12, 13, 14, 0x0, 12, 15, 13, 0x0
gsSPVertex bitdw_seg7_vertex_07004D80, 4, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSPEndDisplayList
glabel bitdw_seg7_dl_07005078 # 0x07005078 - 0x070050F8
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_07004DC0
gsSPDisplayList bitdw_seg7_dl_07004F70
gsSPDisplayList bitdw_seg7_dl_07004FF8
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