mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
Merge branch 'patch-2' of https://github.com/plgDavid/mame into plgDavid-patch-2
This commit is contained in:
commit
61b3fb62c8
@ -33,6 +33,9 @@ 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
|
||||
{
|
||||
@ -40,6 +43,11 @@ 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();
|
||||
@ -80,6 +88,8 @@ private:
|
||||
address_space *m_program;
|
||||
int m_icount;
|
||||
|
||||
devcb_read8 m_read_bext;
|
||||
|
||||
void cp1610_illegal();
|
||||
void cp1610_hlt();
|
||||
void cp1610_eis();
|
||||
|
Loading…
Reference in New Issue
Block a user