summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author miodragm <mmicko@gmail.com>2014-10-25 10:32:48 +0200
committer miodragm <mmicko@gmail.com>2014-10-25 10:32:48 +0200
commitd092bdc6caac58e3d214bf4acfb70e2542259962 (patch)
treeec750da52df108c33f53b73ce8c0ab9f550bbced
parent45b1c02ed55ad242f9c3cda07870c63f17ac82e6 (diff)
parent61b3fb62c8d15ee228514dd5164968ad1c3c8dbe (diff)
Merge branch 'plgDavid-patch-2'
-rw-r--r--src/emu/cpu/cp1610/cp1610.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/emu/cpu/cp1610/cp1610.h b/src/emu/cpu/cp1610/cp1610.h
index 5037f6d3355..9d6121f8cd1 100644
--- a/src/emu/cpu/cp1610/cp1610.h
+++ b/src/emu/cpu/cp1610/cp1610.h
@@ -33,13 +33,21 @@ enum
#define CP1610_RESET INPUT_LINE_RESET /* Non-Maskable */
#define CP1610_INT_INTR INPUT_LINE_NMI /* Non-Maskable */
-
+#define MCFG_CP1610_BEXT_CALLBACK(_read) \
+ downcast<cp1610_cpu_device *>(device)->set_bext_callback(DEVCB_##_read);
+
+
class cp1610_cpu_device : public cpu_device
{
public:
// construction/destruction
cp1610_cpu_device(const machine_config &mconfig, const char *_tag, device_t *_owner, UINT32 _clock);
+ template<class _read> void set_bext_callback(_read rd)
+ {
+ m_read_bext.set_callback(rd);
+ }
+
protected:
// device-level overrides
virtual void device_start();
@@ -79,6 +87,8 @@ private:
int m_mask_interrupts;
address_space *m_program;
int m_icount;
+
+ devcb_read8 m_read_bext;
void cp1610_illegal();
void cp1610_hlt();