--- hatari/src/uae-cpu/newcpu.h 2019/04/01 07:13:12 1.1.1.9 +++ hatari/src/uae-cpu/newcpu.h 2019/04/09 08:47:24 1.1.1.12 @@ -16,9 +16,18 @@ #include "readcpu.h" #include "m68k.h" +#include "memory.h" + + +/* Possible exceptions sources for M68000_Exception() and Exception() */ +#define M68000_EXCEPTION_SRC_CPU 1 /* exception is a direct CPU exception */ +#define M68000_EXCEPTION_SRC_INT_MFP 2 /* exception caused by an MFP interrupt */ +#define M68000_EXCEPTION_SRC_INT_VIDEO 3 /* exception caused by a video interrupt */ + /* Special flags */ +#define SPCFLAG_DEBUGGER 1 #define SPCFLAG_STOP 2 #define SPCFLAG_BUSERROR 4 #define SPCFLAG_INT 8 @@ -287,7 +296,7 @@ extern uae_s32 ShowEA (FILE *, int reg, extern void MakeSR (void); extern void MakeFromSR (void); -extern void Exception (int, uaecptr); +extern void Exception (int, uaecptr, int); extern void dump_counts (void); extern int m68k_move2c (int, uae_u32 *); extern int m68k_movec2 (int, uae_u32 *); @@ -310,6 +319,8 @@ extern void fbcc_opp (uae_u32, uaecptr, extern void fsave_opp (uae_u32); extern void frestore_opp (uae_u32); +extern int getDivu68kCycles (uae_u32 dividend, uae_u16 divisor); +extern int getDivs68kCycles (uae_s32 dividend, uae_s16 divisor); /* Opcode of faulting instruction */ extern uae_u16 last_op_for_exception_3; @@ -335,6 +346,9 @@ extern const struct cputbl op_smalltbl_5 extern cpuop_func *cpufunctbl[65536]; -extern uae_u32 reg_caar, reg_cacr; +extern uae_u32 caar, cacr; + +/* Family of the latest instruction executed (to check for pairing) */ +extern int OpcodeFamily; /* see instrmnem in readcpu.h */ #endif /* UAE_NEWCPU_H */