summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/g65816/g65816.h
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2019-02-02 19:48:10 -0500
committer arbee <rb6502@users.noreply.github.com>2019-02-02 19:48:10 -0500
commit55ead0c9975483770f99e9e016816d3a8b4b8a3e (patch)
treed4f79f2605786f8f94aa404bc9807fa2aa0df262 /src/devices/cpu/g65816/g65816.h
parent13676f99053ace583767704b928ac4ec68ef70c3 (diff)
g65816: WDM is a 2-byte opcode per WDC docs, added WDM callback. [R. Belmont]
Diffstat (limited to 'src/devices/cpu/g65816/g65816.h')
-rw-r--r--src/devices/cpu/g65816/g65816.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/cpu/g65816/g65816.h b/src/devices/cpu/g65816/g65816.h
index e53f9eb784b..154dd015783 100644
--- a/src/devices/cpu/g65816/g65816.h
+++ b/src/devices/cpu/g65816/g65816.h
@@ -56,6 +56,8 @@ public:
// construction/destruction
g65816_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ auto wdm_handler() { return m_wdm_w.bind(); }
+
protected:
/* Registers - used by g65816_set_reg() and g65816_get_reg() */
enum
@@ -96,6 +98,7 @@ protected:
address_space_config m_data_config;
address_space_config m_opcode_config;
address_space_config m_vector_config;
+ devcb_write8 m_wdm_w; /* WDM callback */
typedef void (g65816_device::*opcode_func) ();
typedef unsigned (g65816_device::*get_reg_func)(int regnum);