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.

82 lines
4.4 KiB

6 years ago
  1. bbh_seg7_light_0701E5D8: # 0x0701E5D8 - 0x0701E5E0
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. bbh_seg7_light_0701E5E0: # 0x0701E5E0 - 0x0701E5F0
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. bbh_seg7_vertex_0701E5F0: # 0x0701E5F0 - 0x0701E6E0
  7. vertex 5530, 1843, -1945, -10250, -1054, 0x81, 0x00, 0x00, 0xFF
  8. vertex 5530, -204, -1945, -10250, 5758, 0x81, 0x00, 0x00, 0xFF
  9. vertex 5530, -204, 4710, 11210, 5758, 0x81, 0x00, 0x00, 0xFF
  10. vertex -4197, 1843, -1945, -4118, -1054, 0x59, 0x00, 0x59, 0xFF
  11. vertex -2149, -204, -3993, 5078, 5758, 0x59, 0x00, 0x59, 0xFF
  12. vertex -2149, 1843, -3993, 5078, -1054, 0x59, 0x00, 0x59, 0xFF
  13. vertex -4197, -204, -1945, -4118, 5758, 0x59, 0x00, 0x59, 0xFF
  14. vertex -2149, 1843, -3993, -8206, 0, 0x00, 0x00, 0x7F, 0xFF
  15. vertex -2149, -204, -3993, -8206, 6780, 0x00, 0x00, 0x7F, 0xFF
  16. vertex 3482, -204, -3993, 10188, 6780, 0x00, 0x00, 0x7F, 0xFF
  17. vertex 3482, 1843, -3993, 10188, 0, 0x00, 0x00, 0x7F, 0xFF
  18. vertex 3482, 1843, -3993, -4118, -1054, 0xA7, 0x00, 0x59, 0xFF
  19. vertex 3482, -204, -3993, -4118, 5758, 0xA7, 0x00, 0x59, 0xFF
  20. vertex 5530, -204, -1945, 5078, 5758, 0xA7, 0x00, 0x59, 0xFF
  21. vertex 5530, 1843, -1945, 5078, -1054, 0xA7, 0x00, 0x59, 0xFF
  22. bbh_seg7_vertex_0701E6E0: # 0x0701E6E0 - 0x0701E7D0
  23. vertex 5530, 1843, 4710, -4118, 0, 0xA7, 0x00, 0xA7, 0xFF
  24. vertex 5530, -204, 4710, -4118, 6780, 0xA7, 0x00, 0xA7, 0xFF
  25. vertex 3482, -204, 6758, 5070, 6780, 0xA7, 0x00, 0xA7, 0xFF
  26. vertex 5530, 1843, -1945, -10250, -1054, 0x81, 0x00, 0x00, 0xFF
  27. vertex 5530, -204, 4710, 11210, 5758, 0x81, 0x00, 0x00, 0xFF
  28. vertex 5530, 1843, 4710, 11210, -1054, 0x81, 0x00, 0x00, 0xFF
  29. vertex -4197, 1843, 4710, -10250, -1054, 0x7F, 0x00, 0x00, 0xFF
  30. vertex -4197, -204, 4710, -10250, 5758, 0x7F, 0x00, 0x00, 0xFF
  31. vertex -4197, -204, -1945, 11210, 5758, 0x7F, 0x00, 0x00, 0xFF
  32. vertex -4197, 1843, -1945, 11210, -1054, 0x7F, 0x00, 0x00, 0xFF
  33. vertex -2149, 1843, 6758, -4118, -2076, 0x59, 0x00, 0xA7, 0xFF
  34. vertex -4197, -204, 4710, 5078, 4736, 0x59, 0x00, 0xA7, 0xFF
  35. vertex -4197, 1843, 4710, 5078, -2076, 0x59, 0x00, 0xA7, 0xFF
  36. vertex -2149, -204, 6758, -4118, 4736, 0x59, 0x00, 0xA7, 0xFF
  37. vertex 3482, 1843, 6758, 5070, 0, 0xA7, 0x00, 0xA7, 0xFF
  38. bbh_seg7_vertex_0701E7D0: # 0x0701E7D0 - 0x0701E810
  39. vertex -2149, 1843, 6758, 9166, 0, 0x00, 0x00, 0x81, 0xFF
  40. vertex 3482, 1843, 6758, -9228, 0, 0x00, 0x00, 0x81, 0xFF
  41. vertex 3482, -204, 6758, -9228, 6780, 0x00, 0x00, 0x81, 0xFF
  42. vertex -2149, -204, 6758, 9166, 6780, 0x00, 0x00, 0x81, 0xFF
  43. bbh_seg7_dl_0701E810: # 0x0701E810 - 0x0701E8D8
  44. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07001800
  45. gsDPLoadSync
  46. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  47. gsSPLight bbh_seg7_light_0701E5E0, 1
  48. gsSPLight bbh_seg7_light_0701E5D8, 2
  49. gsSPVertex bbh_seg7_vertex_0701E5F0, 15, 0
  50. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  51. gsSP2Triangles 3, 6, 4, 0x0, 7, 8, 9, 0x0
  52. gsSP2Triangles 7, 9, 10, 0x0, 11, 12, 13, 0x0
  53. gsSP1Triangle 11, 13, 14, 0x0
  54. gsSPVertex bbh_seg7_vertex_0701E6E0, 15, 0
  55. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  56. gsSP2Triangles 6, 7, 8, 0x0, 6, 8, 9, 0x0
  57. gsSP2Triangles 10, 11, 12, 0x0, 10, 13, 11, 0x0
  58. gsSP1Triangle 0, 2, 14, 0x0
  59. gsSPVertex bbh_seg7_vertex_0701E7D0, 4, 0
  60. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  61. gsSPEndDisplayList
  62. glabel bbh_seg7_dl_0701E8D8 # 0x0701E8D8 - 0x0701E948
  63. gsDPPipeSync
  64. gsDPSetCombineMode1Cycle G_CCMUX_TEXEL0, G_CCMUX_0, G_CCMUX_SHADE, G_CCMUX_0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_SHADE, G_ACMUX_0
  65. gsSPClearGeometryMode G_CULL_BACK | G_SHADING_SMOOTH
  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, 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
  70. gsDPSetTileSize 0, 0, 0, 124, 124
  71. gsSPDisplayList bbh_seg7_dl_0701E810
  72. gsSPTexture -1, -1, 0, 0, 0
  73. gsDPPipeSync
  74. 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
  75. gsSPSetGeometryMode G_CULL_BACK | G_SHADING_SMOOTH
  76. gsSPEndDisplayList