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.
 
 
 
 
 

241 lines
13 KiB

jrb_seg7_light_07006A98: # 0x07006A98 - 0x07006AA0
.byte 0x3F, 0x3F, 0x3F, 0x00, 0x3F, 0x3F, 0x3F, 0x00
jrb_seg7_light_07006AA0: # 0x07006AA0 - 0x07006AB0
.byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
.byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
jrb_seg7_vertex_07006AB0: # 0x07006AB0 - 0x07006BA0
vertex -3758, -918, -1419, 2012, 0, 0x65, 0x00, 0xB4, 0xFF
vertex -4270, -2966, -2955, 0, 990, 0x76, 0x2D, 0x03, 0xFF
vertex -4270, -918, -2955, 2012, 990, 0x73, 0x00, 0x35, 0xFF
vertex -4270, -918, -7563, 8484, -798, 0x00, 0x81, 0x00, 0xFF
vertex 6481, -918, -7563, 1332, 4566, 0x00, 0x81, 0x00, 0xFF
vertex 6481, -918, -907, -3096, 1244, 0x00, 0x81, 0x00, 0xFF
vertex -4270, -918, -907, 4056, -4120, 0x00, 0x81, 0x00, 0xFF
vertex -174, -918, -1931, 2012, 0, 0x9D, 0x00, 0xB2, 0xFF
vertex -1710, -2966, -907, 0, 990, 0xE0, 0x4A, 0x9F, 0xFF
vertex -1710, -918, -907, 2012, 990, 0xFD, 0x00, 0x82, 0xFF
vertex -174, -2966, -1931, 0, 0, 0xA0, 0x4B, 0xE1, 0xFF
vertex -1710, -918, -907, 2012, 0, 0xFD, 0x00, 0x82, 0xFF
vertex -1710, -2966, -907, 0, 0, 0xE0, 0x4A, 0x9F, 0xFF
vertex -3758, -2966, -1419, 0, 990, 0x36, 0x4C, 0xAB, 0xFF
vertex -3758, -918, -1419, 2012, 990, 0x65, 0x00, 0xB4, 0xFF
jrb_seg7_vertex_07006BA0: # 0x07006BA0 - 0x07006CA0
vertex 3921, -918, -5003, 2012, 0, 0xEA, 0x00, 0x84, 0xFF
vertex 3921, -2966, -5003, 0, 0, 0xF2, 0x3A, 0x91, 0xFF
vertex 1361, -2966, -3467, 0, 3032, 0xE5, 0x00, 0x85, 0xFF
vertex -3758, -918, -1419, 2012, 0, 0x65, 0x00, 0xB4, 0xFF
vertex -3758, -2966, -1419, 0, 0, 0x36, 0x4C, 0xAB, 0xFF
vertex -4270, -2966, -2955, 0, 990, 0x76, 0x2D, 0x03, 0xFF
vertex 6481, -918, -7051, 2012, 376, 0x86, 0x00, 0x20, 0xFF
vertex 6481, -2966, -5515, 0, 1602, 0x86, 0x00, 0xE0, 0xFF
vertex 6481, -918, -5515, 2012, 1602, 0x93, 0x00, 0xC0, 0xFF
vertex 5969, -2966, -5003, 0, 2010, 0xDA, 0x00, 0x88, 0xFF
vertex 5969, -918, -5003, 2012, 2010, 0xE9, 0x00, 0x84, 0xFF
vertex 6481, -2966, -7051, 0, 376, 0x93, 0x00, 0x40, 0xFF
vertex 1361, -918, -3467, 2012, 3032, 0x12, 0x00, 0x83, 0xFF
vertex -4270, -918, -2955, 2012, 0, 0x73, 0x00, 0x35, 0xFF
vertex -4270, -2966, -2955, 0, 0, 0x76, 0x2D, 0x03, 0xFF
vertex -2222, -2966, -5003, 0, 2010, 0x40, 0x00, 0x6D, 0xFF
jrb_seg7_vertex_07006CA0: # 0x07006CA0 - 0x07006D90
vertex 1361, -918, -3467, 2012, 0, 0x12, 0x00, 0x83, 0xFF
vertex 1361, -2966, -3467, 0, 0, 0xE5, 0x00, 0x85, 0xFF
vertex 337, -2966, -3979, 0, 990, 0x09, 0x00, 0x82, 0xFF
vertex 337, -918, -3979, 2012, 990, 0xCF, 0x00, 0x8B, 0xFF
vertex 337, -918, -3979, 2012, 0, 0xCF, 0x00, 0x8B, 0xFF
vertex 337, -2966, -3979, 0, 0, 0x09, 0x00, 0x82, 0xFF
vertex -174, -2966, -3467, 0, 990, 0x93, 0x00, 0xC0, 0xFF
vertex -174, -918, -3467, 2012, 990, 0x86, 0x00, 0xE0, 0xFF
vertex -174, -918, -3467, 2012, 0, 0x86, 0x00, 0xE0, 0xFF
vertex -174, -2966, -1931, 0, 990, 0xA0, 0x4B, 0xE1, 0xFF
vertex -174, -918, -1931, 2012, 990, 0x9D, 0x00, 0xB2, 0xFF
vertex -174, -2966, -3467, 0, 0, 0x93, 0x00, 0xC0, 0xFF
vertex -686, -918, -5515, 2012, 0, 0x7A, 0x00, 0x20, 0xFF
vertex -686, -2966, -7051, 0, 990, 0x7A, 0x00, 0x20, 0xFF
vertex -686, -918, -7051, 2012, 990, 0x6D, 0x00, 0x40, 0xFF
jrb_seg7_vertex_07006D90: # 0x07006D90 - 0x07006E70
vertex -4270, -918, -2955, 2012, 0, 0x73, 0x00, 0x35, 0xFF
vertex -2222, -2966, -5003, 0, 2010, 0x40, 0x00, 0x6D, 0xFF
vertex -2222, -918, -5003, 2012, 2010, 0x20, 0x00, 0x7A, 0xFF
vertex -2222, -918, -5003, 2012, 0, 0x20, 0x00, 0x7A, 0xFF
vertex -2222, -2966, -5003, 0, 0, 0x40, 0x00, 0x6D, 0xFF
vertex -1198, -2966, -5003, 0, 990, 0x20, 0x00, 0x7A, 0xFF
vertex -1198, -918, -5003, 2012, 990, 0x40, 0x00, 0x6D, 0xFF
vertex -1198, -918, -5003, 2012, 0, 0x40, 0x00, 0x6D, 0xFF
vertex -1198, -2966, -5003, 0, 0, 0x20, 0x00, 0x7A, 0xFF
vertex -686, -2966, -5515, 0, 990, 0x6D, 0x00, 0x40, 0xFF
vertex -686, -918, -5515, 2012, 990, 0x7A, 0x00, 0x20, 0xFF
vertex -686, -918, -5515, 2012, 0, 0x7A, 0x00, 0x20, 0xFF
vertex -686, -2966, -5515, 0, 0, 0x6D, 0x00, 0x40, 0xFF
vertex -686, -2966, -7051, 0, 990, 0x7A, 0x00, 0x20, 0xFF
jrb_seg7_vertex_07006E70: # 0x07006E70 - 0x07006F60
vertex 2385, -2966, -7051, 0, 990, 0x20, 0x00, 0x7A, 0xFF
vertex 2385, -918, -7051, 2012, 990, 0x40, 0x00, 0x6D, 0xFF
vertex 1361, -918, -7051, 2012, 0, 0xE0, 0x00, 0x7A, 0xFF
vertex -686, -918, -7051, 2012, 0, 0x6D, 0x00, 0x40, 0xFF
vertex -686, -2966, -7051, 0, 0, 0x7A, 0x00, 0x20, 0xFF
vertex -174, -2966, -7563, 0, 990, 0x30, 0x00, 0x75, 0xFF
vertex -174, -918, -7563, 2012, 990, 0x30, 0x00, 0x75, 0xFF
vertex 5969, -918, -7563, 2012, 0, 0xD0, 0x00, 0x75, 0xFF
vertex 5969, -2966, -7563, 0, 0, 0xD0, 0x00, 0x75, 0xFF
vertex 6481, -2966, -7051, 0, 376, 0x93, 0x00, 0x40, 0xFF
vertex 6481, -918, -7051, 2012, 376, 0x86, 0x00, 0x20, 0xFF
vertex 2897, -2966, -7563, 0, 990, 0x30, 0x00, 0x75, 0xFF
vertex 2385, -918, -7051, 2012, 0, 0x40, 0x00, 0x6D, 0xFF
vertex 2385, -2966, -7051, 0, 0, 0x20, 0x00, 0x7A, 0xFF
vertex 2897, -918, -7563, 2012, 990, 0x30, 0x00, 0x75, 0xFF
jrb_seg7_vertex_07006F60: # 0x07006F60 - 0x07007050
vertex 849, -918, -7563, 2012, 990, 0xD0, 0x00, 0x75, 0xFF
vertex -174, -2966, -7563, 0, 0, 0x30, 0x00, 0x75, 0xFF
vertex 849, -2966, -7563, 0, 990, 0xD0, 0x00, 0x75, 0xFF
vertex 2385, -2966, -7051, 0, 990, 0x20, 0x00, 0x7A, 0xFF
vertex 1361, -918, -7051, 2012, 0, 0xE0, 0x00, 0x7A, 0xFF
vertex 1361, -2966, -7051, 0, 0, 0xC0, 0x00, 0x6D, 0xFF
vertex 1361, -2966, -7051, 0, 990, 0xC0, 0x00, 0x6D, 0xFF
vertex 1361, -918, -7051, 2012, 990, 0xE0, 0x00, 0x7A, 0xFF
vertex 849, -918, -7563, 2012, 0, 0xD0, 0x00, 0x75, 0xFF
vertex 849, -2966, -7563, 0, 0, 0xD0, 0x00, 0x75, 0xFF
vertex 5969, -918, -7563, 2012, 3032, 0xD0, 0x00, 0x75, 0xFF
vertex 2897, -918, -7563, 2012, 0, 0x30, 0x00, 0x75, 0xFF
vertex 2897, -2966, -7563, 0, 0, 0x30, 0x00, 0x75, 0xFF
vertex 5969, -2966, -7563, 0, 3032, 0xD0, 0x00, 0x75, 0xFF
vertex -174, -918, -7563, 2012, 0, 0x30, 0x00, 0x75, 0xFF
jrb_seg7_vertex_07007050: # 0x07007050 - 0x07007110
vertex 4638, -2761, -5003, 172, 1294, 0x00, 0x00, 0x81, 0xFF
vertex 4842, -2966, -5003, 0, 1090, 0x00, 0x00, 0x81, 0xFF
vertex 3921, -2966, -5003, 0, 2010, 0xF2, 0x3A, 0x91, 0xFF
vertex 4638, -2146, -5003, 784, 1294, 0x00, 0x00, 0x81, 0xFF
vertex 3921, -918, -5003, 2012, 2010, 0xEA, 0x00, 0x84, 0xFF
vertex 4842, -1942, -5003, 988, 1090, 0x00, 0x00, 0x81, 0xFF
vertex 5457, -1942, -5003, 988, 480, 0x00, 0x00, 0x81, 0xFF
vertex 5969, -918, -5003, 2012, 0, 0xE9, 0x00, 0x84, 0xFF
vertex 5662, -2146, -5003, 784, 274, 0x00, 0x00, 0x81, 0xFF
vertex 5969, -2966, -5003, 0, 0, 0xDA, 0x00, 0x88, 0xFF
vertex 5662, -2761, -5003, 172, 274, 0x00, 0x00, 0x81, 0xFF
vertex 5457, -2966, -5003, 0, 480, 0x00, 0x00, 0x81, 0xFF
jrb_seg7_vertex_07007110: # 0x07007110 - 0x070071D0
vertex -2971, -2812, -1222, 4940, 0, 0x95, 0x38, 0xDC, 0xFF
vertex -2734, -2812, -1931, 0, 0, 0xCE, 0x6C, 0xD5, 0xFF
vertex -2734, -2966, -1931, 0, 990, 0xA1, 0x00, 0xAD, 0xFF
vertex -2971, -2966, -1222, 4940, 990, 0x88, 0x00, 0xD8, 0xFF
vertex -1710, -2966, -2443, 2012, 990, 0x31, 0x00, 0x8B, 0xFF
vertex -1710, -2812, -2443, 2012, 0, 0xF8, 0x2F, 0x8B, 0xFF
vertex -789, -2812, -1522, -6656, 0, 0x3F, 0x59, 0xC1, 0xFF
vertex -789, -2966, -1522, -6656, 990, 0x59, 0x00, 0xA7, 0xFF
vertex -2734, -2966, -1931, 7584, 990, 0xA1, 0x00, 0xAD, 0xFF
vertex -1710, -2812, -2443, 0, 0, 0xF8, 0x2F, 0x8B, 0xFF
vertex -1710, -2966, -2443, 0, 990, 0x31, 0x00, 0x8B, 0xFF
vertex -2734, -2812, -1931, 7584, 0, 0xCE, 0x6C, 0xD5, 0xFF
jrb_seg7_vertex_070071D0: # 0x070071D0 - 0x070072A0
vertex -686, -2966, -7563, 12232, -544, 0x00, 0x7F, 0x00, 0xFF
vertex -1710, -2966, -907, 992, -4376, 0xE0, 0x4A, 0x9F, 0xFF
vertex -174, -2966, -1931, 0, -3098, 0xA0, 0x4B, 0xE1, 0xFF
vertex -2734, -2812, -1931, 5080, -4376, 0xCE, 0x6C, 0xD5, 0xFF
vertex -1710, -2812, -907, 992, -4376, 0x00, 0x7F, 0x00, 0xFF
vertex -789, -2812, -1522, 376, -3610, 0x3F, 0x59, 0xC1, 0xFF
vertex -1710, -2812, -2443, 4056, -3610, 0xF8, 0x2F, 0x8B, 0xFF
vertex -2971, -2812, -1222, 4136, -4848, 0x95, 0x38, 0xDC, 0xFF
vertex 3921, -2966, -5003, -2072, 478, 0xF2, 0x3A, 0x91, 0xFF
vertex 6481, -2966, -5003, -7184, 1754, 0x00, 0x7F, 0x00, 0xFF
vertex 6481, -2966, -7563, -2072, 3032, 0x00, 0x7F, 0x00, 0xFF
vertex -4270, -2966, -2955, 10188, -4632, 0x76, 0x2D, 0x03, 0xFF
vertex -3758, -2966, -1419, 6100, -5142, 0x36, 0x4C, 0xAB, 0xFF
jrb_seg7_dl_070072A0: # 0x070072A0 - 0x070074A8
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09003800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
gsSPLight jrb_seg7_light_07006AA0, 1
gsSPLight jrb_seg7_light_07006A98, 2
gsSPVertex jrb_seg7_vertex_07006AB0, 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, 13, 14, 0x0
gsSPVertex jrb_seg7_vertex_07006BA0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 8, 9, 10, 0x0
gsSP2Triangles 8, 7, 9, 0x0, 6, 11, 7, 0x0
gsSP2Triangles 0, 2, 12, 0x0, 13, 14, 15, 0x0
gsSPVertex jrb_seg7_vertex_07006CA0, 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, 11, 9, 0x0
gsSP1Triangle 12, 13, 14, 0x0
gsSPVertex jrb_seg7_vertex_07006D90, 14, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSPVertex jrb_seg7_vertex_07006E70, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
gsSP1Triangle 11, 14, 12, 0x0
gsSPVertex jrb_seg7_vertex_07006F60, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
gsSP1Triangle 0, 14, 1, 0x0
gsSPVertex jrb_seg7_vertex_07007050, 12, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 0, 2, 0x0
gsSP2Triangles 3, 2, 4, 0x0, 5, 3, 4, 0x0
gsSP2Triangles 6, 5, 4, 0x0, 6, 4, 7, 0x0
gsSP2Triangles 8, 6, 7, 0x0, 9, 8, 7, 0x0
gsSP2Triangles 9, 10, 8, 0x0, 9, 11, 10, 0x0
gsSPEndDisplayList
jrb_seg7_dl_070074A8: # 0x070074A8 - 0x07007500
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
gsSPVertex jrb_seg7_vertex_07007110, 12, 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, 11, 9, 0x0
gsSPEndDisplayList
jrb_seg7_dl_07007500: # 0x07007500 - 0x07007570
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09002800
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
gsSPVertex jrb_seg7_vertex_070071D0, 13, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
gsSP2Triangles 3, 5, 6, 0x0, 3, 7, 4, 0x0
gsSP2Triangles 0, 8, 9, 0x0, 0, 9, 10, 0x0
gsSP2Triangles 0, 2, 8, 0x0, 0, 11, 12, 0x0
gsSP1Triangle 0, 12, 1, 0x0
gsSPEndDisplayList
glabel jrb_seg7_dl_07007570 # 0x07007570 - 0x07007628
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_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 252, 124
gsSPDisplayList jrb_seg7_dl_070072A0
gsSPDisplayList jrb_seg7_dl_070074A8
gsSPDisplayList jrb_seg7_dl_07007500
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