From ccfb0091e85be2d9d04f594dd0cbaaa388c9b0b0 Mon Sep 17 00:00:00 2001 From: MooglyGuy Date: Thu, 2 Jan 2020 02:16:30 +0100 Subject: -cdimono2: Added more logging for SERVO ports, nw --- src/devices/cpu/m6805/m68hc05.cpp | 2 +- src/mame/drivers/cdi.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/devices/cpu/m6805/m68hc05.cpp b/src/devices/cpu/m6805/m68hc05.cpp index 518a0086025..b0add63da4d 100644 --- a/src/devices/cpu/m6805/m68hc05.cpp +++ b/src/devices/cpu/m6805/m68hc05.cpp @@ -36,7 +36,7 @@ determines both the COP watchdog timeout and the real-time interrupt rate #define LOG_UART (1U << 5) #define LOG_SPI (1U << 6) -#define VERBOSE (LOG_GENERAL | LOG_INT | LOG_COP | LOG_UART) +#define VERBOSE (LOG_GENERAL | LOG_INT | LOG_COP | LOG_UART | LOG_SPI) //#define LOG_OUTPUT_FUNC printf #include "logmacro.h" diff --git a/src/mame/drivers/cdi.cpp b/src/mame/drivers/cdi.cpp index 105dac2c5d0..54da42ba017 100644 --- a/src/mame/drivers/cdi.cpp +++ b/src/mame/drivers/cdi.cpp @@ -361,6 +361,7 @@ INPUT_CHANGED_MEMBER(cdimono2_state::mouse_update) if (BIT(state, 4)) { + logerror("Ctrl pressed\n"); m_mouse_buffer[1] |= 0x20; } if (BIT(state, 5)) @@ -917,11 +918,17 @@ WRITE8_MEMBER(cdimono2_state::servo_porta_w) WRITE8_MEMBER(cdimono2_state::servo_portb_w) { logerror("%s: servo_portb_w: %02x & %02x\n", machine().describe_context(), data, mem_mask); + const uint8_t old = m_servo_portb_data; m_servo_portb_data = data; if (BIT(data, 7)) m_slave->ss_in(0); else m_slave->ss_in(1); + + if (BIT(old, 5) != BIT(data, 5)) + { + printf("New TMOUT: %d\n", BIT(data, 5)); + } } WRITE8_MEMBER(cdimono2_state::servo_portc_w) -- cgit v1.2.3