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.

83 lines
4.4 KiB

6 years ago
  1. jrb_seg7_light_070077F0: # 0x070077F0 - 0x070077F8
  2. .byte 0x32, 0x38, 0x3F, 0x00, 0x32, 0x38, 0x3F, 0x00
  3. jrb_seg7_light_070077F8: # 0x070077F8 - 0x07007808
  4. .byte 0xC8, 0xE1, 0xFF, 0x00, 0xC8, 0xE1, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. jrb_seg7_vertex_07007808: # 0x07007808 - 0x07007908
  7. vertex 32, -409, -338, 3096, 0, 0xF9, 0x0A, 0x82, 0xFF
  8. vertex 216, -808, -53, 3896, -1028, 0x4E, 0x9C, 0xFD, 0xFF
  9. vertex 8, -822, -218, 3060, -1064, 0xFD, 0xA7, 0xA7, 0xFF
  10. vertex -108, -9, -53, 2308, 964, 0xC5, 0x5E, 0xC4, 0xFF
  11. vertex -306, -409, 0, 2012, 0, 0x87, 0xFD, 0x23, 0xFF
  12. vertex 8, 29, 82, 924, 1060, 0xDC, 0x5A, 0x51, 0xFF
  13. vertex 28, -142, -182, 3132, 632, 0x2C, 0x46, 0xA0, 0xFF
  14. vertex 305, -409, 0, 4056, 0, 0x7D, 0x0B, 0x0A, 0xFF
  15. vertex 84, 29, 7, 4108, 1060, 0x4A, 0x66, 0xFF, 0xFF
  16. vertex -66, -822, -143, 2752, -1064, 0xB3, 0x9D, 0xF4, 0xFF
  17. vertex -108, -9, -53, 1592, 210, 0xC5, 0x5E, 0xC4, 0xFF
  18. vertex 8, 29, 82, 808, -332, 0xDC, 0x5A, 0x51, 0xFF
  19. vertex 84, 29, 7, 308, 0, 0x4A, 0x66, 0xFF, 0xFF
  20. vertex 28, -675, 134, 860, -696, 0xFE, 0xB5, 0x66, 0xFF
  21. vertex 32, -409, 264, 912, 0, 0x1C, 0x07, 0x7B, 0xFF
  22. vertex 84, 29, 7, 20, 1060, 0x4A, 0x66, 0xFF, 0xFF
  23. jrb_seg7_vertex_07007908: # 0x07007908 - 0x070079E8
  24. vertex 32, -409, 264, 912, 0, 0x1C, 0x07, 0x7B, 0xFF
  25. vertex 305, -409, 0, 0, 0, 0x7D, 0x0B, 0x0A, 0xFF
  26. vertex 84, 29, 7, 20, 1060, 0x4A, 0x66, 0xFF, 0xFF
  27. vertex 28, -142, -182, 680, 724, 0x2C, 0x46, 0xA0, 0xFF
  28. vertex -108, -9, -53, 1592, 210, 0xC5, 0x5E, 0xC4, 0xFF
  29. vertex 84, 29, 7, 308, 0, 0x4A, 0x66, 0xFF, 0xFF
  30. vertex 28, -675, 134, 860, -696, 0xFE, 0xB5, 0x66, 0xFF
  31. vertex 216, -808, -53, 3896, -1028, 0x4E, 0x9C, 0xFD, 0xFF
  32. vertex 305, -409, 0, 4056, 0, 0x7D, 0x0B, 0x0A, 0xFF
  33. vertex 28, -675, 134, 4948, -696, 0xFE, 0xB5, 0x66, 0xFF
  34. vertex -66, -822, -143, 1312, 570, 0xB3, 0x9D, 0xF4, 0xFF
  35. vertex 8, -822, -218, 808, 870, 0xFD, 0xA7, 0xA7, 0xFF
  36. vertex 216, -808, -53, -568, 210, 0x4E, 0x9C, 0xFD, 0xFF
  37. vertex 28, -675, 134, 680, -542, 0xFE, 0xB5, 0x66, 0xFF
  38. jrb_seg7_dl_070079E8: # 0x070079E8 - 0x07007AC8
  39. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800
  40. gsDPLoadSync
  41. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x080
  42. gsSPLight jrb_seg7_light_070077F8, 1
  43. gsSPLight jrb_seg7_light_070077F0, 2
  44. gsSPVertex jrb_seg7_vertex_07007808, 16, 0
  45. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  46. gsSP2Triangles 0, 4, 3, 0x0, 3, 6, 0, 0x0
  47. gsSP2Triangles 7, 0, 6, 0x0, 8, 7, 6, 0x0
  48. gsSP2Triangles 9, 4, 0, 0x0, 9, 0, 2, 0x0
  49. gsSP2Triangles 7, 1, 0, 0x0, 10, 11, 12, 0x0
  50. gsSP2Triangles 13, 14, 4, 0x0, 13, 4, 9, 0x0
  51. gsSP2Triangles 4, 14, 5, 0x0, 5, 14, 15, 0x0
  52. gsSPVertex jrb_seg7_vertex_07007908, 14, 0
  53. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  54. gsSP2Triangles 1, 0, 6, 0x0, 7, 8, 9, 0x0
  55. gsSP2Triangles 10, 11, 12, 0x0, 10, 12, 13, 0x0
  56. gsSPEndDisplayList
  57. glabel jrb_seg7_dl_07007AC8 # 0x07007AC8 - 0x07007B70
  58. gsDPPipeSync
  59. gsDPSetCycleType G_CYC_2CYCLE
  60. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  61. gsDPSetDepthSource G_ZS_PIXEL
  62. gsDPSetFogColor 5, 80, 75, 255
  63. gsSPFogPosition 900, 1000
  64. gsSPSetGeometryMode G_FOG
  65. 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
  66. 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
  67. gsSPTexture -1, -1, 0, 0, 1
  68. gsDPTileSync
  69. 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
  70. gsDPSetTileSize 0, 0, 0, 252, 124
  71. gsSPDisplayList jrb_seg7_dl_070079E8
  72. gsSPTexture -1, -1, 0, 0, 0
  73. gsDPPipeSync
  74. gsDPSetCycleType G_CYC_1CYCLE
  75. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  76. gsSPClearGeometryMode G_FOG
  77. 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
  78. gsSPEndDisplayList