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.
 
 
 
 
 

163 lines
9.4 KiB

hmc_seg7_vertex_07014370: # 0x07014370 - 0x07014460
vertex 4629, -460, -767, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4752, -460, -767, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4752, -255, -767, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, -357, -5559, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4916, -357, -5559, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4916, -562, -5559, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5120, -562, -5559, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5018, -357, -5498, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5018, -357, -5621, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5018, -562, -5621, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5018, -562, -5498, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4690, -460, -869, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4690, -255, -665, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4690, -255, -869, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4690, -460, -665, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07014460: # 0x07014460 - 0x07014550
vertex 4936, -255, -4249, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4936, -460, -4044, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4936, -460, -4249, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4629, -460, -767, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4752, -255, -767, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4629, -255, -767, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -357, -2713, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -357, -2508, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -562, -2508, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -562, -2713, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1823, -357, -2610, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1700, -357, -2610, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1700, -562, -2610, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1823, -562, -2610, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4936, -255, -4044, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07014550: # 0x07014550 - 0x07014640
vertex 3462, -357, -1228, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3462, -357, -1023, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3462, -153, -1023, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4998, -255, -4146, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4875, -255, -4146, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4875, -460, -4146, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4998, -460, -4146, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4178, -357, -3839, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4178, -153, -3634, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4178, -153, -3839, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4178, -357, -3634, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4117, -357, -3737, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4240, -357, -3737, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4240, -153, -3737, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 4117, -153, -3737, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07014640: # 0x07014640 - 0x07014730
vertex 1997, 768, -173, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1997, 563, -296, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1997, 563, -173, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3462, -357, -1228, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3462, -153, -1023, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3462, -153, -1228, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3400, -357, -1125, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3523, -153, -1125, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3400, -153, -1125, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3523, -357, -1125, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2100, 768, -235, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1895, 768, -235, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1895, 563, -235, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2100, 563, -235, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1997, 768, -296, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07014730: # 0x07014730 - 0x07014820
vertex 2171, -562, 256, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2294, -562, 256, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2294, -357, 256, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, 768, -101, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, 563, 102, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, 563, -101, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, 768, 102, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1823, 768, 0, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1700, 768, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1700, 563, 0, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1823, 563, 0, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2233, -562, 154, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2233, -562, 358, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2233, -357, 358, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2233, -357, 154, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07014820: # 0x07014820 - 0x07014910
vertex 5510, -357, -3532, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5510, -153, -3327, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5510, -153, -3532, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2171, -562, 256, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2294, -357, 256, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 2171, -357, 256, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1823, -357, 256, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1700, -357, 256, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1700, -562, 256, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1823, -562, 256, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -357, 154, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -562, 358, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -562, 154, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 1762, -357, 358, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5510, -357, -3327, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07014910: # 0x07014910 - 0x07014950
vertex 5448, -357, -3429, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5571, -357, -3429, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5571, -153, -3429, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 5448, -153, -3429, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_dl_07014950: # 0x07014950 - 0x07014B08
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09007000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex hmc_seg7_vertex_07014370, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 14, 12, 0x0
gsSPVertex hmc_seg7_vertex_07014460, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex hmc_seg7_vertex_07014550, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPVertex hmc_seg7_vertex_07014640, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 9, 7, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex hmc_seg7_vertex_07014730, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPVertex hmc_seg7_vertex_07014820, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex hmc_seg7_vertex_07014910, 4, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSPEndDisplayList
glabel hmc_seg7_dl_07014B08 # 0x07014B08 - 0x07014B88
gsDPPipeSync
gsDPSetEnvColor 255, 255, 255, 128
gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_ENVIRONMENT, G_ACMUX_0
gsSPClearGeometryMode G_LIGHTING | G_CULL_BACK
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_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPDisplayList hmc_seg7_dl_07014950
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
gsDPSetEnvColor 255, 255, 255, 255
gsSPSetGeometryMode G_LIGHTING | G_CULL_BACK
gsSPEndDisplayList