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.
 
 
 
 
 

255 lines
14 KiB

jrb_seg7_light_07004D40: # 0x07004D40 - 0x07004D48
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
jrb_seg7_light_07004D48: # 0x07004D48 - 0x07004D58
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
jrb_seg7_light_07004D58: # 0x07004D58 - 0x07004D60
.byte 0x3F, 0x3F, 0x3F, 0x00, 0x3F, 0x3F, 0x3F, 0x00
jrb_seg7_light_07004D60: # 0x07004D60 - 0x07004D70
.byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
jrb_seg7_vertex_07004D70: # 0x07004D70 - 0x07004DF0
vertex 8048, -2866, 1727, 2044, 150, 0x8F, 0xDE, 0x2D, 0xFF
vertex 8008, -3020, 1579, 2044, 426, 0xFE, 0xD1, 0x75, 0xFF
vertex 8008, -3327, 1579, 2044, 790, 0xD0, 0x34, 0x69, 0xFF
vertex 8048, -3481, 1727, 2044, 882, 0xC0, 0x64, 0x2C, 0xFF
vertex 8127, -3481, 2024, 2044, 700, 0x9E, 0x4F, 0xF8, 0xFF
vertex 8166, -3327, 2173, 2044, 426, 0xAC, 0x2A, 0xAC, 0xFF
vertex 8166, -3020, 2173, 2044, 60, 0xA2, 0xCC, 0xBD, 0xFF
vertex 8127, -2866, 2024, 2044, 0, 0xD0, 0x8D, 0xEE, 0xFF
jrb_seg7_vertex_07004DF0: # 0x07004DF0 - 0x07004EF0
vertex 7241, -2871, 2259, 172, 0, 0xF1, 0x93, 0xC3, 0xFF
vertex 8166, -3020, 2173, 2044, 60, 0xA2, 0xCC, 0xBD, 0xFF
vertex 7249, -3022, 2416, 128, 60, 0xE1, 0xE0, 0x8A, 0xFF
vertex 8166, -3327, 2173, 2044, 426, 0xAC, 0x2A, 0xAC, 0xFF
vertex 7187, -3325, 2432, 44, 426, 0xE3, 0x31, 0x8F, 0xFF
vertex 8127, -2866, 2024, 2044, 0, 0xD0, 0x8D, 0xEE, 0xFF
vertex 7117, -3476, 2292, 0, 700, 0xF5, 0x75, 0xD2, 0xFF
vertex 8127, -3481, 2024, 2044, 700, 0x9E, 0x4F, 0xF8, 0xFF
vertex 7162, -2871, 1962, 172, 150, 0x0C, 0x8B, 0x2E, 0xFF
vertex 8048, -2866, 1727, 2044, 150, 0x8F, 0xDE, 0x2D, 0xFF
vertex 7092, -3022, 1822, 128, 426, 0x1E, 0xCF, 0x71, 0xFF
vertex 8008, -3020, 1579, 2044, 426, 0xFE, 0xD1, 0x75, 0xFF
vertex 7030, -3325, 1838, 44, 790, 0x1F, 0x20, 0x76, 0xFF
vertex 8008, -3327, 1579, 2044, 790, 0xD0, 0x34, 0x69, 0xFF
vertex 7038, -3476, 1995, 0, 882, 0x10, 0x6D, 0x3D, 0xFF
vertex 8048, -3481, 1727, 2044, 882, 0xC0, 0x64, 0x2C, 0xFF
jrb_seg7_vertex_07004EF0: # 0x07004EF0 - 0x07004FF0
vertex 5662, -4095, -653, 1436, -2854, 0x8B, 0xD5, 0xED, 0xFF
vertex 5662, -2577, -2771, 1388, 2344, 0x88, 0xDF, 0xEE, 0xFF
vertex 5662, -3104, -3087, 692, 2220, 0x88, 0x21, 0x12, 0xFF
vertex 5457, -3900, -590, 1652, 1218, 0xCF, 0x8E, 0xE9, 0xFF
vertex 5457, -3890, 366, 1660, -1168, 0xCF, 0x8B, 0x01, 0xFF
vertex 5167, -3890, 198, 1992, -748, 0x00, 0x82, 0x01, 0xFF
vertex 5662, -4095, -653, 1340, 1376, 0x8B, 0xD5, 0xED, 0xFF
vertex 5662, -4095, 533, 1340, -1582, 0x8B, 0xCF, 0x00, 0xFF
vertex 5457, -3900, -590, 1708, -2720, 0xCF, 0x8E, 0xE9, 0xFF
vertex 5457, -2401, -2665, 1688, 2386, 0xC9, 0x9D, 0xC7, 0xFF
vertex 4842, -3900, -590, 2316, -2720, 0x2A, 0x8D, 0xE1, 0xFF
vertex 4842, -2401, -2665, 2336, 2386, 0x37, 0x9B, 0xCC, 0xFF
vertex 5662, -4709, -850, 756, -3274, 0x8B, 0x2B, 0x13, 0xFF
vertex 5457, -4904, -913, 4412, 2026, 0xD6, 0x73, 0x20, 0xFF
vertex 4842, -4904, -913, 3700, 2026, 0x31, 0x72, 0x18, 0xFF
vertex 5152, -4914, 427, 4060, -1318, 0x00, 0x7E, 0x00, 0xFF
jrb_seg7_vertex_07004FF0: # 0x07004FF0 - 0x070050F0
vertex 4842, -3900, -590, 2372, 1218, 0x2A, 0x8D, 0xE1, 0xFF
vertex 5457, -3900, -590, 1652, 1218, 0xCF, 0x8E, 0xE9, 0xFF
vertex 5167, -3890, 198, 1992, -748, 0x00, 0x82, 0x01, 0xFF
vertex 4842, -3890, 284, 2364, -962, 0x31, 0x8B, 0x01, 0xFF
vertex 4638, -4095, 383, 2684, -1210, 0x6D, 0xC0, 0x00, 0xFF
vertex 4638, -4095, -653, 2684, 1376, 0x75, 0xD5, 0xED, 0xFF
vertex 4638, -4709, 518, 3388, -1546, 0x75, 0x31, 0x00, 0xFF
vertex 4638, -4709, -850, 3388, 1868, 0x75, 0x2B, 0x13, 0xFF
vertex 4842, -4904, -913, 3700, 2026, 0x31, 0x72, 0x18, 0xFF
vertex 4842, -4914, 509, 3708, -1524, 0x30, 0x75, 0x00, 0xFF
vertex 5152, -4914, 427, 4060, -1318, 0x00, 0x7E, 0x00, 0xFF
vertex 5457, -4914, 603, 316, -1758, 0xD0, 0x75, 0x00, 0xFF
vertex 5457, -4904, -913, 324, 2026, 0xD6, 0x73, 0x20, 0xFF
vertex 5152, -4914, 427, -28, -1318, 0x00, 0x7E, 0x00, 0xFF
vertex 5662, -4709, 675, 636, -1938, 0x93, 0x41, 0x00, 0xFF
vertex 5662, -4709, -850, 636, 1868, 0x8B, 0x2B, 0x13, 0xFF
jrb_seg7_vertex_070050F0: # 0x070050F0 - 0x070051F0
vertex 5662, -4095, 533, 1340, -1582, 0x8B, 0xCF, 0x00, 0xFF
vertex 5662, -4709, -850, 636, 1868, 0x8B, 0x2B, 0x13, 0xFF
vertex 5662, -4709, 675, 636, -1938, 0x93, 0x41, 0x00, 0xFF
vertex 5662, -4095, -653, 1340, 1376, 0x8B, 0xD5, 0xED, 0xFF
vertex 5457, -4904, -913, 4492, -3406, 0xD6, 0x73, 0x20, 0xFF
vertex 4842, -3279, -3193, 3668, 2178, 0x37, 0x63, 0x38, 0xFF
vertex 4842, -4904, -913, 3620, -3406, 0x31, 0x72, 0x18, 0xFF
vertex 5457, -3279, -3193, 4444, 2178, 0xC9, 0x65, 0x34, 0xFF
vertex 5662, -4709, -850, 756, -3274, 0x8B, 0x2B, 0x13, 0xFF
vertex 5457, -3279, -3193, 356, 2178, 0xC9, 0x65, 0x34, 0xFF
vertex 5457, -4904, -913, 404, -3406, 0xD6, 0x73, 0x20, 0xFF
vertex 4638, -4709, -850, 3268, -3274, 0x75, 0x2B, 0x13, 0xFF
vertex 4638, -3104, -3087, 3332, 2220, 0x78, 0x21, 0x12, 0xFF
vertex 4638, -2577, -2771, 2636, 2344, 0x79, 0xDF, 0xEE, 0xFF
vertex 4638, -4095, -653, 2588, -2854, 0x75, 0xD5, 0xED, 0xFF
vertex 4842, -2401, -2665, 2336, 2386, 0x37, 0x9B, 0xCC, 0xFF
jrb_seg7_vertex_070051F0: # 0x070051F0 - 0x070052F0
vertex 4638, -4095, -653, 2588, -2854, 0x75, 0xD5, 0xED, 0xFF
vertex 4842, -2401, -2665, 2336, 2386, 0x37, 0x9B, 0xCC, 0xFF
vertex 4842, -3900, -590, 2316, -2720, 0x2A, 0x8D, 0xE1, 0xFF
vertex 5662, -3104, -3087, 692, 2220, 0x88, 0x21, 0x12, 0xFF
vertex 5662, -2766, -3933, 496, 3974, 0x8E, 0x36, 0x0A, 0xFF
vertex 5457, -3279, -3193, 356, 2178, 0xC9, 0x65, 0x34, 0xFF
vertex 5662, -4709, -850, 756, -3274, 0x8B, 0x2B, 0x13, 0xFF
vertex 5662, -2577, -2771, 1128, -1330, 0x88, 0xDF, 0xEE, 0xFF
vertex 5662, -2167, -3795, 1376, 438, 0x8E, 0xCA, 0xF6, 0xFF
vertex 5662, -2766, -3933, 676, 500, 0x8E, 0x36, 0x0A, 0xFF
vertex 4842, -3279, -3193, 3768, -836, 0x37, 0x63, 0x38, 0xFF
vertex 4638, -2766, -3933, 3348, 500, 0x72, 0x35, 0x0A, 0xFF
vertex 4638, -3104, -3087, 3512, -960, 0x78, 0x21, 0x12, 0xFF
vertex 4638, -2167, -3795, 2648, 438, 0x72, 0xCB, 0xF6, 0xFF
vertex 4638, -2577, -2771, 2896, -1330, 0x79, 0xDF, 0xEE, 0xFF
vertex 4842, -2966, -3979, 3680, 520, 0x27, 0x75, 0x1B, 0xFF
jrb_seg7_vertex_070052F0: # 0x070052F0 - 0x070053F0
vertex 4638, -2167, -3795, 2648, 438, 0x72, 0xCB, 0xF6, 0xFF
vertex 4842, -1968, -3749, 2344, 416, 0x26, 0x89, 0xED, 0xFF
vertex 4842, -2401, -2665, 2528, -1454, 0x37, 0x9B, 0xCC, 0xFF
vertex 4638, -2577, -2771, 2896, -1330, 0x79, 0xDF, 0xEE, 0xFF
vertex 5457, -1968, -3749, 1680, 416, 0xDA, 0x8B, 0xE4, 0xFF
vertex 5457, -2401, -2665, 1496, -1454, 0xC9, 0x9D, 0xC7, 0xFF
vertex 5662, -2167, -3795, 1376, 438, 0x8E, 0xCA, 0xF6, 0xFF
vertex 5662, -2577, -2771, 1128, -1330, 0x88, 0xDF, 0xEE, 0xFF
vertex 5662, -2766, -3933, 676, 500, 0x8E, 0x36, 0x0A, 0xFF
vertex 5662, -3104, -3087, 512, -960, 0x88, 0x21, 0x12, 0xFF
vertex 5457, -2966, -3979, 344, 520, 0xDA, 0x77, 0x11, 0xFF
vertex 5457, -3279, -3193, 256, -836, 0xC9, 0x65, 0x34, 0xFF
vertex 5457, -3279, -3193, 4344, -836, 0xC9, 0x65, 0x34, 0xFF
vertex 5457, -2966, -3979, 4432, 520, 0xDA, 0x77, 0x11, 0xFF
vertex 4842, -2966, -3979, 3680, 520, 0x27, 0x75, 0x1B, 0xFF
vertex 4842, -3279, -3193, 3768, -836, 0x37, 0x63, 0x38, 0xFF
jrb_seg7_vertex_070053F0: # 0x070053F0 - 0x070054E0
vertex 4842, -2966, -5003, 3764, 2176, 0x30, 0x75, 0x00, 0xFF
vertex 4842, -2966, -3979, 3680, 520, 0x27, 0x75, 0x1B, 0xFF
vertex 5457, -2966, -3979, 4432, 520, 0xDA, 0x77, 0x11, 0xFF
vertex 5457, -2966, -5003, 4348, 2176, 0xC1, 0x6D, 0x00, 0xFF
vertex 4638, -2761, -5003, 3496, 2230, 0x75, 0x30, 0x00, 0xFF
vertex 4638, -2766, -3933, 3348, 500, 0x72, 0x35, 0x0A, 0xFF
vertex 5457, -2966, -5003, 260, 2176, 0xC1, 0x6D, 0x00, 0xFF
vertex 5662, -2766, -3933, 676, 500, 0x8E, 0x36, 0x0A, 0xFF
vertex 5662, -2761, -5003, 528, 2230, 0x86, 0x20, 0x00, 0xFF
vertex 4638, -2146, -5003, 2828, 2396, 0x7A, 0xE0, 0x00, 0xFF
vertex 4638, -2167, -3795, 2648, 438, 0x72, 0xCB, 0xF6, 0xFF
vertex 4842, -1942, -5003, 2464, 2452, 0x3F, 0x93, 0xFE, 0xFF
vertex 4842, -1968, -3749, 2344, 416, 0x26, 0x89, 0xED, 0xFF
vertex 5457, -1942, -5003, 1560, 2452, 0xD0, 0x8B, 0xFE, 0xFF
vertex 5457, -1968, -3749, 1680, 416, 0xDA, 0x8B, 0xE4, 0xFF
jrb_seg7_vertex_070054E0: # 0x070054E0 - 0x07005560
vertex 5662, -2146, -5003, 1196, 2396, 0x8B, 0xD0, 0x00, 0xFF
vertex 5662, -2167, -3795, 1376, 438, 0x8E, 0xCA, 0xF6, 0xFF
vertex 5457, -1942, -5003, 1560, 2452, 0xD0, 0x8B, 0xFE, 0xFF
vertex 5457, -1968, -3749, 1680, 416, 0xDA, 0x8B, 0xE4, 0xFF
vertex 5662, -2761, -5003, 528, 2230, 0x86, 0x20, 0x00, 0xFF
vertex 5662, -2766, -3933, 676, 500, 0x8E, 0x36, 0x0A, 0xFF
vertex 5457, -2966, -5003, 260, 2176, 0xC1, 0x6D, 0x00, 0xFF
vertex 5457, -2966, -3979, 344, 520, 0xDA, 0x77, 0x11, 0xFF
jrb_seg7_dl_07005560: # 0x07005560 - 0x07005660
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09004800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
gsSPLight jrb_seg7_light_07004D48, 1
gsSPLight jrb_seg7_light_07004D40, 2
gsSPVertex jrb_seg7_vertex_07004D70, 8, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 4, 0x0
gsSP2Triangles 0, 2, 3, 0x0, 0, 5, 6, 0x0
gsSP2Triangles 0, 6, 7, 0x0, 0, 4, 5, 0x0
gsSPLight jrb_seg7_light_07004D60, 1
gsSPLight jrb_seg7_light_07004D58, 2
gsSPVertex jrb_seg7_vertex_07004DF0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 2, 3, 4, 0x0
gsSP2Triangles 2, 1, 3, 0x0, 0, 5, 1, 0x0
gsSP2Triangles 4, 3, 6, 0x0, 3, 7, 6, 0x0
gsSP2Triangles 8, 5, 0, 0x0, 8, 9, 5, 0x0
gsSP2Triangles 10, 11, 8, 0x0, 11, 9, 8, 0x0
gsSP2Triangles 12, 11, 10, 0x0, 12, 13, 11, 0x0
gsSP2Triangles 14, 13, 12, 0x0, 14, 15, 13, 0x0
gsSP2Triangles 6, 15, 14, 0x0, 6, 7, 15, 0x0
gsSPEndDisplayList
jrb_seg7_dl_07005660: # 0x07005660 - 0x070058C8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09003800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
gsSPVertex jrb_seg7_vertex_07004EF0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 6, 7, 0x0, 4, 3, 7, 0x0
gsSP2Triangles 8, 9, 0, 0x0, 10, 9, 8, 0x0
gsSP2Triangles 9, 1, 0, 0x0, 10, 11, 9, 0x0
gsSP2Triangles 0, 2, 12, 0x0, 13, 14, 15, 0x0
gsSPVertex jrb_seg7_vertex_07004FF0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 4, 0, 3, 0x0, 4, 5, 0, 0x0
gsSP2Triangles 6, 5, 4, 0x0, 6, 7, 5, 0x0
gsSP2Triangles 8, 7, 6, 0x0, 8, 9, 10, 0x0
gsSP2Triangles 9, 8, 6, 0x0, 11, 12, 13, 0x0
gsSP2Triangles 14, 15, 12, 0x0, 14, 12, 11, 0x0
gsSPVertex jrb_seg7_vertex_070050F0, 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, 11, 12, 13, 0x0
gsSP2Triangles 5, 12, 11, 0x0, 6, 5, 11, 0x0
gsSP2Triangles 11, 13, 14, 0x0, 14, 13, 15, 0x0
gsSPVertex jrb_seg7_vertex_070051F0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 3, 5, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 12, 13, 14, 0x0
gsSP2Triangles 12, 11, 13, 0x0, 10, 15, 11, 0x0
gsSPVertex jrb_seg7_vertex_070052F0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 2, 1, 4, 0x0, 2, 4, 5, 0x0
gsSP2Triangles 5, 4, 6, 0x0, 5, 6, 7, 0x0
gsSP2Triangles 7, 8, 9, 0x0, 8, 10, 11, 0x0
gsSP2Triangles 12, 13, 14, 0x0, 12, 14, 15, 0x0
gsSPVertex jrb_seg7_vertex_070053F0, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsSP2Triangles 4, 5, 0, 0x0, 5, 1, 0, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 9, 5, 4, 0x0
gsSP2Triangles 9, 10, 5, 0x0, 11, 10, 9, 0x0
gsSP2Triangles 11, 12, 10, 0x0, 13, 12, 11, 0x0
gsSP1Triangle 13, 14, 12, 0x0
gsSPVertex jrb_seg7_vertex_070054E0, 8, 0
gsSP2Triangles 0, 1, 2, 0x0, 1, 3, 2, 0x0
gsSP2Triangles 4, 1, 0, 0x0, 4, 5, 1, 0x0
gsSP1Triangle 6, 7, 5, 0x0
gsSPEndDisplayList
glabel jrb_seg7_dl_070058C8 # 0x070058C8 - 0x07005990
gsDPPipeSync
gsDPSetCycleType G_CYC_2CYCLE
gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
gsDPSetDepthSource G_ZS_PIXEL
gsDPSetFogColor 5, 80, 75, 255
gsSPFogPosition 900, 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
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, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 6, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 252, 124
gsSPDisplayList jrb_seg7_dl_07005560
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 252, 124
gsSPDisplayList jrb_seg7_dl_07005660
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