From d1204011fb63fae98aabf43150544cab22743b67 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 11 Feb 2018 15:10:23 -0500 Subject: [PATCH] dialog80: Add VSYN callback and fix silly mistake (nw) --- src/mame/drivers/ampex.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/ampex.cpp b/src/mame/drivers/ampex.cpp index aceae521133..4f6655e7933 100644 --- a/src/mame/drivers/ampex.cpp +++ b/src/mame/drivers/ampex.cpp @@ -48,6 +48,7 @@ public: DECLARE_READ8_MEMBER(read_5846); DECLARE_READ8_MEMBER(read_5847); + DECLARE_WRITE_LINE_MEMBER(vsyn_w); DECLARE_WRITE8_MEMBER(uart_status_update); void ampex(machine_config &config); @@ -72,7 +73,7 @@ READ8_MEMBER(ampex_state::read_5840) WRITE8_MEMBER(ampex_state::write_5840) { - logerror("%s: Write %02X to 5840\n", machine().describe_context()); + logerror("%s: Write %02X to 5840\n", machine().describe_context(), data); } READ8_MEMBER(ampex_state::read_5841) @@ -83,7 +84,7 @@ READ8_MEMBER(ampex_state::read_5841) WRITE8_MEMBER(ampex_state::write_5841) { - //logerror("%s: Write %02X to 5841\n", machine().describe_context()); + //logerror("%s: Write %02X to 5841\n", machine().describe_context(), data); } READ8_MEMBER(ampex_state::read_5842) @@ -94,7 +95,7 @@ READ8_MEMBER(ampex_state::read_5842) WRITE8_MEMBER(ampex_state::write_5842) { - logerror("%s: Write %02X to 5842\n", machine().describe_context()); + logerror("%s: Write %02X to 5842\n", machine().describe_context(), data); } READ8_MEMBER(ampex_state::read_5843) @@ -107,7 +108,7 @@ READ8_MEMBER(ampex_state::read_5843) WRITE8_MEMBER(ampex_state::write_5843) { - logerror("%s: Write %02X to 5843\n", machine().describe_context()); + logerror("%s: Write %02X to 5843\n", machine().describe_context(), data); } READ8_MEMBER(ampex_state::read_5846) @@ -122,6 +123,11 @@ READ8_MEMBER(ampex_state::read_5847) return 0; } +WRITE_LINE_MEMBER(ampex_state::vsyn_w) +{ + // should generate RST 6 interrupt +} + WRITE8_MEMBER(ampex_state::uart_status_update) { // DAV should generate RST 7 @@ -161,6 +167,7 @@ MACHINE_CONFIG_START(ampex_state::ampex) // FIXME: dot clock should be divided by char width MCFG_DEVICE_ADD("vtac", CRT5037, XTAL(23'814'000) / 2) MCFG_TMS9927_CHAR_WIDTH(CHAR_WIDTH) + MCFG_TMS9927_VSYN_CALLBACK(WRITELINE(ampex_state, vsyn_w)) MCFG_VIDEO_SET_SCREEN("screen") MCFG_DEVICE_ADD("uart", AY31015, 0) // COM8017, actually