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.

86 lines
4.3 KiB

6 years ago
  1. ttc_seg7_light_07011428: # 0x07011428 - 0x07011430
  2. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  3. ttc_seg7_light_07011430: # 0x07011430 - 0x07011440
  4. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttc_seg7_vertex_07011440: # 0x07011440 - 0x07011530
  7. vertex 256, -153, -127, 3034, 990, 0x54, 0xD6, 0xAC, 0xFF
  8. vertex 256, 0, 128, -2074, 0, 0x54, 0x2A, 0x54, 0xFF
  9. vertex 256, -153, 128, -2074, 990, 0x33, 0x99, 0x33, 0xFF
  10. vertex 256, -153, 128, 0, 990, 0x33, 0x99, 0x33, 0xFF
  11. vertex -255, -153, 128, 0, 990, 0xAC, 0xD6, 0x54, 0xFF
  12. vertex -255, -153, -127, 4056, 990, 0xCD, 0x99, 0xCD, 0xFF
  13. vertex 256, -153, -127, 4056, 990, 0x54, 0xD6, 0xAC, 0xFF
  14. vertex 256, 0, 128, 6100, 0, 0x54, 0x2A, 0x54, 0xFF
  15. vertex -255, -153, 128, -4118, 990, 0xAC, 0xD6, 0x54, 0xFF
  16. vertex 256, -153, 128, 6100, 990, 0x33, 0x99, 0x33, 0xFF
  17. vertex -255, 0, 128, -4118, 0, 0xCD, 0x67, 0x33, 0xFF
  18. vertex 256, -153, -127, -5140, 990, 0x54, 0xD6, 0xAC, 0xFF
  19. vertex -255, -153, -127, 5078, 990, 0xCD, 0x99, 0xCD, 0xFF
  20. vertex -255, 0, -127, 5078, 0, 0xAC, 0x2A, 0xAC, 0xFF
  21. vertex 256, 0, -127, -5140, 0, 0x33, 0x67, 0xCD, 0xFF
  22. ttc_seg7_vertex_07011530: # 0x07011530 - 0x070115A0
  23. vertex -255, -153, 128, 3034, 990, 0xAC, 0xD6, 0x54, 0xFF
  24. vertex -255, 0, 128, 3034, 0, 0xCD, 0x67, 0x33, 0xFF
  25. vertex -255, 0, -127, -2074, 0, 0xAC, 0x2A, 0xAC, 0xFF
  26. vertex 256, -153, -127, 3034, 990, 0x54, 0xD6, 0xAC, 0xFF
  27. vertex 256, 0, -127, 3034, 0, 0x33, 0x67, 0xCD, 0xFF
  28. vertex 256, 0, 128, -2074, 0, 0x54, 0x2A, 0x54, 0xFF
  29. vertex -255, -153, -127, -2074, 990, 0xCD, 0x99, 0xCD, 0xFF
  30. ttc_seg7_vertex_070115A0: # 0x070115A0 - 0x070115E0
  31. vertex 256, 0, -127, 990, 0, 0x33, 0x67, 0xCD, 0xFF
  32. vertex -255, 0, 128, 0, 990, 0xCD, 0x67, 0x33, 0xFF
  33. vertex 256, 0, 128, 990, 990, 0x54, 0x2A, 0x54, 0xFF
  34. vertex -255, 0, -127, 0, 0, 0xAC, 0x2A, 0xAC, 0xFF
  35. ttc_seg7_dl_070115E0: # 0x070115E0 - 0x07011670
  36. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09003800
  37. gsDPLoadSync
  38. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  39. gsSPLight ttc_seg7_light_07011430, 1
  40. gsSPLight ttc_seg7_light_07011428, 2
  41. gsSPVertex ttc_seg7_vertex_07011440, 15, 0
  42. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  43. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  44. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  45. gsSP1Triangle 11, 13, 14, 0x0
  46. gsSPVertex ttc_seg7_vertex_07011530, 7, 0
  47. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  48. gsSP1Triangle 0, 2, 6, 0x0
  49. gsSPEndDisplayList
  50. ttc_seg7_dl_07011670: # 0x07011670 - 0x070116A8
  51. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09005000
  52. gsDPLoadSync
  53. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  54. gsSPVertex ttc_seg7_vertex_070115A0, 4, 0
  55. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  56. gsSPEndDisplayList
  57. glabel ttc_seg7_dl_070116A8 # 0x070116A8 - 0x07011758
  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 200, 255, 255, 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, 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 ttc_seg7_dl_070115E0
  72. gsSPDisplayList ttc_seg7_dl_07011670
  73. gsSPTexture -1, -1, 0, 0, 0
  74. gsDPPipeSync
  75. gsDPSetCycleType G_CYC_1CYCLE
  76. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  77. gsSPClearGeometryMode G_FOG
  78. 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
  79. gsSPEndDisplayList