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.

106 lines
5.4 KiB

6 years ago
  1. ttc_seg7_light_0700E950: # 0x0700E950 - 0x0700E958
  2. .byte 0x55, 0x55, 0x55, 0x00, 0x55, 0x55, 0x55, 0x00
  3. ttc_seg7_light_0700E958: # 0x0700E958 - 0x0700E968
  4. .byte 0xAA, 0xAA, 0xAA, 0x00, 0xAA, 0xAA, 0xAA, 0x00
  5. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  6. ttc_seg7_light_0700E968: # 0x0700E968 - 0x0700E970
  7. .byte 0x7F, 0x7F, 0x7F, 0x00, 0x7F, 0x7F, 0x7F, 0x00
  8. ttc_seg7_light_0700E970: # 0x0700E970 - 0x0700E980
  9. .byte 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0x00
  10. .byte 0x28, 0x28, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00
  11. ttc_seg7_vertex_0700E980: # 0x0700E980 - 0x0700EA20
  12. vertex -199, 200, -199, 2012, 0, 0xD6, 0x54, 0xAC, 0xFF
  13. vertex 0, 0, -199, 478, 1340, 0x00, 0x00, 0x81, 0xFF
  14. vertex -199, -199, -199, -1052, 0, 0xAC, 0xD6, 0xAC, 0xFF
  15. vertex 200, -199, -199, 2012, 0, 0x2A, 0xAC, 0xAC, 0xFF
  16. vertex 200, 200, -199, -1052, 0, 0x54, 0x2A, 0xAC, 0xFF
  17. vertex 200, 200, 200, -1052, 0, 0x2A, 0x54, 0x54, 0xFF
  18. vertex 0, 0, 200, 478, 1340, 0x00, 0x00, 0x7F, 0xFF
  19. vertex 200, -199, 200, 2012, 0, 0x54, 0xD6, 0x54, 0xFF
  20. vertex -199, -199, 200, -1052, 0, 0xD6, 0xAC, 0x54, 0xFF
  21. vertex -199, 200, 200, 2012, 0, 0xAC, 0x2A, 0x54, 0xFF
  22. ttc_seg7_vertex_0700EA20: # 0x0700EA20 - 0x0700EAC0
  23. vertex -199, -199, -199, 2012, 0, 0xAC, 0xD6, 0xAC, 0xFF
  24. vertex 0, 0, -199, 478, 1340, 0x00, 0x00, 0x81, 0xFF
  25. vertex 200, -199, -199, -1052, 0, 0x2A, 0xAC, 0xAC, 0xFF
  26. vertex 200, 200, -199, 2012, 0, 0x54, 0x2A, 0xAC, 0xFF
  27. vertex -199, 200, -199, -1052, 0, 0xD6, 0x54, 0xAC, 0xFF
  28. vertex 200, -199, 200, -1052, 0, 0x54, 0xD6, 0x54, 0xFF
  29. vertex 0, 0, 200, 478, 1340, 0x00, 0x00, 0x7F, 0xFF
  30. vertex -199, -199, 200, 2012, 0, 0xD6, 0xAC, 0x54, 0xFF
  31. vertex -199, 200, 200, -1052, 0, 0xAC, 0x2A, 0x54, 0xFF
  32. vertex 200, 200, 200, 2012, 0, 0x2A, 0x54, 0x54, 0xFF
  33. ttc_seg7_vertex_0700EAC0: # 0x0700EAC0 - 0x0700EBC0
  34. vertex 200, -199, -199, 0, 990, 0x2A, 0xAC, 0xAC, 0xFF
  35. vertex 200, -199, 200, 990, 990, 0x54, 0xD6, 0x54, 0xFF
  36. vertex -199, -199, 200, 990, 0, 0xD6, 0xAC, 0x54, 0xFF
  37. vertex -199, 200, -199, 0, 990, 0xD6, 0x54, 0xAC, 0xFF
  38. vertex -199, 200, 200, 990, 990, 0xAC, 0x2A, 0x54, 0xFF
  39. vertex 200, 200, 200, 990, 0, 0x2A, 0x54, 0x54, 0xFF
  40. vertex 200, 200, -199, 0, 0, 0x54, 0x2A, 0xAC, 0xFF
  41. vertex -199, 200, 200, 990, 0, 0xAC, 0x2A, 0x54, 0xFF
  42. vertex -199, -199, -199, 0, 990, 0xAC, 0xD6, 0xAC, 0xFF
  43. vertex -199, -199, 200, 990, 990, 0xD6, 0xAC, 0x54, 0xFF
  44. vertex -199, 200, -199, 0, 0, 0xD6, 0x54, 0xAC, 0xFF
  45. vertex 200, 200, -199, 0, 990, 0x54, 0x2A, 0xAC, 0xFF
  46. vertex 200, -199, 200, 990, 0, 0x54, 0xD6, 0x54, 0xFF
  47. vertex 200, -199, -199, 0, 0, 0x2A, 0xAC, 0xAC, 0xFF
  48. vertex 200, 200, 200, 990, 990, 0x2A, 0x54, 0x54, 0xFF
  49. vertex -199, -199, -199, 0, 0, 0xAC, 0xD6, 0xAC, 0xFF
  50. ttc_seg7_dl_0700EBC0: # 0x0700EBC0 - 0x0700EC50
  51. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09001000
  52. gsDPLoadSync
  53. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  54. gsSPLight ttc_seg7_light_0700E958, 1
  55. gsSPLight ttc_seg7_light_0700E950, 2
  56. gsSPVertex ttc_seg7_vertex_0700E980, 10, 0
  57. gsSP2Triangles 0, 1, 2, 0x0, 3, 1, 4, 0x0
  58. gsSP2Triangles 5, 6, 7, 0x0, 8, 6, 9, 0x0
  59. gsSPLight ttc_seg7_light_0700E970, 1
  60. gsSPLight ttc_seg7_light_0700E968, 2
  61. gsSPVertex ttc_seg7_vertex_0700EA20, 10, 0
  62. gsSP2Triangles 0, 1, 2, 0x0, 3, 1, 4, 0x0
  63. gsSP2Triangles 5, 6, 7, 0x0, 8, 6, 9, 0x0
  64. gsSPEndDisplayList
  65. ttc_seg7_dl_0700EC50: # 0x0700EC50 - 0x0700ECB8
  66. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09005000
  67. gsDPLoadSync
  68. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  69. gsSPVertex ttc_seg7_vertex_0700EAC0, 16, 0
  70. gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 5, 0x0
  71. gsSP2Triangles 3, 5, 6, 0x0, 7, 8, 9, 0x0
  72. gsSP2Triangles 7, 10, 8, 0x0, 11, 12, 13, 0x0
  73. gsSP2Triangles 11, 14, 12, 0x0, 0, 2, 15, 0x0
  74. gsSPEndDisplayList
  75. glabel ttc_seg7_dl_0700ECB8 # 0x0700ECB8 - 0x0700ED68
  76. gsDPPipeSync
  77. gsDPSetCycleType G_CYC_2CYCLE
  78. gsDPSetRenderMode G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2
  79. gsDPSetDepthSource G_ZS_PIXEL
  80. gsDPSetFogColor 200, 255, 255, 255
  81. gsSPFogPosition 900, 1000
  82. gsSPSetGeometryMode G_FOG
  83. 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
  84. 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
  85. gsSPTexture -1, -1, 0, 0, 1
  86. gsDPTileSync
  87. 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
  88. gsDPSetTileSize 0, 0, 0, 124, 124
  89. gsSPDisplayList ttc_seg7_dl_0700EBC0
  90. gsSPDisplayList ttc_seg7_dl_0700EC50
  91. gsSPTexture -1, -1, 0, 0, 0
  92. gsDPPipeSync
  93. gsDPSetCycleType G_CYC_1CYCLE
  94. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2
  95. gsSPClearGeometryMode G_FOG
  96. 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
  97. gsSPEndDisplayList