STATIC_INLINE void ciab_checkalarm (int inc) { // hack: do not trigger alarm interrupt if KS code and both // tod and alarm == 0. This incorrectly triggers on non-cycle exact // modes. Real hardware value written to ciabtod by KS is always // at least 1 or larger due to bus cycle delays when reading // old value. if ((munge24 (m68k_getpc ()) & 0xFFF80000) == 0xF80000) { if (ciabtod == 0 && ciabalarm == 0) return; } if (checkalarm (ciabtod, ciabalarm, inc)) { ciabicr |= 4; RethinkICRB (); } }
STATIC_INLINE int isinrom (void) { return (munge24 (m68k_getpc ()) & 0xFFF80000) == 0xF80000 && !currprefs.mmu_model; }
STATIC_INLINE int isinrom (void) { return (munge24 (m68k_getpc (®s)) & 0xFFF80000) == 0xF80000; }