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.
 
 
 
 
 

129 lines
7.2 KiB

wf_seg7_light_07005F58: # 0x07005F58 - 0x07005F60
.byte 0x66, 0x66, 0x66, 0x00, 0x66, 0x66, 0x66, 0x00
wf_seg7_light_07005F60: # 0x07005F60 - 0x07005F70
.byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
wf_seg7_vertex_07005F70: # 0x07005F70 - 0x07006060
vertex 179, 458, 900, 0, 2008, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 458, 520, 0, 3526, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 458, 520, 1398, 3526, 0x00, 0x7F, 0x00, 0xFF
vertex 179, -88, -239, 0, 6558, 0x00, 0x7E, 0x02, 0xFF
vertex 179, -79, -620, 0, 8080, 0x00, 0x7E, 0x02, 0xFF
vertex -178, -88, -239, 1398, 6558, 0x00, 0x7E, 0x02, 0xFF
vertex -178, -79, -620, 1398, 8080, 0x00, 0x7E, 0x02, 0xFF
vertex 179, 640, 1280, 0, 494, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 640, 900, 1398, 2010, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 640, 1280, 1398, 494, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 640, 900, 0, 2010, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 640, 900, 70, 262, 0x00, 0x00, 0x81, 0xFF
vertex -178, 458, 900, 1502, 990, 0x00, 0x00, 0x81, 0xFF
vertex -178, 640, 900, 1502, 262, 0x00, 0x00, 0x81, 0xFF
vertex 179, 458, 900, 70, 990, 0x00, 0x00, 0x81, 0xFF
wf_seg7_vertex_07006060: # 0x07006060 - 0x07006150
vertex 179, 275, 140, 70, 1708, 0x00, 0x00, 0x81, 0xFF
vertex 179, 93, 140, 70, 2436, 0x00, 0x00, 0x81, 0xFF
vertex -178, 93, 140, 1502, 2436, 0x00, 0x00, 0x81, 0xFF
vertex 179, 458, 900, 0, 2008, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 458, 520, 1398, 3526, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 458, 900, 1398, 2008, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 458, 520, 70, 986, 0x00, 0x00, 0x81, 0xFF
vertex -178, 275, 520, 1502, 1712, 0x00, 0x00, 0x81, 0xFF
vertex -178, 458, 520, 1502, 986, 0x00, 0x00, 0x81, 0xFF
vertex 179, 275, 520, 70, 1712, 0x00, 0x00, 0x81, 0xFF
vertex 179, 275, 520, 0, 3524, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 275, 140, 1398, 5044, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 275, 520, 1398, 3524, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 275, 140, 0, 5044, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 275, 140, 1502, 1708, 0x00, 0x00, 0x81, 0xFF
wf_seg7_vertex_07006150: # 0x07006150 - 0x07006250
vertex 179, 93, 140, 0, 5042, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 93, -239, 1398, 6560, 0x00, 0x7F, 0x00, 0xFF
vertex -178, 93, 140, 1398, 5042, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 93, -239, 0, 6560, 0x00, 0x7F, 0x00, 0xFF
vertex 179, 93, -239, 70, 2432, 0x00, 0x00, 0x81, 0xFF
vertex -178, -88, -239, 1502, 3160, 0x00, 0x00, 0x81, 0xFF
vertex -178, 93, -239, 1502, 2432, 0x00, 0x00, 0x81, 0xFF
vertex 179, -88, -239, 70, 3160, 0x00, 0x00, 0x81, 0xFF
vertex 179, 275, 520, 1980, 1626, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 458, 520, 1982, 900, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 458, 900, 462, 900, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 640, 900, 464, 172, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 640, 1280, -1052, 172, 0x7F, 0x00, 0x00, 0xFF
vertex -178, -587, -1279, 1398, 2234, 0x00, 0x68, 0xB9, 0xFF
vertex -178, -267, -810, 1398, 0, 0x00, 0x68, 0xB9, 0xFF
vertex 179, -267, -810, 0, 0, 0x00, 0x68, 0xB9, 0xFF
wf_seg7_vertex_07006250: # 0x07006250 - 0x07006330
vertex 179, 93, 140, 3496, 2354, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 275, 140, 3498, 1626, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 275, 520, 1980, 1626, 0x7F, 0x00, 0x00, 0xFF
vertex 179, -88, -239, 5012, 3082, 0x7F, 0x00, 0x00, 0xFF
vertex 179, 93, -239, 5014, 2354, 0x7F, 0x00, 0x00, 0xFF
vertex 179, -79, -620, 6534, 3046, 0x7F, 0x00, 0x00, 0xFF
vertex 179, -271, -620, 6534, 3812, 0x7F, 0x00, 0x00, 0xFF
vertex 179, -271, -620, 70, 3886, 0x00, 0x00, 0x81, 0xFF
vertex -178, -271, -620, 1502, 3884, 0x00, 0x00, 0x81, 0xFF
vertex 179, -79, -620, 70, 3118, 0x00, 0x00, 0x81, 0xFF
vertex -178, -79, -620, 1502, 3118, 0x00, 0x00, 0x81, 0xFF
vertex 179, -588, -1279, 0, 2236, 0x00, 0x68, 0xB9, 0xFF
vertex -178, -587, -1279, 1398, 2234, 0x00, 0x68, 0xB9, 0xFF
vertex 179, -267, -810, 0, 0, 0x00, 0x68, 0xB9, 0xFF
wf_seg7_vertex_07006330: # 0x07006330 - 0x070063A0
vertex 179, -271, -620, 0, 8080, 0x00, 0x7E, 0x02, 0xFF
vertex 179, -267, -810, 0, 8840, 0x00, 0x7E, 0x02, 0xFF
vertex -178, -267, -810, 1398, 8840, 0x00, 0x7E, 0x02, 0xFF
vertex 179, -267, -810, 7294, 3794, 0x7F, 0x00, 0x00, 0xFF
vertex 179, -271, -620, 6534, 3812, 0x7F, 0x00, 0x00, 0xFF
vertex 179, -588, -1279, 9166, 5076, 0x7F, 0x00, 0x00, 0xFF
vertex -178, -271, -620, 1398, 8080, 0x00, 0x7E, 0x02, 0xFF
wf_seg7_dl_070063A0: # 0x070063A0 - 0x070064E8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_09008000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight wf_seg7_light_07005F60, 1
gsSPLight wf_seg7_light_07005F58, 2
gsSPVertex wf_seg7_vertex_07005F70, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 4, 6, 5, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 14, 12, 0x0
gsSPVertex wf_seg7_vertex_07006060, 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, 13, 11, 0x0
gsSP1Triangle 0, 2, 14, 0x0
gsSPVertex wf_seg7_vertex_07006150, 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, 10, 11, 12, 0x0
gsSP1Triangle 13, 14, 15, 0x0
gsSPVertex wf_seg7_vertex_07006250, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 0, 0x0
gsSP2Triangles 5, 3, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 8, 10, 9, 0x0, 11, 12, 13, 0x0
gsSPVertex wf_seg7_vertex_07006330, 7, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP1Triangle 0, 2, 6, 0x0
gsSPEndDisplayList
glabel wf_seg7_dl_070064E8 # 0x070064E8 - 0x07006558
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_SHADING_SMOOTH
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 wf_seg7_dl_070063A0
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_SHADING_SMOOTH
gsSPEndDisplayList