summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2020-01-02 02:16:30 +0100
committer MooglyGuy <therealmogminer@gmail.com>2020-01-02 02:16:30 +0100
commitccfb0091e85be2d9d04f594dd0cbaaa388c9b0b0 (patch)
tree0e90238215db4d83ac50036e15d5c5af2d07d240
parent49e27cd4a6100a17b91b078e3ccf9f56c5a99490 (diff)
-cdimono2: Added more logging for SERVO ports, nwcdimono2_wip
-rw-r--r--src/devices/cpu/m6805/m68hc05.cpp2
-rw-r--r--src/mame/drivers/cdi.cpp7
2 files changed, 8 insertions, 1 deletions
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)