summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/mz80.cpp
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2019-07-19 02:46:30 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2019-07-19 02:46:30 +1000
commit7978022a9712629f0a96a301092967a0730f9a4f (patch)
treeab3b791db330150b82d054771df6bc7c71f68356 /src/mame/machine/mz80.cpp
parent8093eb3a543e346dadf0a389c70807c1b2046c34 (diff)
parentc182039d8e96f046eaf8d8f6d071f61d46bf87f4 (diff)
Merge remote-tracking branch 'upstream/master'
# Conflicts: # src/emu/digfx.h # src/frontend/mame/ui/ui.cpp
Diffstat (limited to 'src/mame/machine/mz80.cpp')
-rw-r--r--src/mame/machine/mz80.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/machine/mz80.cpp b/src/mame/machine/mz80.cpp
index f410eeafd48..4c8b5196c23 100644
--- a/src/mame/machine/mz80.cpp
+++ b/src/mame/machine/mz80.cpp
@@ -41,7 +41,7 @@ READ8_MEMBER( mz80_state::mz80k_8255_portc_r )
uint8_t val = 0;
val |= m_mz80k_vertical ? 0x80 : 0x00;
val |= ((m_mz80k_cursor_cnt & 0x3f) > 31) ? 0x40 : 0x00;
- val |= (m_cassette->get_state() & CASSETTE_MASK_UISTATE)== CASSETTE_PLAY ? 0x10 : 0x00;
+ val |= (m_cassette->get_state() & CASSETTE_MASK_UISTATE)!= CASSETTE_STOPPED ? 0x10 : 0x00;
if (m_cassette->input() > 0.00)
val |= 0x20;
@@ -57,6 +57,7 @@ WRITE8_MEMBER( mz80_state::mz80k_8255_porta_w )
WRITE8_MEMBER( mz80_state::mz80k_8255_portc_w )
{
// logerror("mz80k_8255_portc_w %02x\n",data);
+ m_cassette->output(BIT(data, 1) ? -1.0 : +1.0);
}