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.

63 lines
3.1 KiB

6 years ago
  1. # TODO: what is this? 0700C960-0700C968 [8,8]
  2. .word 0, 0
  3. castle_grounds_seg7_vertex_0700C968: # 0x0700C968 - 0x0700C9A8
  4. vertex 0, 82, 0, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex -71, -81, 0, 0, 2012, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex 0, -81, 0, 990, 2012, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -71, 82, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  8. castle_grounds_seg7_vertex_0700C9A8: # 0x0700C9A8 - 0x0700C9E8
  9. vertex 72, 82, 0, 990, 0, 0xFF, 0xFF, 0xFF, 0xFF
  10. vertex 0, -81, 0, 0, 2012, 0xFF, 0xFF, 0xFF, 0xFF
  11. vertex 72, -81, 0, 990, 2012, 0xFF, 0xFF, 0xFF, 0xFF
  12. vertex 0, 82, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  13. castle_grounds_seg7_texture_0700C9E8: # 0x0700C9E8 - 0x0700D9E8
  14. .incbin "levels/castle_grounds/3.rgba16"
  15. castle_grounds_seg7_texture_0700D9E8: # 0x0700D9E8 - 0x0700E9E8
  16. .incbin "levels/castle_grounds/4.rgba16"
  17. castle_grounds_seg7_dl_0700E9E8: # 0x0700E9E8 - 0x0700EA20
  18. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, castle_grounds_seg7_texture_0700C9E8
  19. gsDPLoadSync
  20. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
  21. gsSPVertex castle_grounds_seg7_vertex_0700C968, 4, 0
  22. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  23. gsSPEndDisplayList
  24. castle_grounds_seg7_dl_0700EA20: # 0x0700EA20 - 0x0700EA58
  25. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, castle_grounds_seg7_texture_0700D9E8
  26. gsDPLoadSync
  27. gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
  28. gsSPVertex castle_grounds_seg7_vertex_0700C9A8, 4, 0
  29. gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
  30. gsSPEndDisplayList
  31. glabel castle_grounds_seg7_dl_0700EA58 # 0x0700EA58 - 0x0700EAE8
  32. gsDPPipeSync
  33. gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_TEXEL0, G_ACMUX_0, G_ACMUX_ENVIRONMENT, G_ACMUX_0
  34. gsDPSetRenderMode G_RM_XLU_SURF, G_RM_XLU_SURF2
  35. gsDPSetTextureFilter G_TF_BILERP
  36. gsSPClearGeometryMode G_LIGHTING
  37. 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
  38. gsSPTexture -1, -1, 0, 0, 1
  39. gsDPTileSync
  40. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  41. gsDPSetTileSize 0, 0, 0, 124, 252
  42. gsSPDisplayList castle_grounds_seg7_dl_0700E9E8
  43. gsSPDisplayList castle_grounds_seg7_dl_0700EA20
  44. gsSPTexture -1, -1, 0, 0, 0
  45. gsDPPipeSync
  46. 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
  47. # There were multiple matching pairs, so I don't know if this is correct or not.
  48. gsDPSetRenderMode G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2
  49. # It could also be one of these:
  50. # G_RM_AA_ZB_OPA_SURF, G_RM_RA_ZB_OPA_SURF2; G_RM_AA_ZB_OPA_SURF, G_RM_AA_OPA_SURF2; G_RM_AA_ZB_OPA_SURF, G_RM_RA_OPA_SURF2;
  51. # G_RM_RA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2; G_RM_RA_ZB_OPA_SURF, G_RM_AA_OPA_SURF2; G_RM_AA_OPA_SURF, G_RM_AA_ZB_OPA_SURF2;
  52. # G_RM_AA_OPA_SURF, G_RM_RA_ZB_OPA_SURF2; G_RM_RA_OPA_SURF, G_RM_AA_ZB_OPA_SURF2
  53. gsSPSetGeometryMode G_LIGHTING
  54. gsSPEndDisplayList