summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-10-07 00:14:05 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-10-07 00:14:05 +0200
commitab53e6da6cb19428567e0d8cdd555933a105d112 (patch)
treeb968ebbf0ebc89837651192d5319b938aa8fef73
parentf154a9bf728a5d47fcbd350e4fb0ea000f19b2d6 (diff)
ibm5150: Hooked up cassette data output which was previously missing. Fixes cassette saving. [Ryan Holtz, BigAlUK]
-rw-r--r--src/devices/machine/genpc.cpp5
-rw-r--r--src/devices/machine/genpc.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/devices/machine/genpc.cpp b/src/devices/machine/genpc.cpp
index 7f49ee888b3..d16f32c50a3 100644
--- a/src/devices/machine/genpc.cpp
+++ b/src/devices/machine/genpc.cpp
@@ -194,6 +194,11 @@ WRITE_LINE_MEMBER( ibm5160_mb_device::pc_pit8253_out2_changed )
m_speaker->level_w(m_pc_spkrdata & m_pit_out2);
}
+WRITE_LINE_MEMBER( ibm5150_mb_device::pc_pit8253_out2_changed )
+{
+ ibm5160_mb_device::pc_pit8253_out2_changed(state);
+ m_cassette->output(m_pit_out2 ? 1.0 : -1.0);
+}
/**********************************************************
*
diff --git a/src/devices/machine/genpc.h b/src/devices/machine/genpc.h
index 9408b1bde9c..4c412a9a720 100644
--- a/src/devices/machine/genpc.h
+++ b/src/devices/machine/genpc.h
@@ -48,7 +48,7 @@ public:
DECLARE_WRITE_LINE_MEMBER( pc_speaker_set_spkrdata );
DECLARE_WRITE_LINE_MEMBER( pc_pit8253_out1_changed );
- DECLARE_WRITE_LINE_MEMBER( pc_pit8253_out2_changed );
+ virtual DECLARE_WRITE_LINE_MEMBER( pc_pit8253_out2_changed );
DECLARE_WRITE_LINE_MEMBER( pic_int_w );
@@ -142,6 +142,8 @@ public:
DECLARE_WRITE_LINE_MEMBER( keyboard_clock_w );
+ virtual DECLARE_WRITE_LINE_MEMBER( pc_pit8253_out2_changed ) override;
+
protected:
ibm5150_mb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);