diff options
author | 2014-03-15 23:15:30 +0000 | |
---|---|---|
committer | 2014-03-15 23:15:30 +0000 | |
commit | 6c2a8df26a080cdfaa551b7484680f0d80db0a4a (patch) | |
tree | 6450c25f7a6264ddb2f9961c13c8778b759cbf0a /src/mess/machine/ti99/joyport.c | |
parent | 3d65a90c9e2bb9e102de0289d14f9c2e0ead8de7 (diff) |
(MESS) Some more devcb2 edits. (nw)
Diffstat (limited to 'src/mess/machine/ti99/joyport.c')
-rw-r--r-- | src/mess/machine/ti99/joyport.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mess/machine/ti99/joyport.c b/src/mess/machine/ti99/joyport.c index d81baa62ebc..8099964b925 100644 --- a/src/mess/machine/ti99/joyport.c +++ b/src/mess/machine/ti99/joyport.c @@ -41,7 +41,8 @@ joyport_device::joyport_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, JOYPORT, "Joystick port", tag, owner, clock, "ti99_joyport", __FILE__), - device_slot_interface(mconfig, *this) + device_slot_interface(mconfig, *this), + m_interrupt(*this) { } @@ -71,13 +72,15 @@ WRITE_LINE_MEMBER( joyport_device::set_interrupt ) m_interrupt(state); } +void joyport_device::device_start() +{ + m_interrupt.resolve(); + logerror("joyport: Set clock to %d\n", m_clock); +} + void joyport_device::device_config_complete() { m_connected = static_cast<joyport_attached_device*>(first_subdevice()); - const joyport_config *conf = reinterpret_cast<const joyport_config *>(static_config()); - - m_interrupt.resolve(conf->interrupt, *this); - m_clock = conf->vdp_clock; } /*****************************************************************************/ |