summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/tmc0430.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/tmc0430.cpp')
-rw-r--r--src/devices/machine/tmc0430.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/devices/machine/tmc0430.cpp b/src/devices/machine/tmc0430.cpp
index 76e53c88ded..8264830817a 100644
--- a/src/devices/machine/tmc0430.cpp
+++ b/src/devices/machine/tmc0430.cpp
@@ -94,13 +94,13 @@
#include "emu.h"
#include "tmc0430.h"
-#define LOG_DETAIL (1U<<1) // More detail
-#define LOG_ADDRESS (1U<<2) // Address bus
-#define LOG_CLOCK (1U<<3) // Clock line
-#define LOG_READY (1U<<4) // Ready line
-#define LOG_LINES (1U<<5) // Select/mode lines
+#define LOG_DETAIL (1U << 1) // More detail
+#define LOG_ADDRESS (1U << 2) // Address bus
+#define LOG_CLOCK (1U << 3) // Clock line
+#define LOG_READY (1U << 4) // Ready line
+#define LOG_LINES (1U << 5) // Select/mode lines
-#define VERBOSE ( LOG_GENERAL )
+#define VERBOSE (LOG_GENERAL)
#include "logmacro.h"
@@ -135,7 +135,7 @@ tmc0430_device::tmc0430_device(const machine_config &mconfig, const char *tag, d
/*
Direction. When ASSERTed, GROM is set to be read by CPU.
*/
-WRITE_LINE_MEMBER( tmc0430_device::m_line )
+void tmc0430_device::m_line(int state)
{
m_read_mode = (state==ASSERT_LINE);
LOGMASKED(LOG_LINES, "GROM %d dir %s\n", m_ident>>13, m_read_mode? "READ" : "WRITE");
@@ -144,7 +144,7 @@ WRITE_LINE_MEMBER( tmc0430_device::m_line )
/*
Mode. When ASSERTed, the address counter will be accessed (read or write).
*/
-WRITE_LINE_MEMBER( tmc0430_device::mo_line )
+void tmc0430_device::mo_line(int state)
{
m_address_mode = (state==ASSERT_LINE);
LOGMASKED(LOG_LINES, "GROM %d mode %s\n", m_ident>>13, m_address_mode? "ADDR" : "DATA");
@@ -153,7 +153,7 @@ WRITE_LINE_MEMBER( tmc0430_device::mo_line )
/*
Select. When ASSERTed, the read/write operation is started.
*/
-WRITE_LINE_MEMBER( tmc0430_device::gsq_line )
+void tmc0430_device::gsq_line(int state)
{
if (state==ASSERT_LINE && !m_selected) // check for edge
{
@@ -197,7 +197,7 @@ void tmc0430_device::set_lines(line_state mline, line_state moline, line_state g
For the emulation we may assume that all GROMs at the same clock line
raise their outputs synchronously.
*/
-WRITE_LINE_MEMBER( tmc0430_device::gclock_in )
+void tmc0430_device::gclock_in(int state)
{
int bank = 0;
uint16_t baddr = 0;
@@ -334,7 +334,6 @@ void tmc0430_device::write(uint8_t data)
void tmc0430_device::device_start()
{
- m_gromready.resolve_safe();
save_item(NAME(m_current_clock_level));
save_item(NAME(m_current_ident));
save_item(NAME(m_phase));