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.
 
 
 
 
 

115 lines
6.2 KiB

ttm_seg7_light_07011DE8: # 0x07011DE8 - 0x07011DF0
.byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
ttm_seg7_light_07011DF0: # 0x07011DF0 - 0x07011E00
.byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
ttm_seg7_vertex_07011E00: # 0x07011E00 - 0x07011F00
vertex -1104, 237, -97, 674, -100, 0x87, 0x22, 0xF2, 0xFF
vertex -1104, 98, -235, 1018, 246, 0xDF, 0x2F, 0x8F, 0xFF
vertex -1104, -97, -236, 1018, 734, 0xA3, 0xE0, 0xB1, 0xFF
vertex 1105, 237, -96, 674, -100, 0x6C, 0x3D, 0xE7, 0xFF
vertex 1106, -235, -97, 674, 1078, 0x5D, 0xB1, 0xDF, 0xFF
vertex 1106, -97, -236, 1020, 734, 0x3C, 0xD6, 0x99, 0xFF
vertex 1105, 98, -235, 1020, 246, 0x3C, 0x2B, 0x99, 0xFF
vertex 1105, 236, 98, 186, -100, 0x3C, 0x67, 0x2A, 0xFF
vertex 1105, 98, 237, -158, 246, 0x3C, 0x2A, 0x67, 0xFF
vertex 1105, -97, 236, -158, 734, 0x5D, 0xE0, 0x4F, 0xFF
vertex 1106, -236, 98, 186, 1078, 0x3C, 0x99, 0x2A, 0xFF
vertex -1104, -97, 236, -160, 734, 0xC4, 0xD6, 0x67, 0xFF
vertex -1104, 98, 237, -160, 246, 0xA3, 0x20, 0x4F, 0xFF
vertex -1104, -236, 97, 184, 1078, 0xA3, 0xB1, 0x20, 0xFF
vertex -1104, -235, -97, 674, 1078, 0xC4, 0x99, 0xD6, 0xFF
vertex -1104, 236, 98, 184, -100, 0xDF, 0x71, 0x2F, 0xFF
ttm_seg7_vertex_07011F00: # 0x07011F00 - 0x07011FF0
vertex -1104, -97, 236, 4380, 338, 0xC4, 0xD6, 0x67, 0xFF
vertex 1105, 98, 237, 0, 990, 0x3C, 0x2A, 0x67, 0xFF
vertex -1104, 98, 237, 4380, 990, 0xA3, 0x20, 0x4F, 0xFF
vertex -1104, 98, -235, 4380, 990, 0xDF, 0x2F, 0x8F, 0xFF
vertex 1106, -97, -236, 0, 338, 0x3C, 0xD6, 0x99, 0xFF
vertex -1104, -97, -236, 4380, 338, 0xA3, 0xE0, 0xB1, 0xFF
vertex 1105, 98, -235, 0, 990, 0x3C, 0x2B, 0x99, 0xFF
vertex -1104, 236, 98, 4380, 990, 0xDF, 0x71, 0x2F, 0xFF
vertex 1105, 237, -96, 0, 338, 0x6C, 0x3D, 0xE7, 0xFF
vertex -1104, 237, -97, 4380, 338, 0x87, 0x22, 0xF2, 0xFF
vertex 1105, 236, 98, 0, 990, 0x3C, 0x67, 0x2A, 0xFF
vertex 1105, 98, 237, -30, 338, 0x3C, 0x2A, 0x67, 0xFF
vertex 1105, 236, 98, -30, 990, 0x3C, 0x67, 0x2A, 0xFF
vertex -1104, 236, 98, 4380, 992, 0xDF, 0x71, 0x2F, 0xFF
vertex -1104, 98, 237, 4380, 342, 0xA3, 0x20, 0x4F, 0xFF
ttm_seg7_vertex_07011FF0: # 0x07011FF0 - 0x070120E0
vertex 1105, 237, -96, 0, 990, 0x6C, 0x3D, 0xE7, 0xFF
vertex -1104, 98, -235, 4380, 338, 0xDF, 0x2F, 0x8F, 0xFF
vertex -1104, 237, -97, 4380, 990, 0x87, 0x22, 0xF2, 0xFF
vertex -1104, -97, 236, 4380, 338, 0xC4, 0xD6, 0x67, 0xFF
vertex 1105, -97, 236, 0, 338, 0x5D, 0xE0, 0x4F, 0xFF
vertex 1105, 98, 237, 0, 990, 0x3C, 0x2A, 0x67, 0xFF
vertex 1106, -236, 98, 0, 338, 0x3C, 0x99, 0x2A, 0xFF
vertex 1105, -97, 236, 0, 990, 0x5D, 0xE0, 0x4F, 0xFF
vertex -1104, -97, 236, 4380, 990, 0xC4, 0xD6, 0x67, 0xFF
vertex -1104, -236, 97, 4380, 338, 0xA3, 0xB1, 0x20, 0xFF
vertex 1106, -235, -97, 0, 338, 0x5D, 0xB1, 0xDF, 0xFF
vertex 1106, -236, 98, 0, 990, 0x3C, 0x99, 0x2A, 0xFF
vertex -1104, -235, -97, 4380, 338, 0xC4, 0x99, 0xD6, 0xFF
vertex -1104, -236, 97, 4380, 990, 0xA3, 0xB1, 0x20, 0xFF
vertex 1105, 98, -235, 0, 338, 0x3C, 0x2B, 0x99, 0xFF
ttm_seg7_vertex_070120E0: # 0x070120E0 - 0x07012120
vertex -1104, -235, -97, 4382, 342, 0xC4, 0x99, 0xD6, 0xFF
vertex 1106, -97, -236, 0, 990, 0x3C, 0xD6, 0x99, 0xFF
vertex 1106, -235, -97, 0, 338, 0x5D, 0xB1, 0xDF, 0xFF
vertex -1104, -97, -236, 4382, 992, 0xA3, 0xE0, 0xB1, 0xFF
ttm_seg7_dl_07012120: # 0x07012120 - 0x070121B8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07002000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight ttm_seg7_light_07011DF0, 1
gsSPLight ttm_seg7_light_07011DE8, 2
gsSPVertex ttm_seg7_vertex_07011E00, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 3, 7, 8, 0x0
gsSP2Triangles 3, 8, 9, 0x0, 3, 9, 10, 0x0
gsSP2Triangles 3, 10, 4, 0x0, 0, 11, 12, 0x0
gsSP2Triangles 0, 13, 11, 0x0, 0, 14, 13, 0x0
gsSP2Triangles 0, 2, 14, 0x0, 0, 12, 15, 0x0
gsSPEndDisplayList
ttm_seg7_dl_070121B8: # 0x070121B8 - 0x07012270
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09005000
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPVertex ttm_seg7_vertex_07011F00, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 14, 11, 13, 0x0
gsSPVertex ttm_seg7_vertex_07011FF0, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 9, 6, 8, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 11, 13, 12, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex ttm_seg7_vertex_070120E0, 4, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSPEndDisplayList
glabel ttm_seg7_dl_07012270 # 0x07012270 - 0x070122F0
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
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 ttm_seg7_dl_07012120
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 ttm_seg7_dl_070121B8
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
gsSPEndDisplayList