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.

35 lines
1.7 KiB

6 years ago
  1. # Yellow Sphere (used in a lot of things)
  2. .balign 8
  3. yellow_sphere_seg6_vertex_0601EB48: # 0x0601EB48
  4. vertex -76, -76, 0, 0, 992, 0xFF, 0xFF, 0xFF, 0xFF
  5. vertex 77, -76, 0, 992, 992, 0xFF, 0xFF, 0xFF, 0xFF
  6. vertex 77, 77, 0, 992, 0, 0xFF, 0xFF, 0xFF, 0xFF
  7. vertex -76, 77, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
  8. yellow_sphere_seg6_texture_0601EB88: # 0x0601EB88
  9. .incbin "actors/yellow_sphere/0.rgba16"
  10. glabel yellow_sphere_seg6_dl_0601F388 # 0x0601F388 - 0x0601F3C0
  11. gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, yellow_sphere_seg6_texture_0601EB88
  12. gsDPLoadSync
  13. gsDPLoadBlock 7, 0, 0, 0x3FF, 0x100
  14. gsSPVertex yellow_sphere_seg6_vertex_0601EB48, 4, 0
  15. gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
  16. gsSPEndDisplayList
  17. glabel yellow_sphere_seg6_dl_0601F3C0 # 0x0601F3C0 - 0x0601F430
  18. gsDPPipeSync
  19. 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
  20. gsSPClearGeometryMode G_LIGHTING
  21. 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
  22. gsSPTexture -1, -1, 0, 0, 1
  23. gsDPTileSync
  24. 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
  25. gsDPSetTileSize 0, 0, 0, 124, 124
  26. gsSPDisplayList yellow_sphere_seg6_dl_0601F388
  27. gsSPTexture -1, -1, 0, 0, 0
  28. gsDPPipeSync
  29. 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
  30. gsSPSetGeometryMode G_LIGHTING
  31. gsSPEndDisplayList