summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/distate.h
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2013-08-25 12:23:20 +0000
committer Dirk Best <mail@dirk-best.de>2013-08-25 12:23:20 +0000
commit273fe7960e36084804e15f82c35a6700e0fdf76d (patch)
treec35d5cde2164a82a251064feeb31e827697c35e4 /src/emu/distate.h
parent2f8875a792036e3b3052ebec812cbb99c293afc2 (diff)
added support to display dividers in the debugger state view
i8089: improved debugger view
Diffstat (limited to 'src/emu/distate.h')
-rw-r--r--src/emu/distate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/distate.h b/src/emu/distate.h
index 6047435841c..82b440b2d71 100644
--- a/src/emu/distate.h
+++ b/src/emu/distate.h
@@ -78,6 +78,7 @@ class device_state_entry
private:
// construction/destruction
device_state_entry(int index, const char *symbol, void *dataptr, UINT8 size);
+ device_state_entry(int index);
public:
// post-construction modifiers
@@ -96,6 +97,7 @@ public:
void *dataptr() const { return m_dataptr.v; }
const char *symbol() const { return m_symbol; }
bool visible() const { return ((m_flags & DSF_NOSHOW) == 0); }
+ bool divider() const { return m_flags & DSF_DIVIDER; }
protected:
// device state flags
@@ -104,6 +106,7 @@ protected:
static const UINT8 DSF_IMPORT_SEXT = 0x04; // sign-extend the data when writing new data
static const UINT8 DSF_EXPORT = 0x08; // call the export function prior to fetching the data
static const UINT8 DSF_CUSTOM_STRING = 0x10; // set if the format has a custom string
+ static const UINT8 DSF_DIVIDER = 0x20; // set if this is a divider entry
// helpers
bool needs_custom_string() const { return ((m_flags & DSF_CUSTOM_STRING) != 0); }
@@ -179,6 +182,9 @@ public: // protected eventually
}
device_state_entry &state_add(int index, const char *symbol, void *data, UINT8 size);
+ // add a new divider entry
+ device_state_entry &state_add_divider(int index);
+
protected:
// derived class overrides
virtual void state_import(const device_state_entry &entry);