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.
 
 
 
 
 

183 lines
10 KiB

hmc_seg7_vertex_070174B0: # 0x070174B0 - 0x070175A0
vertex -6962, 1536, 1408, 7752, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6655, 1089, 691, 0, 4426, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6962, 1275, 1408, 7752, 2568, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5411, 509, 77, 8242, 10214, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5411, 1536, 77, 8242, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4582, 1536, 77, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4582, 1024, 77, 0, 5076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5718, 1536, 691, 6824, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5411, 509, 77, 0, 10214, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5718, 919, 691, 6824, 6126, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5411, 1536, 77, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6655, 1536, 691, 9316, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5718, 919, 691, 0, 6126, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6655, 1089, 691, 9316, 4426, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5718, 1536, 691, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_070175A0: # 0x070175A0 - 0x07017680
vertex -5096, 2867, -1610, 0, 2010, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5551, 2867, -322, 13254, 5076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5810, 2867, -486, 13254, 2010, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6962, 1536, 1408, 7752, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6655, 1536, 691, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6655, 1089, 691, 0, 4426, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4577, 2867, -1280, 0, 8142, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4318, 2867, -1115, 0, 11208, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4483, 2867, -856, 3034, 11208, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4742, 2867, -1021, 3034, 8142, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5441, 2867, -1829, 0, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 2867, -2175, -4118, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4098, 2867, -1460, -4118, 11208, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4837, 2867, -1445, 0, 5076, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07017680: # 0x07017680 - 0x07017760
vertex -5221, 2867, -2687, 2810, -8908, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3685, 2867, -3199, -9728, 1280, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3685, 2867, -1663, 3202, 9510, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5441, 2867, -1829, 0, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5763, 2867, -942, 9166, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5936, 2867, -1052, 9166, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5269, 2867, -1719, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6344, 2867, -1555, 7122, -8208, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5826, 2867, -1225, 7122, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6454, 2867, -1382, 9166, -8208, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5119, 2867, -47, 13254, 10186, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5441, 2867, -494, 11210, 5076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5009, 2867, -219, 11210, 10186, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5551, 2867, -322, 13254, 5076, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07017760: # 0x07017760 - 0x07017840
vertex -3685, 3379, -1663, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4095, 2355, -1458, 4538, 10186, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4095, 3379, -1458, 4538, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3685, 2867, -1663, 3202, 9510, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4095, 2867, -1458, 7122, 7160, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 2867, -2175, 7122, -6164, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 2867, -2687, 2810, -8908, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4709, 2867, -3199, -4242, -7340, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3685, 2867, -3199, -9728, 1280, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 3379, -2175, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 2355, -2687, 5078, 10186, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 3379, -2687, 5078, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 2355, -2175, 0, 10186, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3685, 2355, -1663, 0, 10186, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07017840: # 0x07017840 - 0x07017900
vertex -5221, 2355, -2687, 10216, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 2355, -2175, 7382, -3262, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4095, 2355, -1458, -5938, -2978, 0xFF, 0xFF, 0xFF, 0xFF
vertex -3685, 2355, -1663, -8206, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4709, 1536, 384, -4118, -12296, 0xFF, 0xFF, 0xFF, 0xFF
vertex -4582, 1536, 77, -7184, -13566, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5411, 1536, 77, -7184, -5292, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5221, 1536, 384, -4118, -7186, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5718, 1536, 691, -1052, -2226, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5733, 1536, 1408, 6100, -2076, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6655, 1536, 691, -1052, 7120, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6962, 1536, 1408, 6100, 10186, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_07017900: # 0x07017900 - 0x070179F0
vertex -7535, 1331, -1132, 3674, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7156, 1331, -848, -1052, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7156, 1229, -848, -1052, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6046, 1331, -1653, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6770, 1126, -2687, -11608, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6046, 1126, -1653, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6770, 1331, -2687, -11608, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5211, 1331, -2687, 10290, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5211, 1331, -1653, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5211, 1126, -1653, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5211, 1126, -2687, 10290, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5211, 1331, -1653, 8300, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6046, 1331, -1653, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6046, 1126, -1653, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5211, 1126, -1653, 8300, 990, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_vertex_070179F0: # 0x070179F0 - 0x07017AA0
vertex -7156, 1331, -848, 5316, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7261, 1229, -323, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7156, 1229, -848, 5316, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7535, 1331, -1132, 3674, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7156, 1229, -848, -1052, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7535, 1229, -1132, 3674, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7687, 1331, -261, -3306, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7687, 1229, -261, -3306, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7261, 1229, -323, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7261, 1331, -323, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7261, 1331, -323, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
hmc_seg7_dl_07017AA0: # 0x07017AA0 - 0x07017C08
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09001000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex hmc_seg7_vertex_070174B0, 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, 14, 12, 0x0
gsSPVertex hmc_seg7_vertex_070175A0, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 7, 10, 11, 0x0, 7, 11, 12, 0x0
gsSP1Triangle 0, 13, 1, 0x0
gsSPVertex hmc_seg7_vertex_07017680, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 5, 0x0
gsSP2Triangles 7, 5, 9, 0x0, 10, 11, 12, 0x0
gsSP1Triangle 10, 13, 11, 0x0
gsSPVertex hmc_seg7_vertex_07017760, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 6, 7, 8, 0x0
gsSP2Triangles 9, 10, 11, 0x0, 9, 12, 10, 0x0
gsSP1Triangle 0, 13, 1, 0x0
gsSPVertex hmc_seg7_vertex_07017840, 12, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
gsSP2Triangles 7, 6, 8, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 9, 8, 10, 0x0, 9, 10, 11, 0x0
gsSPEndDisplayList
hmc_seg7_dl_07017C08: # 0x07017C08 - 0x07017C98
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09003000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex hmc_seg7_vertex_07017900, 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_070179F0, 11, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 9, 6, 8, 0x0
gsSP1Triangle 0, 10, 1, 0x0
gsSPEndDisplayList
glabel hmc_seg7_dl_07017C98 # 0x07017C98 - 0x07017D70
gsDPPipeSync
gsDPSetCycleType G_CYC_2CYCLE
gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2
gsDPSetDepthSource G_ZS_PIXEL
gsDPSetFogColor 0, 0, 0, 255
gsSPFogPosition 960, 1000
gsSPSetGeometryMode G_FOG
gsDPSetCombineMode G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_COMBINED, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_COMBINED
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_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 hmc_seg7_dl_07017AA0
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_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPDisplayList hmc_seg7_dl_07017C08
gsSPTexture -1, -1, 0, 0, 0
gsDPPipeSync
gsDPSetCycleType G_CYC_1CYCLE
gsDPSetRenderMode G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2
gsSPClearGeometryMode G_FOG
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 | G_CULL_BACK
gsSPEndDisplayList