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.
 
 
 
 
 

184 lines
10 KiB

bits_seg7_light_07012DB0: # 0x07012DB0 - 0x07012DB8
.byte 0x58, 0x5F, 0x7D, 0x00, 0x58, 0x5F, 0x7D, 0x00
bits_seg7_light_07012DB8: # 0x07012DB8 - 0x07012DC8
.byte 0xB1, 0xBF, 0xFA, 0x00, 0xB1, 0xBF, 0xFA, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
bits_seg7_light_07012DC8: # 0x07012DC8 - 0x07012DD0
.byte 0x4C, 0x46, 0x6C, 0x00, 0x4C, 0x46, 0x6C, 0x00
bits_seg7_light_07012DD0: # 0x07012DD0 - 0x07012DE0
.byte 0x98, 0x8C, 0xD8, 0x00, 0x98, 0x8C, 0xD8, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
bits_seg7_light_07012DE0: # 0x07012DE0 - 0x07012DE8
.byte 0x59, 0x32, 0x7F, 0x00, 0x59, 0x32, 0x7F, 0x00
bits_seg7_light_07012DE8: # 0x07012DE8 - 0x07012DF8
.byte 0xB2, 0x65, 0xFF, 0x00, 0xB2, 0x65, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
bits_seg7_vertex_07012DF8: # 0x07012DF8 - 0x07012E78
vertex -349, 307, -767, 2524, 3542, 0x00, 0x7F, 0x00, 0xFF
vertex -759, 307, 358, 0, 2350, 0x00, 0x7F, 0x00, 0xFF
vertex -349, 307, 768, 0, 990, 0x00, 0x7F, 0x00, 0xFF
vertex 367, 307, 768, 1160, -202, 0x00, 0x7F, 0x00, 0xFF
vertex 776, 307, 358, 2522, -202, 0x00, 0x7F, 0x00, 0xFF
vertex 776, 307, -357, 3716, 990, 0x00, 0x7F, 0x00, 0xFF
vertex 367, 307, -767, 3716, 2350, 0x00, 0x7F, 0x00, 0xFF
vertex -759, 307, -357, 1160, 3542, 0x00, 0x7F, 0x00, 0xFF
bits_seg7_vertex_07012E78: # 0x07012E78 - 0x07012F58
vertex -759, 102, 358, 0, 2350, 0xA7, 0x00, 0x59, 0xFF
vertex -349, 307, 768, 0, 990, 0xA7, 0x00, 0x59, 0xFF
vertex -759, 307, 358, 0, 2350, 0xA7, 0x00, 0x59, 0xFF
vertex 367, 102, -767, 3716, 2350, 0x00, 0x00, 0x81, 0xFF
vertex -349, 102, -767, 2524, 3542, 0x00, 0x00, 0x81, 0xFF
vertex -349, 307, -767, 2524, 3542, 0x00, 0x00, 0x81, 0xFF
vertex 776, 102, -357, 3716, 990, 0x59, 0x00, 0xA7, 0xFF
vertex 367, 102, -767, 3716, 2350, 0x59, 0x00, 0xA7, 0xFF
vertex 367, 307, -767, 3716, 2350, 0x59, 0x00, 0xA7, 0xFF
vertex 367, 307, -767, 3716, 2350, 0x00, 0x00, 0x81, 0xFF
vertex -349, 307, -767, 2524, 3542, 0xA7, 0x00, 0xA7, 0xFF
vertex -349, 102, -767, 2524, 3542, 0xA7, 0x00, 0xA7, 0xFF
vertex -759, 102, -357, 1160, 3542, 0xA7, 0x00, 0xA7, 0xFF
vertex -759, 307, -357, 1160, 3542, 0xA7, 0x00, 0xA7, 0xFF
bits_seg7_vertex_07012F58: # 0x07012F58 - 0x07013058
vertex -759, 102, 358, 0, 2350, 0x81, 0x00, 0x00, 0xFF
vertex -759, 307, 358, 0, 2350, 0x81, 0x00, 0x00, 0xFF
vertex -759, 307, -357, 1160, 3542, 0x81, 0x00, 0x00, 0xFF
vertex -759, 102, -357, 1160, 3542, 0x81, 0x00, 0x00, 0xFF
vertex -759, 102, 358, 0, 2350, 0xA7, 0x00, 0x59, 0xFF
vertex -349, 102, 768, 0, 990, 0xA7, 0x00, 0x59, 0xFF
vertex -349, 307, 768, 0, 990, 0xA7, 0x00, 0x59, 0xFF
vertex 776, 307, 358, 2522, -202, 0x59, 0x00, 0x59, 0xFF
vertex 367, 102, 768, 1160, -202, 0x59, 0x00, 0x59, 0xFF
vertex 776, 102, 358, 2522, -202, 0x59, 0x00, 0x59, 0xFF
vertex 776, 102, -357, 3716, 990, 0x59, 0x00, 0xA7, 0xFF
vertex 367, 307, -767, 3716, 2350, 0x59, 0x00, 0xA7, 0xFF
vertex 776, 307, -357, 3716, 990, 0x59, 0x00, 0xA7, 0xFF
vertex 776, 102, -357, 3716, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 776, 307, -357, 3716, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 776, 307, 358, 2522, -202, 0x7F, 0x00, 0x00, 0xFF
bits_seg7_vertex_07013058: # 0x07013058 - 0x070130F8
vertex 776, 102, -357, 3716, 990, 0x7F, 0x00, 0x00, 0xFF
vertex 776, 307, 358, 2522, -202, 0x7F, 0x00, 0x00, 0xFF
vertex 776, 102, 358, 2522, -202, 0x7F, 0x00, 0x00, 0xFF
vertex 776, 307, 358, 2522, -202, 0x59, 0x00, 0x59, 0xFF
vertex 367, 307, 768, 1160, -202, 0x59, 0x00, 0x59, 0xFF
vertex 367, 102, 768, 1160, -202, 0x59, 0x00, 0x59, 0xFF
vertex 367, 307, 768, 1160, -202, 0x00, 0x00, 0x7F, 0xFF
vertex -349, 307, 768, 0, 990, 0x00, 0x00, 0x7F, 0xFF
vertex -349, 102, 768, 0, 990, 0x00, 0x00, 0x7F, 0xFF
vertex 367, 102, 768, 1160, -202, 0x00, 0x00, 0x7F, 0xFF
bits_seg7_vertex_070130F8: # 0x070130F8 - 0x070131E8
vertex 776, 102, 358, 2522, -202, 0x5B, 0xA8, 0x00, 0xFF
vertex 382, -306, 179, 2164, 752, 0x5B, 0xA8, 0x00, 0xFF
vertex 382, -306, -178, 2762, 1346, 0x5B, 0xA8, 0x00, 0xFF
vertex -385, -306, 179, 888, 2028, 0xC0, 0xA9, 0x40, 0xFF
vertex -180, -306, 384, 888, 1346, 0xC0, 0xA9, 0x40, 0xFF
vertex -349, 102, 768, 0, 990, 0xC0, 0xA9, 0x40, 0xFF
vertex -759, 102, 358, 0, 2350, 0xC0, 0xA9, 0x40, 0xFF
vertex -385, -306, 179, 888, 2028, 0x00, 0x81, 0x00, 0xFF
vertex -180, -306, -383, 2164, 2624, 0x00, 0x81, 0x00, 0xFF
vertex 177, -306, -383, 2762, 2028, 0x00, 0x81, 0x00, 0xFF
vertex 382, -306, -178, 2762, 1346, 0x00, 0x81, 0x00, 0xFF
vertex 382, -306, 179, 2164, 752, 0x00, 0x81, 0x00, 0xFF
vertex 177, -306, 384, 1484, 752, 0x00, 0x81, 0x00, 0xFF
vertex -180, -306, 384, 888, 1346, 0x00, 0x81, 0x00, 0xFF
vertex -385, -306, -178, 1484, 2624, 0x00, 0x81, 0x00, 0xFF
bits_seg7_vertex_070131E8: # 0x070131E8 - 0x070132D8
vertex -759, 102, -357, 1160, 3542, 0xA3, 0xAB, 0x00, 0xFF
vertex -385, -306, -178, 1484, 2624, 0xA3, 0xAB, 0x00, 0xFF
vertex -385, -306, 179, 888, 2028, 0xA3, 0xAB, 0x00, 0xFF
vertex -759, 102, 358, 0, 2350, 0xA3, 0xAB, 0x00, 0xFF
vertex -349, 102, 768, 0, 990, 0x00, 0xA9, 0x5C, 0xFF
vertex -180, -306, 384, 888, 1346, 0x00, 0xA9, 0x5C, 0xFF
vertex 177, -306, 384, 1484, 752, 0x00, 0xA9, 0x5C, 0xFF
vertex 367, 102, 768, 1160, -202, 0x00, 0xA9, 0x5C, 0xFF
vertex 367, 102, 768, 1160, -202, 0x3F, 0xA7, 0x3F, 0xFF
vertex 177, -306, 384, 1484, 752, 0x3F, 0xA7, 0x3F, 0xFF
vertex 382, -306, 179, 2164, 752, 0x3F, 0xA7, 0x3F, 0xFF
vertex 776, 102, 358, 2522, -202, 0x3F, 0xA7, 0x3F, 0xFF
vertex -349, 102, -767, 2524, 3542, 0xC0, 0xA9, 0xC0, 0xFF
vertex -385, -306, -178, 1484, 2624, 0xC0, 0xA9, 0xC0, 0xFF
vertex -759, 102, -357, 1160, 3542, 0xC0, 0xA9, 0xC0, 0xFF
bits_seg7_vertex_070132D8: # 0x070132D8 - 0x070133B8
vertex 776, 102, 358, 2522, -202, 0x5B, 0xA8, 0x00, 0xFF
vertex 382, -306, -178, 2762, 1346, 0x5B, 0xA8, 0x00, 0xFF
vertex 776, 102, -357, 3716, 990, 0x5B, 0xA8, 0x00, 0xFF
vertex 382, -306, -178, 2762, 1346, 0x3F, 0xA7, 0xC1, 0xFF
vertex 177, -306, -383, 2762, 2028, 0x3F, 0xA7, 0xC1, 0xFF
vertex 367, 102, -767, 3716, 2350, 0x3F, 0xA7, 0xC1, 0xFF
vertex 776, 102, -357, 3716, 990, 0x3F, 0xA7, 0xC1, 0xFF
vertex 367, 102, -767, 3716, 2350, 0x00, 0xA9, 0xA4, 0xFF
vertex 177, -306, -383, 2762, 2028, 0x00, 0xA9, 0xA4, 0xFF
vertex -180, -306, -383, 2164, 2624, 0x00, 0xA9, 0xA4, 0xFF
vertex -349, 102, -767, 2524, 3542, 0x00, 0xA9, 0xA4, 0xFF
vertex -349, 102, -767, 2524, 3542, 0xC0, 0xA9, 0xC0, 0xFF
vertex -180, -306, -383, 2164, 2624, 0xC0, 0xA9, 0xC0, 0xFF
vertex -385, -306, -178, 1484, 2624, 0xC0, 0xA9, 0xC0, 0xFF
bits_seg7_dl_070133B8: # 0x070133B8 - 0x070135A0
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
gsSPLight bits_seg7_light_07012DB8, 1
gsSPLight bits_seg7_light_07012DB0, 2
gsSPVertex bits_seg7_vertex_07012DF8, 8, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 0, 3, 4, 0x0, 0, 5, 6, 0x0
gsSP2Triangles 0, 7, 1, 0x0, 0, 4, 5, 0x0
gsSPLight bits_seg7_light_07012DD0, 1
gsSPLight bits_seg7_light_07012DC8, 2
gsSPVertex bits_seg7_vertex_07012E78, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 3, 5, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 13, 10, 12, 0x0
gsSPVertex bits_seg7_vertex_07012F58, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 13, 14, 15, 0x0
gsSPVertex bits_seg7_vertex_07013058, 10, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSPLight bits_seg7_light_07012DE8, 1
gsSPLight bits_seg7_light_07012DE0, 2
gsSPVertex bits_seg7_vertex_070130F8, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 3, 5, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 7, 10, 11, 0x0
gsSP2Triangles 7, 11, 12, 0x0, 7, 12, 13, 0x0
gsSP1Triangle 7, 14, 8, 0x0
gsSPVertex bits_seg7_vertex_070131E8, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
gsSP2Triangles 8, 9, 10, 0x0, 8, 10, 11, 0x0
gsSP1Triangle 12, 13, 14, 0x0
gsSPVertex bits_seg7_vertex_070132D8, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 3, 5, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSPEndDisplayList
glabel bits_seg7_dl_070135A0 # 0x070135A0 - 0x07013610
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 bits_seg7_dl_070133B8
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