From: notaz Date: Thu, 27 Dec 2012 00:24:06 +0000 (+0200) Subject: cdrom: tune and log stat hack X-Git-Tag: r18~33 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7e33ef281952a0e413f2c1f969472da5d2b6b37;p=pcsx_rearmed.git cdrom: tune and log stat hack --- diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 61e1e7ad..d7e36ccb 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -650,6 +650,11 @@ static void cdrPlayInterrupt_Autopause() void cdrPlayInterrupt() { if (cdr.Seeked == SEEK_DOING_CMD) { + if (cdr.Stat) { + SysPrintf("cdrom: seek stat hack\n"); + CDRMISC_INT(0x1000); + return; + } SetResultSize(1); cdr.StatP |= STATUS_ROTATING; cdr.StatP &= ~STATUS_SEEK; @@ -704,7 +709,8 @@ void cdrInterrupt() { // Reschedule IRQ if (cdr.Stat) { - CDR_INT( 0x100 ); + SysPrintf("cdrom: stat hack: %02x %x\n", cdr.Irq, cdr.Stat); + CDR_INT(0x1000); return; } @@ -1294,7 +1300,8 @@ void cdrReadInterrupt() { return; if (cdr.Irq || cdr.Stat) { - CDREAD_INT(0x100); + SysPrintf("cdrom: read stat hack %02x %x\n", cdr.Irq, cdr.Stat); + CDREAD_INT(0x1000); return; }