1 #ifndef M68KCONF__HEADER
2 #define M68KCONF__HEADER
7 /* ======================================================================== */
8 /* ============================= CONFIGURATION ============================ */
9 /* ======================================================================== */
11 /* Configuration switches. 1 = ON, 0 = OFF */
13 /* If on, CPU will call the interrupt_acknowledge callback when it services an
15 * If off, all interrupts will be autovectored.
17 #define M68K_INT_ACK 0
19 /* If on, CPU will call the breakpoint acknowledge callback when it encounters
20 * a breakpoint instruction and it is running in 68010+ mode.
22 #define M68K_BKPT_ACK 0
24 /* If on, the CPU will monitor the trace flags and take trace exceptions
28 /* If on, CPU will actually halt when m68k_input_halt is called by the host.
29 * I allow it to be disabled for a very slight speed increase.
33 /* If on, CPU will call the output reset callback when it encounters a reset
36 #define M68K_OUTPUT_RESET 0
38 /* If on, CPU will call the pc changed callback when it changes the PC by a
39 * large value. This allows host programs to be nicer when it comes to
40 * fetching immediate data and instructions on a banked memory system.
42 #define M68K_PC_CHANGED 0
44 /* If on, CPU will call the set fc callback on every memory access to
45 * differentiate between user/supervisor, program/data access like a real
46 * 68000 would. This should be enabled and the callback should be set if you
47 * are going to emulate the m68010. (moves uses function codes to read/write
48 * data from different address spaces)
52 /* If on, CPU will call the instruction hook callback before every
55 #define M68K_INSTR_HOOK 0
58 /* Define the default mode the CPU runs in if none has been specified */
59 #define M68K_DEFAULT_CPU_MODE M68K_CPU_MODE_68000
62 /* Uncomment this to enable logging of illegal instruction calls.
63 * M68K_LOG must be #defined to a stdio file stream. Logging will only
64 * occur if the file stream is not NULL.
65 * Turn on M68K_LOG_EMULATED_INSTRUCTIONS to log all 1010 and 1111 calls.
67 extern FILE* some_file_handle
68 #define M68K_LOG some_file_handle
69 #define M68K_LOG_EMULATED_INSTRUCTIONS 1
73 /* Set to your compiler's static inline keyword. If your compiler doesn't
74 * have inline, just set this to static.
75 * If you define INLINE in the makefile, it will override this value.
78 //#define INLINE static __inline__
84 /* ======================================================================== */
85 /* ============================== MAME STUFF ============================== */
86 /* ======================================================================== */
88 /* Uncomment this to enable mame stuff */
91 //#include "m68kmame.h"
95 /* ======================================================================== */
96 /* ============================== END OF FILE ============================= */
97 /* ======================================================================== */
99 #endif /* M68KCONF__HEADER */