mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
mcd, add poll detection for gfx busy
This commit is contained in:
parent
e61dbac103
commit
4985bad0fb
2 changed files with 7 additions and 3 deletions
|
@ -409,6 +409,8 @@ void gfx_start(uint32 base)
|
|||
|
||||
/* start graphics operation */
|
||||
Pico_mcd->s68k_regs[0x58] = 0x80;
|
||||
Pico_mcd->m.state_flags &= ~PCD_ST_S68K_POLL;
|
||||
Pico_mcd->m.s68k_poll_cnt = 0;
|
||||
|
||||
gfx_schedule();
|
||||
}
|
||||
|
@ -451,6 +453,8 @@ void gfx_update(unsigned int cycles)
|
|||
Pico_mcd->s68k_regs[0x64] =
|
||||
Pico_mcd->s68k_regs[0x65] = 0;
|
||||
|
||||
Pico_mcd->m.state_flags &= ~PCD_ST_S68K_POLL;
|
||||
Pico_mcd->m.s68k_poll_cnt = 0;
|
||||
if (Pico_mcd->s68k_regs[0x33] & PCDS_IEN1) {
|
||||
elprintf(EL_INTS|EL_CD, "s68k: gfx_cd irq 1");
|
||||
pcd_irq_s68k(1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue