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.
 
 
 
 
 

193 lines
10 KiB

ssl_seg7_light_070222A0: # 0x070222A0 - 0x070222A8
.byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
ssl_seg7_light_070222A8: # 0x070222A8 - 0x070222B8
.byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
ssl_seg7_vertex_070222B8: # 0x070222B8 - 0x070223B8
vertex -306, 0, 0, 486, 912, 0x81, 0x00, 0x00, 0xFF
vertex -306, 78, -188, 172, 0, 0xB7, 0x1A, 0x9D, 0xFF
vertex -306, -77, -188, 798, 0, 0xB7, 0xCC, 0xA7, 0xFF
vertex -306, -77, -188, 172, 0, 0xB7, 0xCC, 0xA7, 0xFF
vertex -306, -188, -77, 798, 0, 0xB7, 0x9D, 0xE6, 0xFF
vertex -306, 78, 189, 172, 0, 0xB7, 0x34, 0x59, 0xFF
vertex -306, 189, 78, 798, 0, 0xB7, 0x63, 0x1A, 0xFF
vertex -306, 189, 78, 172, 0, 0xB7, 0x63, 0x1A, 0xFF
vertex -306, 189, -77, 798, 0, 0xB7, 0x59, 0xCC, 0xFF
vertex -306, 189, -77, 172, 0, 0xB7, 0x59, 0xCC, 0xFF
vertex -306, 78, -188, 798, 0, 0xB7, 0x1A, 0x9D, 0xFF
vertex 307, 78, 189, 798, 0, 0x49, 0x1A, 0x63, 0xFF
vertex 307, -77, 189, 172, 0, 0x49, 0xCC, 0x59, 0xFF
vertex 307, 0, 0, 486, 912, 0x7F, 0x00, 0x00, 0xFF
vertex -306, -188, -77, 172, 0, 0xB7, 0x9D, 0xE6, 0xFF
vertex -306, -188, 78, 798, 0, 0xB7, 0xA7, 0x34, 0xFF
ssl_seg7_vertex_070223B8: # 0x070223B8 - 0x070224B8
vertex -306, 0, 0, 486, 912, 0x81, 0x00, 0x00, 0xFF
vertex -306, -188, 78, 172, 0, 0xB7, 0xA7, 0x34, 0xFF
vertex -306, -77, 189, 798, 0, 0xB7, 0xE6, 0x63, 0xFF
vertex -306, -77, 189, 172, 0, 0xB7, 0xE6, 0x63, 0xFF
vertex -306, 78, 189, 798, 0, 0xB7, 0x34, 0x59, 0xFF
vertex 307, 189, 78, 798, 0, 0x49, 0x59, 0x34, 0xFF
vertex 307, 78, 189, 172, 0, 0x49, 0x1A, 0x63, 0xFF
vertex 307, 0, 0, 486, 912, 0x7F, 0x00, 0x00, 0xFF
vertex 307, 78, -188, 798, 0, 0x49, 0x34, 0xA7, 0xFF
vertex 307, 189, -77, 172, 0, 0x49, 0x63, 0xE6, 0xFF
vertex 307, -77, 189, 798, 0, 0x49, 0xCC, 0x59, 0xFF
vertex 307, -188, 78, 172, 0, 0x49, 0x9D, 0x1A, 0xFF
vertex 307, -188, 78, 798, 0, 0x49, 0x9D, 0x1A, 0xFF
vertex 307, -188, -77, 172, 0, 0x49, 0xA7, 0xCC, 0xFF
vertex 307, -188, -77, 798, 0, 0x49, 0xA7, 0xCC, 0xFF
vertex 307, -77, -188, 172, 0, 0x49, 0xE6, 0x9D, 0xFF
ssl_seg7_vertex_070224B8: # 0x070224B8 - 0x07022508
vertex 307, -77, -188, 798, 0, 0x49, 0xE6, 0x9D, 0xFF
vertex 307, 78, -188, 172, 0, 0x49, 0x34, 0xA7, 0xFF
vertex 307, 0, 0, 486, 912, 0x7F, 0x00, 0x00, 0xFF
vertex 307, 189, -77, 798, 0, 0x49, 0x63, 0xE6, 0xFF
vertex 307, 189, 78, 172, 0, 0x49, 0x59, 0x34, 0xFF
ssl_seg7_vertex_07022508: # 0x07022508 - 0x070225F8
vertex -306, -77, -188, 990, 2012, 0xB7, 0xCC, 0xA7, 0xFF
vertex 307, -77, -188, 990, -4120, 0x49, 0xE6, 0x9D, 0xFF
vertex 307, -188, -77, 0, -4120, 0x49, 0xA7, 0xCC, 0xFF
vertex -306, -77, 189, 990, 2012, 0xB7, 0xE6, 0x63, 0xFF
vertex 307, -77, 189, 990, -4120, 0x49, 0xCC, 0x59, 0xFF
vertex 307, 78, 189, 0, -4120, 0x49, 0x1A, 0x63, 0xFF
vertex -306, 78, 189, 0, 2012, 0xB7, 0x34, 0x59, 0xFF
vertex -306, -188, 78, 990, 2012, 0xB7, 0xA7, 0x34, 0xFF
vertex 307, -77, 189, 0, -4120, 0x49, 0xCC, 0x59, 0xFF
vertex -306, -77, 189, 0, 2012, 0xB7, 0xE6, 0x63, 0xFF
vertex 307, -188, 78, 990, -4120, 0x49, 0x9D, 0x1A, 0xFF
vertex -306, -188, -77, 990, 2012, 0xB7, 0x9D, 0xE6, 0xFF
vertex 307, -188, 78, 0, -4120, 0x49, 0x9D, 0x1A, 0xFF
vertex -306, -188, 78, 0, 2012, 0xB7, 0xA7, 0x34, 0xFF
vertex 307, -188, -77, 990, -4120, 0x49, 0xA7, 0xCC, 0xFF
ssl_seg7_vertex_070225F8: # 0x070225F8 - 0x070226E8
vertex -306, 189, 78, 990, 2012, 0xB7, 0x63, 0x1A, 0xFF
vertex 307, 189, 78, 990, -4120, 0x49, 0x59, 0x34, 0xFF
vertex 307, 189, -77, 0, -4120, 0x49, 0x63, 0xE6, 0xFF
vertex -306, -77, -188, 990, 2012, 0xB7, 0xCC, 0xA7, 0xFF
vertex 307, -188, -77, 0, -4120, 0x49, 0xA7, 0xCC, 0xFF
vertex -306, -188, -77, 0, 2012, 0xB7, 0x9D, 0xE6, 0xFF
vertex -306, 78, -188, 990, 2012, 0xB7, 0x1A, 0x9D, 0xFF
vertex 307, -77, -188, 0, -4120, 0x49, 0xE6, 0x9D, 0xFF
vertex -306, -77, -188, 0, 2012, 0xB7, 0xCC, 0xA7, 0xFF
vertex 307, 78, -188, 990, -4120, 0x49, 0x34, 0xA7, 0xFF
vertex -306, 189, -77, 990, 2012, 0xB7, 0x59, 0xCC, 0xFF
vertex 307, 78, -188, 0, -4120, 0x49, 0x34, 0xA7, 0xFF
vertex -306, 78, -188, 0, 2012, 0xB7, 0x1A, 0x9D, 0xFF
vertex 307, 189, -77, 990, -4120, 0x49, 0x63, 0xE6, 0xFF
vertex -306, 189, -77, 0, 2012, 0xB7, 0x59, 0xCC, 0xFF
ssl_seg7_vertex_070226E8: # 0x070226E8 - 0x07022728
vertex -306, 78, 189, 990, 2012, 0xB7, 0x34, 0x59, 0xFF
vertex 307, 78, 189, 990, -4120, 0x49, 0x1A, 0x63, 0xFF
vertex 307, 189, 78, 0, -4120, 0x49, 0x59, 0x34, 0xFF
vertex -306, 189, 78, 0, 2012, 0xB7, 0x63, 0x1A, 0xFF
ssl_seg7_dl_07022728: # 0x07022728 - 0x070227F0
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09002000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight ssl_seg7_light_070222A8, 1
gsSPLight ssl_seg7_light_070222A0, 2
gsSPVertex ssl_seg7_vertex_070222B8, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
gsSP2Triangles 0, 5, 6, 0x0, 0, 7, 8, 0x0
gsSP2Triangles 0, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 0, 14, 15, 0x0
gsSPVertex ssl_seg7_vertex_070223B8, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
gsSP2Triangles 5, 6, 7, 0x0, 8, 9, 7, 0x0
gsSP2Triangles 10, 11, 7, 0x0, 12, 13, 7, 0x0
gsSP1Triangle 14, 15, 7, 0x0
gsSPVertex ssl_seg7_vertex_070224B8, 5, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 2, 0x0
gsSPEndDisplayList
ssl_seg7_dl_070227F0: # 0x070227F0 - 0x070228A8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_07002800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
gsSPVertex ssl_seg7_vertex_07022508, 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 ssl_seg7_vertex_070225F8, 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 ssl_seg7_vertex_070226E8, 4, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSPEndDisplayList
glabel ssl_seg7_dl_070228A8 # 0x070228A8 - 0x07022970
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
gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
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
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 ssl_seg7_dl_07022728
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 252
gsSPDisplayList ssl_seg7_dl_070227F0
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
gsSPEndDisplayList
ssl_seg7_vertex_07022970: # 0x07022970 - 0x070229B0
vertex -183, 82, 193, 0, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 184, 82, 193, 990, 990, 0xFF, 0xFF, 0xFF, 0xFF
vertex 184, 193, 82, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -183, 193, 82, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
ssl_seg7_dl_070229B0: # 0x070229B0 - 0x070229E8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_07003800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex ssl_seg7_vertex_07022970, 4, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSPEndDisplayList
glabel ssl_seg7_dl_070229E8 # 0x070229E8 - 0x07022AA0
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
gsSPFogFactor 0x0E49, 0xF2B7 # This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0E49F2B7
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
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 ssl_seg7_dl_070229B0
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
gsSPEndDisplayList