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.

38 lines
1.8 KiB

6 years ago
  1. # Yellow Sphere (used in a lot of things)
  2. yellow_sphere_seg5_vertex_05000000: # 0x05000000
  3. vertex -49, -49, 0, 0, 992, 0xB5, 0x20, 0x40, 0xFF
  4. vertex 50, -49, 0, 992, 992, 0xB5, 0x20, 0x40, 0xFF
  5. vertex 50, 50, 0, 992, 0, 0xB5, 0x20, 0x40, 0xFF
  6. vertex -49, 50, 0, 0, 0, 0xB5, 0x20, 0x40, 0xFF
  7. yellow_sphere_seg5_texture_05000040: # 0x05000040
  8. .incbin "actors/yellow_sphere_small/0.rgba16"
  9. glabel yellow_sphere_seg5_dl_05000840 # 0x05000840 - 0x05000888
  10. gsDPPipeSync
  11. gsDPSetCombineMode1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0
  12. gsSPClearGeometryMode G_LIGHTING
  13. 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
  14. gsSPTexture -1, -1, 0, 0, 1
  15. gsDPTileSync
  16. gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
  17. gsDPSetTileSize 0, 0, 0, 124, 124
  18. gsSPEndDisplayList
  19. glabel yellow_sphere_seg5_dl_05000888 # 0x05000888 - 0x050008C8
  20. gsSPVertex yellow_sphere_seg5_vertex_05000000, 4, 0
  21. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  22. gsSPTexture -1, -1, 0, 0, 0
  23. gsDPPipeSync
  24. 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
  25. gsSPSetGeometryMode G_LIGHTING
  26. gsSPEndDisplayList
  27. glabel yellow_sphere_seg5_dl_050008C8 # 0x050008C8 - 0x050008F8
  28. gsSPDisplayList yellow_sphere_seg5_dl_05000840
  29. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, yellow_sphere_seg5_texture_05000040
  30. gsDPLoadSync
  31. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  32. gsSPDisplayList yellow_sphere_seg5_dl_05000888
  33. gsSPEndDisplayList