diff m68k_core.h @ 1303:208803173ebc

Implemented M68K trace mode. Some edge cases/SR update paths still need work
author Michael Pavone <pavone@retrodev.com>
date Tue, 28 Mar 2017 00:13:35 -0700
parents d5a47597b61f
children 85a90964b557
line wrap: on
line diff
--- a/m68k_core.h	Mon Mar 27 09:45:40 2017 -0700
+++ b/m68k_core.h	Tue Mar 28 00:13:35 2017 -0700
@@ -21,6 +21,8 @@
 #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 @@
 	m68k_options    *options;
 	void            *system;
 	uint8_t         int_pending;
+	uint8_t         trace_pending;
 	uint8_t         should_return;
 	uint8_t         ram_code_flags[];
 } m68k_context;