diff options
Diffstat (limited to 'src/devices/bus/c64/c128_partner.cpp')
-rw-r--r-- | src/devices/bus/c64/c128_partner.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/devices/bus/c64/c128_partner.cpp b/src/devices/bus/c64/c128_partner.cpp index 91b7cf751ab..1c53ed4036d 100644 --- a/src/devices/bus/c64/c128_partner.cpp +++ b/src/devices/bus/c64/c128_partner.cpp @@ -44,7 +44,7 @@ DEFINE_DEVICE_TYPE(C128_PARTNER, c128_partner_cartridge_device, "c128_partner", // INPUT_PORTS( c128_partner ) //------------------------------------------------- -WRITE_LINE_MEMBER( c128_partner_cartridge_device::nmi_w ) +void c128_partner_cartridge_device::nmi_w(int state) { if (state) { @@ -80,7 +80,8 @@ ioport_constructor c128_partner_cartridge_device::device_input_ports() const c128_partner_cartridge_device::c128_partner_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, C128_PARTNER, tag, owner, clock), device_c64_expansion_card_interface(mconfig, *this), - m_ram(*this, "ram"), t_joyb2(nullptr), + m_ram(*this, "ram", 0x2000, ENDIANNESS_LITTLE), + t_joyb2(nullptr), m_ram_a12_a7(0), m_ls74_cd(0), m_ls74_q1(0), @@ -96,11 +97,8 @@ c128_partner_cartridge_device::c128_partner_cartridge_device(const machine_confi void c128_partner_cartridge_device::device_start() { - // allocate memory - m_ram.allocate(0x2000); - // simulate the 16.7ms pulse from CIA1 PB2 that would arrive thru the joystick port dongle - t_joyb2 = timer_alloc(); + t_joyb2 = timer_alloc(FUNC(c128_partner_cartridge_device::update_joyb2), this); t_joyb2->adjust(attotime::from_msec(16), 0, attotime::from_msec(16)); // state saving @@ -129,10 +127,10 @@ void c128_partner_cartridge_device::device_reset() //------------------------------------------------- -// device_timer - +// update_joyb2 - //------------------------------------------------- -void c128_partner_cartridge_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) +TIMER_CALLBACK_MEMBER(c128_partner_cartridge_device::update_joyb2) { if (m_ls74_cd) { |