X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Ffame%2Ffamec.c;h=19657fc6e6e81ce62158ceccbb2e0f9a25f02c26;hb=db49317be10622fc8d2e766831483c7db2e17e0e;hp=5d19ff90622c0d15bc13046ddf38cb5a21cc0818;hpb=81fda4e8d854c96e70dc2e6b7cd2f48a51f55d86;p=picodrive.git diff --git a/cpu/fame/famec.c b/cpu/fame/famec.c index 5d19ff9..19657fc 100644 --- a/cpu/fame/famec.c +++ b/cpu/fame/famec.c @@ -16,11 +16,11 @@ // Options // #define FAMEC_ROLL_INLINE -//#define FAMEC_EMULATE_TRACE -//#define FAMEC_CHECK_BRANCHES +#define FAMEC_EMULATE_TRACE +#define FAMEC_CHECK_BRANCHES #define FAMEC_EXTRA_INLINE // #define FAMEC_DEBUG -//#define FAMEC_NO_GOTOS +#define FAMEC_NO_GOTOS #define FAMEC_ADR_BITS 24 // #define FAMEC_FETCHBITS 8 #define FAMEC_DATABITS 8 @@ -33,7 +33,9 @@ #undef INLINE -#ifndef INLINE +#ifdef _MSC_VER +#define INLINE +#else #define INLINE __inline__ #endif @@ -914,9 +916,10 @@ famec_Exec: #endif if (cycles_needed != 0) { + u32 line; m68kcontext.io_cycle_counter = cycles_needed; cycles_needed = 0; - s32 line=interrupt_chk__(); + line=interrupt_chk__(); if (line>0) { if (m68kcontext.iack_handler != NULL)