Call Graph

SHACHI PROBE (test ROM)
  main.c -> menu system -> dispatch tests
    -> draw_util.c (probe_draw_quad/probe_draw_text/probe_twiddle)
    -> shachi_debug.c (PVR_GET register readout)
    -> test_nearz.c (DIV-001), test_depth.c (DIV-002), test_twiddle.c (DIV-003),
       test_trasort.c (DIV-004), test_opb.c (DIV-005), test_perf.c (DIV-007),
       test_mixsub.c (DIV-008)

Shachi SDK (headers):
  sh_vmu_device -> maple_enum_type(MAPLE_FUNC_MEMCARD)
  sh_vmu_fb_present -> vmufb_present -> maple bus transaction
  sh_tex_load -> fread -> pvr_txr_load (DMA to VRAM)
  sh_material_pass_compile -> pvr_poly_compile
  sh_prof_frame_begin -> perf_cntr_timer_ns
  sh_scheduler_tick -> (setjmp-based coroutines) -> task_fn -> yield -> resume

Builder pipeline (off-target):
  sh-texconv (PNG->PVR) -> tex_load (PVR->VRAM)
  sh-meshconv (OBJ->SHM) -> mesh_load (SHM->RAM)