diff options
author | smf- <smf-@users.noreply.github.com> | 2014-01-11 01:00:43 +0000 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2014-01-11 01:00:43 +0000 |
commit | 340b2178861799dd162df83d1c4985758a53bfc0 (patch) | |
tree | 528bc03ebb5b3bba0e06c2d09ace3bcb5e304dac /src/mess/drivers/dolphunk.c | |
parent | 5a89e028d557724b4613d555781ca8b6a4ceb4b7 (diff) |
Replaced FLAG fake IO port with a DEVCB2 callback [smf]
Diffstat (limited to 'src/mess/drivers/dolphunk.c')
-rw-r--r-- | src/mess/drivers/dolphunk.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mess/drivers/dolphunk.c b/src/mess/drivers/dolphunk.c index 96445db5f20..cca64e044a0 100644 --- a/src/mess/drivers/dolphunk.c +++ b/src/mess/drivers/dolphunk.c @@ -99,7 +99,7 @@ public: { } DECLARE_READ8_MEMBER(cass_r); - DECLARE_WRITE8_MEMBER(cass_w); + DECLARE_WRITE_LINE_MEMBER(cass_w); DECLARE_READ8_MEMBER(port07_r); DECLARE_WRITE8_MEMBER(port00_w); DECLARE_WRITE8_MEMBER(port06_w); @@ -119,9 +119,9 @@ READ8_MEMBER( dolphunk_state::cass_r ) return (m_cass->input() > 0.03) ? 1 : 0; } -WRITE8_MEMBER( dolphunk_state::cass_w ) +WRITE_LINE_MEMBER( dolphunk_state::cass_w ) { - m_cass_state = BIT(data, 0); // get flag bit + m_cass_state = state; // get flag bit } WRITE8_MEMBER( dolphunk_state::port00_w ) @@ -183,7 +183,7 @@ static ADDRESS_MAP_START( dolphunk_io, AS_IO, 8, dolphunk_state ) AM_RANGE(0x00, 0x03) AM_WRITE(port00_w) // 4-led display AM_RANGE(0x06, 0x06) AM_WRITE(port06_w) // speaker (NOT a keyclick) AM_RANGE(0x07, 0x07) AM_READ(port07_r) // pushbuttons - AM_RANGE(S2650_SENSE_PORT, S2650_FO_PORT) AM_READWRITE(cass_r,cass_w) + AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(cass_r) AM_RANGE(0x102, 0x103) AM_NOP // stops error log filling up while using debug ADDRESS_MAP_END @@ -220,6 +220,7 @@ static MACHINE_CONFIG_START( dolphunk, dolphunk_state ) MCFG_CPU_ADD("maincpu",S2650, XTAL_1MHz) MCFG_CPU_PROGRAM_MAP(dolphunk_mem) MCFG_CPU_IO_MAP(dolphunk_io) + MCFG_S2650_FLAG_HANDLER(WRITELINE(dolphunk_state, cass_w)) /* video hardware */ MCFG_DEFAULT_LAYOUT(layout_dolphunk) |