X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fsek.c;h=c76a3e8ed19d215ab668c4a1517f6aa6fc3b94c1;hb=12f23dac6f91eb707f985ef00a5d48e9e5ef8838;hp=031c54917f7e151eaf499987dd9abb47d10ad0a5;hpb=22814963ccbcba3a08ca49656fd80dc40de64710;p=picodrive.git diff --git a/pico/sek.c b/pico/sek.c index 031c549..c76a3e8 100644 --- a/pico/sek.c +++ b/pico/sek.c @@ -34,6 +34,7 @@ static int do_ack(int level) // the VDP doesn't look at the 68k level if (pv->pending_ints & pv->reg[1] & 0x20) { pv->pending_ints &= ~0x20; + pv->status &= ~SR_F; return (pv->reg[0] & pv->pending_ints & 0x10) >> 2; } else if (pv->pending_ints & pv->reg[0] & 0x10) @@ -156,10 +157,7 @@ PICO_INTERNAL int SekReset(void) REG_USP = 0; // ? #endif #ifdef EMU_F68K - { - g_m68kcontext = &PicoCpuFM68k; - fm68k_reset(); - } + fm68k_reset(&PicoCpuFM68k); #endif return 0; @@ -177,7 +175,7 @@ void SekStepM68k(void) #elif defined(EMU_M68K) Pico.t.m68c_cnt += m68k_execute(1); #elif defined(EMU_F68K) - Pico.t.m68c_cnt += fm68k_emulate(1, 0); + Pico.t.m68c_cnt += fm68k_emulate(&PicoCpuFM68k, 1, 0); #endif } @@ -319,7 +317,7 @@ void SekInitIdleDet(void) CycloneInitIdle(); #endif #ifdef EMU_F68K - fm68k_emulate(0, 1); + fm68k_idle_install(); #endif } @@ -430,7 +428,7 @@ void SekFinishIdleDet(void) CycloneFinishIdle(); #endif #ifdef EMU_F68K - fm68k_emulate(0, 2); + fm68k_idle_remove(); #endif while (idledet_count > 0) {