Skip to content

Commit

Permalink
mcd, fix cdd delayed commands while in seek latency wait
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Dec 16, 2024
1 parent d70fed9 commit b168f30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pico/cd/cdd.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@ void cdd_update(void)
cdc_decoder_update(header);
}

if (Pico_mcd->m.state_flags & PCD_ST_CDD_CMD) {
/* pending delayed command */
cdd_process();
Pico_mcd->m.state_flags &= ~PCD_ST_CDD_CMD;
}

/* drive latency */
if (cdd.latency > 0)
{
Expand Down Expand Up @@ -829,12 +835,6 @@ void cdd_update(void)
Pico_mcd->s68k_regs[0x36+0] = 0x01;
}
}

if (Pico_mcd->m.state_flags & PCD_ST_CDD_CMD) {
/* pending delayed command */
cdd_process();
Pico_mcd->m.state_flags &= ~PCD_ST_CDD_CMD;
}
}

#define set_reg16(r, v) { \
Expand Down

0 comments on commit b168f30

Please sign in to comment.