MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / dmaSPR1

Function dmaSPR1

pcsx2/SPR.cpp:486–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void dmaSPR1() // toSPR
487{
488 SPR_LOG("dmaSPR1 chcr = 0x%x, madr = 0x%x, qwc = 0x%x\n"
489 " tadr = 0x%x, sadr = 0x%x",
490 spr1ch.chcr._u32, spr1ch.madr, spr1ch.qwc,
491 spr1ch.tadr, spr1ch.sadr);
492
493 spr1finished = false; // Init
494
495 if(spr1ch.chcr.MOD == CHAIN_MODE && spr1ch.qwc > 0)
496 {
497 //DevCon.Warning(L"SPR1 QWC on Chain " + spr1ch.chcr.desc());
498 if ((spr1ch.chcr.tag().ID == TAG_END) || (spr1ch.chcr.tag().ID == TAG_REFE) || (spr1ch.chcr.tag().IRQ && spr1ch.chcr.TIE))
499 {
500 spr1finished = true;
501 }
502 }
503
504 SPRTOinterrupt();
505}
506
507void SPRTOinterrupt()
508{

Callers

nothing calls this directly

Calls 1

SPRTOinterruptFunction · 0.85

Tested by

no test coverage detected