summaryrefslogtreecommitdiff
path: root/m68k_core.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-28 00:13:35 -0700
committerMichael Pavone <pavone@retrodev.com>2017-03-28 00:13:35 -0700
commit15be1a3421956600cf3a773b96bf7aaf8f092d04 (patch)
tree377049a149b3cae59df5a804e393847823525ad8 /m68k_core.h
parent246813eedfa1274917f3a88755afd3a316ee8aae (diff)
Implemented M68K trace mode. Some edge cases/SR update paths still need work
Diffstat (limited to 'm68k_core.h')
-rw-r--r--m68k_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/m68k_core.h b/m68k_core.h
index 786447f..48a2a90 100644
--- a/m68k_core.h
+++ b/m68k_core.h
@@ -21,6 +21,8 @@ struct m68kinst;
#define INT_PENDING_SR_CHANGE 254
#define INT_PENDING_NONE 255
+#define M68K_STATUS_TRACE 0x80
+
typedef void (*start_fun)(uint8_t * addr, void * context);
typedef struct {
@@ -78,6 +80,7 @@ typedef struct m68k_context {
m68k_options *options;
void *system;
uint8_t int_pending;
+ uint8_t trace_pending;
uint8_t should_return;
uint8_t ram_code_flags[];
} m68k_context;