X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fcd%2Fsek.c;h=d4914901c0228ce45ddb83fd548b42f8343eca77;hb=ae7830aae15ce83a9256fb3f893efef00e53a105;hp=65c8c2333d7cc0ca981b014c3d07c25a3fabade3;hpb=a736af3ecf708652f90e9cb05445d984960a0eec;p=picodrive.git diff --git a/pico/cd/sek.c b/pico/cd/sek.c index 65c8c23..d491490 100644 --- a/pico/cd/sek.c +++ b/pico/cd/sek.c @@ -1,11 +1,16 @@ -// (c) Copyright 2007 notaz, All rights reserved. - +/* + * PicoDrive + * (C) notaz, 2007 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include "../pico_int.h" -int SekCycleCntS68k=0; // cycles done in this frame -int SekCycleAimS68k=0; // cycle aim +unsigned int SekCycleCntS68k; +unsigned int SekCycleAimS68k; /* context */ @@ -184,3 +189,17 @@ PICO_INTERNAL int SekInterruptS68k(int irq) return 0; } +void SekInterruptClearS68k(int irq) +{ + int level_new = new_irq_level(irq); + +#ifdef EMU_C68K + PicoCpuCS68k.irq = level_new; +#endif +#ifdef EMU_M68K + CPU_INT_LEVEL = level_new << 8; +#endif +#ifdef EMU_F68K + PicoCpuFS68k.interrupts[0] = level_new; +#endif +}