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.
 
 
 
 
 

165 lines
9.0 KiB

pss_seg7_vertex_0700A8B8: # 0x0700A8B8 - 0x0700A978
vertex -5128, -2129, 4118, -6282, -1012, 0x8C, 0x8C, 0x8C, 0xFF
vertex -7586, -2129, 6525, -9432, -2376, 0x8C, 0x8C, 0x8C, 0xFF
vertex -7586, -2129, 4118, -8572, -134, 0x8C, 0x8C, 0x8C, 0xFF
vertex -5128, -2129, 6525, -7142, -3254, 0x8C, 0x8C, 0x8C, 0xFF
vertex 6144, 7680, -4095, 0, 990, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3072, 7680, -7167, 2238, 3258, 0x8C, 0x8C, 0x8C, 0xFF
vertex 6144, 7680, -7167, 2238, 990, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3072, 7680, -4095, 0, 3258, 0x8C, 0x8C, 0x8C, 0xFF
vertex 6144, 6144, -7167, -2880, 9970, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 6144, -4095, -1254, 5950, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 6144, -4095, -4078, 7146, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 6144, -7167, -56, 8772, 0xFF, 0xFF, 0xFF, 0xFF
pss_seg7_vertex_0700A978: # 0x0700A978 - 0x0700AA78
vertex 3226, 6144, -6245, 8552, 1002, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3072, 6144, -6245, 8552, 1002, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3072, 7035, -6245, 8552, -2554, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3226, 7035, -6245, 8552, -2554, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3072, 7035, -5017, 3648, -2554, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3226, 7035, -5017, 3648, -2554, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3072, 6144, -5017, 3648, 1002, 0x8C, 0x8C, 0x8C, 0xFF
vertex 3226, 6144, -5017, 3648, 1002, 0x8C, 0x8C, 0x8C, 0xFF
vertex -5128, -2129, 4118, 9780, -8822, 0xAA, 0xAA, 0xAA, 0xFF
vertex -6920, -3460, 4118, 2626, -3506, 0xAA, 0xAA, 0xAA, 0xFF
vertex -5794, -3460, 4118, 7122, -3506, 0xAA, 0xAA, 0xAA, 0xFF
vertex -5794, -4587, 4118, 7122, 990, 0xAA, 0xAA, 0xAA, 0xFF
vertex -5128, -4587, 4118, 9780, 990, 0xAA, 0xAA, 0xAA, 0xFF
vertex -7586, -2129, 4118, 0, -8822, 0xAA, 0xAA, 0xAA, 0xFF
vertex -7586, -4587, 4118, 0, 990, 0xAA, 0xAA, 0xAA, 0xFF
vertex -6920, -4587, 4118, 2626, 990, 0xAA, 0xAA, 0xAA, 0xFF
pss_seg7_vertex_0700AA78: # 0x0700AA78 - 0x0700AB68
vertex 3072, 6144, -6245, 8552, 1002, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 6144, -7167, 12232, 1002, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 7680, -7167, 12232, -5128, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 7035, -6245, 8552, -2554, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 7680, -4095, 0, -5128, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 6144, -4095, 0, 1002, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 7035, -5017, 3648, -2554, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3072, 6144, -5017, 3648, 1002, 0xAA, 0xAA, 0xAA, 0xFF
vertex 3226, 6656, -5119, 4056, -1040, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6656, -6143, 8144, -1040, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 7035, -6245, 8552, -2554, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -4587, 4118, 172, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -4587, 6525, 9780, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -2129, 6525, 9780, -8822, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -2129, 4118, 172, -8822, 0xFF, 0xFF, 0xFF, 0xFF
pss_seg7_vertex_0700AB68: # 0x0700AB68 - 0x0700AC58
vertex -7586, -2129, 6525, 0, -8822, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7586, -4587, 4118, 9574, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7586, -2129, 4118, 9574, -8822, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7586, -4587, 6525, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6144, -6143, 8144, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 7035, -6245, 8552, -2554, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6656, -6143, 8144, -1040, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6144, -6245, 8552, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 6144, -4095, 0, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 7680, -4095, 12232, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 7680, -4095, 0, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6144, -5017, 3648, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6144, -5119, 4056, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 7035, -5017, 3648, -2554, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3226, 6656, -5119, 4056, -1040, 0xFF, 0xFF, 0xFF, 0xFF
pss_seg7_vertex_0700AC58: # 0x0700AC58 - 0x0700AD48
vertex 6144, 7680, -7167, 0, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 6144, -4095, 12232, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 7680, -4095, 12232, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 6144, -7167, 0, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 6144, -4095, 0, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 6144, -4095, 12232, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 7680, -4095, 12232, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 7680, -7167, 12232, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 7680, -7167, 0, -5128, 0xFF, 0xFF, 0xFF, 0xFF
vertex 3072, 6144, -7167, 0, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex 6144, 6144, -7167, 12232, 1002, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7586, -2129, 6525, 9348, -8822, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -2129, 6525, -460, -8822, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -4587, 6525, -460, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7586, -4587, 6525, 9348, 990, 0xFF, 0xFF, 0xFF, 0xFF
pss_seg7_vertex_0700AD48: # 0x0700AD48 - 0x0700ADA8
vertex -7586, -4587, 6525, 5078, -3950, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -4587, 6525, -3096, -3950, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5794, -4587, 4118, -882, 4054, 0xFF, 0xFF, 0xFF, 0xFF
vertex -5128, -4587, 4118, -3096, 4054, 0xFF, 0xFF, 0xFF, 0xFF
vertex -6920, -4587, 4118, 2864, 4054, 0xFF, 0xFF, 0xFF, 0xFF
vertex -7586, -4587, 4118, 5078, 4054, 0xFF, 0xFF, 0xFF, 0xFF
pss_seg7_dl_0700ADA8: # 0x0700ADA8 - 0x0700AE00
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_0900C000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex pss_seg7_vertex_0700A8B8, 12, 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, 11, 9, 0x0
gsSPEndDisplayList
pss_seg7_dl_0700AE00: # 0x0700AE00 - 0x0700AF60
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09000000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex pss_seg7_vertex_0700A978, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 3, 2, 0x0, 4, 5, 3, 0x0
gsSP2Triangles 6, 5, 4, 0x0, 6, 7, 5, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 11, 12, 0x0
gsSP2Triangles 8, 13, 9, 0x0, 8, 10, 11, 0x0
gsSP2Triangles 9, 13, 14, 0x0, 9, 14, 15, 0x0
gsSPVertex pss_seg7_vertex_0700AA78, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 3, 2, 4, 0x0, 5, 6, 4, 0x0
gsSP2Triangles 5, 7, 6, 0x0, 3, 4, 6, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPVertex pss_seg7_vertex_0700AB68, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 7, 5, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP2Triangles 12, 14, 13, 0x0, 14, 5, 13, 0x0
gsSPVertex pss_seg7_vertex_0700AC58, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 13, 14, 0x0
gsSPEndDisplayList
pss_seg7_dl_0700AF60: # 0x0700AF60 - 0x0700AFA8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09007000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex pss_seg7_vertex_0700AD48, 6, 0
gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
gsSP2Triangles 0, 2, 4, 0x0, 5, 0, 4, 0x0
gsSPEndDisplayList
glabel pss_seg7_dl_0700AFA8 # 0x0700AFA8 - 0x0700B070
gsDPPipeSync
gsDPSetCycleType G_CYC_2CYCLE
gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
gsDPSetDepthSource G_ZS_PIXEL
gsDPSetFogColor 0, 0, 0, 255
gsSPFogPosition 980, 1000
gsSPSetGeometryMode G_FOG
gsDPSetCombineMode G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE, 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
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 pss_seg7_dl_0700ADA8
gsSPDisplayList pss_seg7_dl_0700AE00
gsSPDisplayList pss_seg7_dl_0700AF60
gsSPTexture -1, -1, 0, 0, 0
gsDPPipeSync
gsDPSetCycleType G_CYC_1CYCLE
gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, 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
gsSPEndDisplayList