diff options
Diffstat (limited to 'src/emu/machine/z80ctc.c')
-rw-r--r-- | src/emu/machine/z80ctc.c | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/emu/machine/z80ctc.c b/src/emu/machine/z80ctc.c index a17f90ee964..be5be3e8f63 100644 --- a/src/emu/machine/z80ctc.c +++ b/src/emu/machine/z80ctc.c @@ -20,7 +20,7 @@ // DEBUGGING //************************************************************************** -#define VERBOSE 0 +#define VERBOSE 0 #define VPRINTF(x) do { if (VERBOSE) logerror x; } while (0) @@ -31,40 +31,40 @@ //************************************************************************** // these are the bits of the incoming commands to the CTC -const int INTERRUPT = 0x80; -const int INTERRUPT_ON = 0x80; -const int INTERRUPT_OFF = 0x00; +const int INTERRUPT = 0x80; +const int INTERRUPT_ON = 0x80; +const int INTERRUPT_OFF = 0x00; -const int MODE = 0x40; -const int MODE_TIMER = 0x00; -const int MODE_COUNTER = 0x40; +const int MODE = 0x40; +const int MODE_TIMER = 0x00; +const int MODE_COUNTER = 0x40; -const int PRESCALER = 0x20; -const int PRESCALER_256 = 0x20; -const int PRESCALER_16 = 0x00; +const int PRESCALER = 0x20; +const int PRESCALER_256 = 0x20; +const int PRESCALER_16 = 0x00; -const int EDGE = 0x10; -const int EDGE_FALLING = 0x00; -const int EDGE_RISING = 0x10; +const int EDGE = 0x10; +const int EDGE_FALLING = 0x00; +const int EDGE_RISING = 0x10; -const int TRIGGER = 0x08; -const int TRIGGER_AUTO = 0x00; -const int TRIGGER_CLOCK = 0x08; +const int TRIGGER = 0x08; +const int TRIGGER_AUTO = 0x00; +const int TRIGGER_CLOCK = 0x08; -const int CONSTANT = 0x04; -const int CONSTANT_LOAD = 0x04; -const int CONSTANT_NONE = 0x00; +const int CONSTANT = 0x04; +const int CONSTANT_LOAD = 0x04; +const int CONSTANT_NONE = 0x00; -const int RESET = 0x02; -const int RESET_CONTINUE = 0x00; -const int RESET_ACTIVE = 0x02; +const int RESET = 0x02; +const int RESET_CONTINUE = 0x00; +const int RESET_ACTIVE = 0x02; -const int CONTROL = 0x01; -const int CONTROL_VECTOR = 0x00; -const int CONTROL_WORD = 0x01; +const int CONTROL = 0x01; +const int CONTROL_VECTOR = 0x00; +const int CONTROL_WORD = 0x01; // these extra bits help us keep things accurate -const int WAITING_FOR_TRIG = 0x100; +const int WAITING_FOR_TRIG = 0x100; @@ -81,7 +81,7 @@ const device_type Z80CTC = &device_creator<z80ctc_device>; z80ctc_device::z80ctc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, Z80CTC, "Zilog Z80 CTC", tag, owner, clock), - device_z80daisy_interface(mconfig, *this) + device_z80daisy_interface(mconfig, *this) { } @@ -161,7 +161,7 @@ void z80ctc_device::device_start() m_channel[3].start(this, 3, nullcb); // register for save states - save_item(NAME(m_vector)); + save_item(NAME(m_vector)); } @@ -301,11 +301,11 @@ void z80ctc_device::interrupt_check() z80ctc_device::ctc_channel::ctc_channel() : m_mode(0), - m_tconst(0), - m_down(0), - m_extclk(0), - m_timer(NULL), - m_int_state(0) + m_tconst(0), + m_down(0), + m_extclk(0), + m_timer(NULL), + m_int_state(0) { memset(&m_zc, 0, sizeof(m_zc)); } @@ -324,11 +324,11 @@ void z80ctc_device::ctc_channel::start(z80ctc_device *device, int index, const d m_timer = m_device->machine().scheduler().timer_alloc(FUNC(static_timer_callback), this); // register for save states - m_device->save_item(NAME(m_mode), m_index); - m_device->save_item(NAME(m_tconst), m_index); - m_device->save_item(NAME(m_down), m_index); - m_device->save_item(NAME(m_extclk), m_index); - m_device->save_item(NAME(m_int_state), m_index); + m_device->save_item(NAME(m_mode), m_index); + m_device->save_item(NAME(m_tconst), m_index); + m_device->save_item(NAME(m_down), m_index); + m_device->save_item(NAME(m_extclk), m_index); + m_device->save_item(NAME(m_int_state), m_index); } @@ -433,7 +433,7 @@ void z80ctc_device::ctc_channel::write(UINT8 data) } // if we're writing the interrupt vector, handle it specially -#if 0 /* Tatsuyuki Satoh changes */ +#if 0 /* Tatsuyuki Satoh changes */ // The 'Z80family handbook' wrote, // interrupt vector is able to set for even channel (0 or 2) else if ((data & CONTROL) == CONTROL_VECTOR && (m_index & 1) == 0) |