diff options
Diffstat (limited to 'src/emu/machine')
28 files changed, 372 insertions, 386 deletions
diff --git a/src/emu/machine/7200fifo.c b/src/emu/machine/7200fifo.c index da998e575ac..6913479d4fc 100644 --- a/src/emu/machine/7200fifo.c +++ b/src/emu/machine/7200fifo.c @@ -41,7 +41,7 @@ void fifo7200_device::device_start() m_ef_handler.resolve(); m_ff_handler.resolve(); m_hf_handler.resolve(); - + // state save save_item(NAME(m_read_ptr)); save_item(NAME(m_write_ptr)); @@ -60,11 +60,11 @@ void fifo7200_device::device_reset() memset(m_buffer, 0, m_ram_size * sizeof(UINT16)); m_read_ptr = 0; m_write_ptr = 0; - + m_ef = 1; m_ff = 0; m_hf = 0; - + if (!m_ef_handler.isnull()) m_ef_handler(m_ef); if (!m_ff_handler.isnull()) m_ff_handler(m_ff); if (!m_hf_handler.isnull()) m_hf_handler(m_hf); @@ -82,7 +82,7 @@ void fifo7200_device::fifo_write(UINT16 data) m_buffer[m_write_ptr] = data & 0x1ff; m_write_ptr = (m_write_ptr + 1) % m_ram_size; - + // update flags if (m_ef) { @@ -110,7 +110,7 @@ UINT16 fifo7200_device::fifo_read() logerror("IDT7200 %s fifo_read underflow!\n", tag()); return 0x1ff; } - + UINT16 ret = m_buffer[m_read_ptr]; m_read_ptr = (m_read_ptr + 1) % m_ram_size; @@ -126,12 +126,12 @@ UINT16 fifo7200_device::fifo_read() m_ef = 1; if (!m_ef_handler.isnull()) m_ef_handler(m_ef); } - + else if (((m_read_ptr + m_ram_size / 2) % m_ram_size) == m_write_ptr) { m_hf = 0; if (!m_hf_handler.isnull()) m_hf_handler(m_hf); } - + return ret; } diff --git a/src/emu/machine/7200fifo.h b/src/emu/machine/7200fifo.h index 189bc3a9b06..d54ee274e4a 100644 --- a/src/emu/machine/7200fifo.h +++ b/src/emu/machine/7200fifo.h @@ -93,7 +93,7 @@ public: DECLARE_READ_LINE_MEMBER( ef_r ) { return m_ef; } DECLARE_READ_LINE_MEMBER( ff_r ) { return m_ff; } DECLARE_READ_LINE_MEMBER( hf_r ) { return m_hf; } - + // normal configuration DECLARE_WRITE16_MEMBER( data_word_w ) { fifo_write(data); } DECLARE_READ16_MEMBER( data_word_r ) { return (UINT16)fifo_read(); } @@ -113,14 +113,14 @@ private: UINT16* m_buffer; int m_ram_size; - + int m_read_ptr; int m_write_ptr; - + int m_ef; // empty flag int m_ff; // full flag int m_hf; // half-full flag - + devcb2_write_line m_ef_handler; devcb2_write_line m_ff_handler; devcb2_write_line m_hf_handler; diff --git a/src/emu/machine/adc1038.h b/src/emu/machine/adc1038.h index 06ab61e3e7a..67156c85f67 100644 --- a/src/emu/machine/adc1038.h +++ b/src/emu/machine/adc1038.h @@ -47,7 +47,7 @@ protected: virtual void device_config_complete(); virtual void device_start(); virtual void device_reset(); - + adc1038_input_read_func m_input_callback_r_func; private: diff --git a/src/emu/machine/adc1213x.h b/src/emu/machine/adc1213x.h index aa2209884fa..f7b7ca7f20b 100644 --- a/src/emu/machine/adc1213x.h +++ b/src/emu/machine/adc1213x.h @@ -40,17 +40,17 @@ public: DECLARE_WRITE8_MEMBER( conv_w ); DECLARE_READ8_MEMBER( do_r ); DECLARE_READ8_MEMBER( eoc_r ); - + protected: // device-level overrides virtual void device_config_complete(); virtual void device_start(); virtual void device_reset(); - + void convert(int channel, int bits16, int lsbfirst); adc1213x_input_convert_func m_input_callback_r_func; - + private: // internal state int m_cycle; diff --git a/src/emu/machine/ay31015.c b/src/emu/machine/ay31015.c index f1713feae73..037e9381609 100644 --- a/src/emu/machine/ay31015.c +++ b/src/emu/machine/ay31015.c @@ -122,7 +122,7 @@ void ay31015_device::device_config_complete() const ay31015_config *intf = reinterpret_cast<const ay31015_config *>(static_config()); if (intf != NULL) *static_cast<ay31015_config *>(this) = *intf; - + // or initialize to defaults if none provided else { @@ -143,13 +143,13 @@ void ay31015_device::device_start() m_read_si.resolve(read_si_cb, *this); m_write_so.resolve(write_so_cb, *this); m_status_changed.resolve(status_changed_cb, *this); - + m_tx_clock = transmitter_clock; m_rx_clock = receiver_clock; - + m_rx_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(ay31015_device::rx_process),this)); m_tx_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(ay31015_device::tx_process),this)); - + update_rx_timer(); update_tx_timer(); @@ -184,7 +184,7 @@ void ay31015_device::device_reset() { m_control_reg = 0; m_rx_data = 0; - + internal_reset(); } @@ -566,12 +566,12 @@ void ay51013_device::internal_reset() { /* total pulses = 16 * data-bits */ UINT8 t1; - + if (m_control_reg & CONTROL_NB2) t1 = (m_control_reg & CONTROL_NB1) ? 8 : 7; else t1 = (m_control_reg & CONTROL_NB1) ? 6 : 5; - + m_total_pulses = t1 << 4; /* total clock pulses to load a byte */ m_second_stop_bit = ((m_control_reg & CONTROL_TSB) ? 16 : 0); /* 2nd stop bit */ if ((t1 == 5) && (m_second_stop_bit == 16)) @@ -730,4 +730,3 @@ void ay31015_device::set_transmit_data( UINT8 data ) update_status_pins(); } } - diff --git a/src/emu/machine/ay31015.h b/src/emu/machine/ay31015.h index e3f7b36990f..b82c7dd124e 100644 --- a/src/emu/machine/ay31015.h +++ b/src/emu/machine/ay31015.h @@ -74,32 +74,32 @@ public: ay31015_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); ~ay31015_device() {} - + /* Set an input pin */ void set_input_pin( ay31015_input_pin_t pin, int data ); - - + + /* Get an output pin */ int get_output_pin( ay31015_output_pin_t pin ); - - + + /* Set a new transmitter clock (new_clock is in Hz) */ void set_transmitter_clock( double new_clock ); - - + + /* Set a new receiver clock (new_clock is in Hz) */ void set_receiver_clock( double new_clock ); - - + + /* Reead the received data */ /* The received data is available on RD8-RD1 (pins 5-12) */ UINT8 get_received_data(); - - + + /* Set the transmitter buffer */ /* The data to transmit is set on DB1-DB8 (pins 26-33) */ void set_transmit_data( UINT8 data ); - + protected: // device-level overrides virtual void device_config_complete(); @@ -120,13 +120,13 @@ protected: TIMER_CALLBACK_MEMBER(tx_process); int m_pins[41]; - + UINT8 m_control_reg; UINT8 m_status_reg; UINT16 m_second_stop_bit; // 0, 8, 16 UINT16 m_total_pulses; // bits * 16 UINT8 m_internal_sample; - + state_t m_rx_state; UINT8 m_rx_data; // byte being received UINT8 m_rx_buffer; // received byte waiting to be accepted by computer @@ -135,7 +135,7 @@ protected: UINT16 m_rx_pulses; // total pulses left double m_rx_clock; emu_timer *m_rx_timer; - + state_t m_tx_state; UINT8 m_tx_data; // byte being sent UINT8 m_tx_buffer; // next byte to send @@ -143,7 +143,7 @@ protected: UINT16 m_tx_pulses; // total pulses left double m_tx_clock; emu_timer *m_tx_timer; - + devcb_resolved_read8 m_read_si; /* SI - pin 20 - This will be called whenever the SI pin is sampled. Optional */ devcb_resolved_write8 m_write_so; /* SO - pin 25 - This will be called whenever data is put on the SO pin. Optional */ devcb_resolved_write8 m_status_changed; /* This will be called whenever one of the status pins may have changed. Optional */ @@ -153,14 +153,14 @@ class ay51013_device : public ay31015_device { public: ay51013_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - + protected: virtual void internal_reset(); }; -extern const device_type AY31015; // For AY-3-1014A, AY-3-1015(D) and HD6402 variants -extern const device_type AY51013; // For AY-3-1014, AY-5-1013 and AY-6-1013 variants +extern const device_type AY31015; // For AY-3-1014A, AY-3-1015(D) and HD6402 variants +extern const device_type AY51013; // For AY-3-1014, AY-5-1013 and AY-6-1013 variants diff --git a/src/emu/machine/com8116.c b/src/emu/machine/com8116.c index d2a9c0aa171..9471fccdac8 100644 --- a/src/emu/machine/com8116.c +++ b/src/emu/machine/com8116.c @@ -48,9 +48,9 @@ const int com8116_device::divisors_32X_5_0688MHz[] = com8116_device::com8116_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, COM8116, "COM8116", tag, owner, clock), - m_write_fx4(*this), - m_write_fr(*this), - m_write_ft(*this) + m_write_fx4(*this), + m_write_fr(*this), + m_write_ft(*this) { } diff --git a/src/emu/machine/generic.c b/src/emu/machine/generic.c index 62adfbfe379..2739c3959fc 100644 --- a/src/emu/machine/generic.c +++ b/src/emu/machine/generic.c @@ -301,7 +301,7 @@ static astring &nvram_filename(astring &result, device_t &device) running_machine &machine = device.machine(); // start with either basename or basename_biosnum - result.cpy(machine.basename()); + result.cpy(machine.basename()); if (device.machine().root_device().system_bios() != 0 && device.machine().root_device().default_bios() != device.machine().root_device().system_bios()) result.catprintf("_%d", device.machine().root_device().system_bios() - 1); diff --git a/src/emu/machine/idectrl.c b/src/emu/machine/idectrl.c index 363c0151ba1..4753ad6e72f 100644 --- a/src/emu/machine/idectrl.c +++ b/src/emu/machine/idectrl.c @@ -97,7 +97,7 @@ void ide_controller_device::set_irq(int state) LOG(("IDE interrupt assert\n")); else LOG(("IDE interrupt clear\n")); - + /* signal an interrupt */ m_irq_handler(state); interrupt_pending = state; @@ -885,7 +885,7 @@ READ8_MEMBER( ide_controller_device::read_via_config ) break; } -// printf( "read via config %04x %04x %04x\n", offset, result, mem_mask ); +// printf( "read via config %04x %04x %04x\n", offset, result, mem_mask ); return result; } @@ -1009,7 +1009,7 @@ READ16_MEMBER( ide_controller_device::read_cs0 ) break; } -// printf( "read cs0 %04x %04x %04x\n", offset, result, mem_mask ); +// printf( "read cs0 %04x %04x %04x\n", offset, result, mem_mask ); /* return the result */ return result; @@ -1071,7 +1071,7 @@ READ16_MEMBER( ide_controller_device::read_cs1 ) break; } -// printf( "read cs1 %04x %04x %04x\n", offset, result, mem_mask ); +// printf( "read cs1 %04x %04x %04x\n", offset, result, mem_mask ); /* return the result */ return result; @@ -1086,7 +1086,7 @@ READ16_MEMBER( ide_controller_device::read_cs1 ) WRITE8_MEMBER( ide_controller_device::write_via_config ) { -// printf( "write via config %04x %04x %04x\n", offset, data, mem_mask ); +// printf( "write via config %04x %04x %04x\n", offset, data, mem_mask ); /* logit */ LOG(("%s:IDE via config write to %X = %08X, mem_mask=%d\n", machine().describe_context(), offset, data, mem_mask)); @@ -1139,7 +1139,7 @@ void ide_controller_device::write_dma( UINT16 data ) WRITE16_MEMBER( ide_controller_device::write_cs0 ) { -// printf( "write cs0 %04x %04x %04x\n", offset, data, mem_mask ); +// printf( "write cs0 %04x %04x %04x\n", offset, data, mem_mask ); switch (offset) { @@ -1229,7 +1229,7 @@ WRITE16_MEMBER( ide_controller_device::write_cs1_pc ) WRITE16_MEMBER( ide_controller_device::write_cs1 ) { -// printf( "write cs1 %04x %04x %04x\n", offset, data, mem_mask ); +// printf( "write cs1 %04x %04x %04x\n", offset, data, mem_mask ); /* logit */ LOG(("%s:IDE cs1 write to %X = %08X, mem_mask=%d\n", machine().describe_context(), offset, data, mem_mask)); diff --git a/src/emu/machine/idectrl.h b/src/emu/machine/idectrl.h index 38ba0f33818..9aedae570c4 100644 --- a/src/emu/machine/idectrl.h +++ b/src/emu/machine/idectrl.h @@ -100,7 +100,7 @@ public: DECLARE_READ16_MEMBER(read_cs1_pc); DECLARE_WRITE16_MEMBER(write_cs0_pc); DECLARE_WRITE16_MEMBER(write_cs1_pc); - + virtual void set_irq(int state); virtual void set_dmarq(int state); void read_sector_done(); diff --git a/src/emu/machine/idehd.c b/src/emu/machine/idehd.c index d2932a151e6..cf3542e4bc9 100644 --- a/src/emu/machine/idehd.c +++ b/src/emu/machine/idehd.c @@ -239,7 +239,7 @@ ide_hdd_device::ide_hdd_device(const machine_config &mconfig, device_type type, void ide_hdd_device::device_start() { -// save_item(NAME(features)); +// save_item(NAME(features)); save_item(NAME(cur_cylinder)); save_item(NAME(cur_sector)); diff --git a/src/emu/machine/im6402.c b/src/emu/machine/im6402.c index a6b81c1fe2c..2dcd019e8da 100644 --- a/src/emu/machine/im6402.c +++ b/src/emu/machine/im6402.c @@ -278,7 +278,7 @@ WRITE8_MEMBER( im6402_device::write ) } else { - set_tbre(CLEAR_LINE); + set_tbre(CLEAR_LINE); } } diff --git a/src/emu/machine/machine.mak b/src/emu/machine/machine.mak index 1f189c40f99..cf110df826e 100644 --- a/src/emu/machine/machine.mak +++ b/src/emu/machine/machine.mak @@ -15,7 +15,7 @@ MACHINEOBJ = $(EMUOBJ)/machine #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter NCR53C7XX,$(MACHINES)),) @@ -24,7 +24,7 @@ MACHINEOBJS += $(MACHINEOBJ)/53c7xx.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LSI53C810,$(MACHINES)),) @@ -33,7 +33,7 @@ MACHINEOBJS += $(MACHINEOBJ)/53c810.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter 6522VIA,$(MACHINES)),) @@ -41,7 +41,7 @@ MACHINEOBJS += $(MACHINEOBJ)/6522via.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TPI6525,$(MACHINES)),) @@ -49,7 +49,7 @@ MACHINEOBJS += $(MACHINEOBJ)/6525tpi.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter 6526CIA,$(MACHINES)),) @@ -57,7 +57,7 @@ MACHINEOBJS += $(MACHINEOBJ)/6526cia.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RIOT6532,$(MACHINES)),) @@ -65,7 +65,7 @@ MACHINEOBJS += $(MACHINEOBJ)/6532riot.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter 6821PIA,$(MACHINES)),) @@ -73,7 +73,7 @@ MACHINEOBJS += $(MACHINEOBJ)/6821pia.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter 6840PTM,$(MACHINES)),) @@ -81,7 +81,7 @@ MACHINEOBJS += $(MACHINEOBJ)/6840ptm.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ACIA6850,$(MACHINES)),) @@ -89,16 +89,16 @@ MACHINEOBJS += $(MACHINEOBJ)/6850acia.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter 68681,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/68681.o +MACHINEOBJS += $(MACHINEOBJ)/68681.o MACHINEOBJS += $(MACHINEOBJ)/n68681.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter 7200FIFO,$(MACHINES)),) @@ -106,55 +106,55 @@ MACHINEOBJS += $(MACHINEOBJ)/7200fifo.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TTL74123,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/74123.o +MACHINEOBJS += $(MACHINEOBJ)/74123.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TTL74145,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/74145.o +MACHINEOBJS += $(MACHINEOBJ)/74145.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TTL74148,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/74148.o +MACHINEOBJS += $(MACHINEOBJ)/74148.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TTL74153,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/74153.o +MACHINEOBJS += $(MACHINEOBJ)/74153.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TTL74181,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/74181.o +MACHINEOBJS += $(MACHINEOBJ)/74181.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TTL7474,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/7474.o +MACHINEOBJS += $(MACHINEOBJ)/7474.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter KBDC8042,$(MACHINES)),) @@ -162,7 +162,7 @@ MACHINEOBJS += $(MACHINEOBJ)/8042kbdc.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8257,$(MACHINES)),) @@ -170,7 +170,7 @@ MACHINEOBJS += $(MACHINEOBJ)/8257dma.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AAKARTDEV,$(MACHINES)),) @@ -178,7 +178,7 @@ MACHINEOBJS += $(MACHINEOBJ)/aakart.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ADC0808,$(MACHINES)),) @@ -186,7 +186,7 @@ MACHINEOBJS += $(MACHINEOBJ)/adc0808.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ADC083X,$(MACHINES)),) @@ -194,7 +194,7 @@ MACHINEOBJS += $(MACHINEOBJ)/adc083x.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ADC1038,$(MACHINES)),) @@ -202,7 +202,7 @@ MACHINEOBJS += $(MACHINEOBJ)/adc1038.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ADC1213X,$(MACHINES)),) @@ -210,7 +210,7 @@ MACHINEOBJS += $(MACHINEOBJ)/adc1213x.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AM53CF96,$(MACHINES)),) @@ -218,7 +218,7 @@ MACHINEOBJS += $(MACHINEOBJ)/am53cf96.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AM9517A,$(MACHINES)),) @@ -226,7 +226,7 @@ MACHINEOBJS += $(MACHINEOBJ)/am9517a.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AMIGAFDC,$(MACHINES)),) @@ -234,7 +234,7 @@ MACHINEOBJS += $(MACHINEOBJ)/amigafdc.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AT28C16,$(MACHINES)),) @@ -242,7 +242,7 @@ MACHINEOBJS += $(MACHINEOBJ)/at28c16.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AT29040,$(MACHINES)),) @@ -250,7 +250,7 @@ MACHINEOBJS += $(MACHINEOBJ)/at29040a.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AT45DBXX,$(MACHINES)),) @@ -258,7 +258,7 @@ MACHINEOBJS += $(MACHINEOBJ)/at45dbxx.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ATAFLASH,$(MACHINES)),) @@ -268,7 +268,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ataflash.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter AY31015,$(MACHINES)),) @@ -276,7 +276,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ay31015.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter BANKDEV,$(MACHINES)),) @@ -284,7 +284,7 @@ MACHINEOBJS += $(MACHINEOBJ)/bankdev.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter CDP1852,$(MACHINES)),) @@ -292,7 +292,7 @@ MACHINEOBJS += $(MACHINEOBJ)/cdp1852.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter CDP1871,$(MACHINES)),) @@ -300,7 +300,7 @@ MACHINEOBJS += $(MACHINEOBJ)/cdp1871.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter COM8116,$(MACHINES)),) @@ -308,15 +308,15 @@ MACHINEOBJS += $(MACHINEOBJ)/com8116.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter CR589,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/cr589.o +MACHINEOBJS += $(MACHINEOBJ)/cr589.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter CTRONICS,$(MACHINES)),) @@ -324,7 +324,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ctronics.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter DS1302,$(MACHINES)),) @@ -332,7 +332,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ds1302.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter DS2401,$(MACHINES)),) @@ -340,7 +340,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ds2401.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter DS2404,$(MACHINES)),) @@ -348,7 +348,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ds2404.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter DS75160A,$(MACHINES)),) @@ -356,7 +356,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ds75160a.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter DS75161A,$(MACHINES)),) @@ -364,15 +364,15 @@ MACHINEOBJS += $(MACHINEOBJ)/ds75161a.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter E0516,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/e0516.o +MACHINEOBJS += $(MACHINEOBJ)/e0516.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter EEPROMDEV,$(MACHINES)),) @@ -380,7 +380,7 @@ MACHINEOBJS += $(MACHINEOBJ)/eeprom.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ER2055,$(MACHINES)),) @@ -388,7 +388,7 @@ MACHINEOBJS += $(MACHINEOBJ)/er2055.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ER59256,$(MACHINES)),) @@ -396,15 +396,15 @@ MACHINEOBJS += $(MACHINEOBJ)/er59256.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter F3853,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/f3853.o +MACHINEOBJS += $(MACHINEOBJ)/f3853.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I2CMEM,$(MACHINES)),) @@ -412,72 +412,72 @@ MACHINEOBJS += $(MACHINEOBJ)/i2cmem.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8155,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8155.o +MACHINEOBJS += $(MACHINEOBJ)/i8155.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8212,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8212.o +MACHINEOBJS += $(MACHINEOBJ)/i8212.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8214,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8214.o +MACHINEOBJS += $(MACHINEOBJ)/i8214.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8243,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8243.o +MACHINEOBJS += $(MACHINEOBJ)/i8243.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8251,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8251.o +MACHINEOBJS += $(MACHINEOBJ)/i8251.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8279,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8279.o +MACHINEOBJS += $(MACHINEOBJ)/i8279.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8355,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8355.o +MACHINEOBJS += $(MACHINEOBJ)/i8355.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter IDE,$(MACHINES)),) MACHINEOBJS += $(MACHINEOBJ)/idectrl.o -MACHINEOBJS += $(MACHINEOBJ)/idehd.o +MACHINEOBJS += $(MACHINEOBJ)/idehd.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter IM6402,$(MACHINES)),) @@ -485,7 +485,7 @@ MACHINEOBJS += $(MACHINEOBJ)/im6402.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter INS8154,$(MACHINES)),) @@ -493,7 +493,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ins8154.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter INS8250,$(MACHINES)),) @@ -501,7 +501,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ins8250.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter INTELFLASH,$(MACHINES)),) @@ -509,7 +509,7 @@ MACHINEOBJS += $(MACHINEOBJ)/intelfsh.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter JVS,$(MACHINES)),) @@ -518,7 +518,7 @@ MACHINEOBJS += $(MACHINEOBJ)/jvshost.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter K033906,$(MACHINES)),) @@ -526,7 +526,7 @@ MACHINEOBJS += $(MACHINEOBJ)/k033906.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter K053252,$(MACHINES)),) @@ -534,7 +534,7 @@ MACHINEOBJS += $(MACHINEOBJ)/k053252.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter K056230,$(MACHINES)),) @@ -542,7 +542,7 @@ MACHINEOBJS += $(MACHINEOBJ)/k056230.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LATCH8,$(MACHINES)),) @@ -550,7 +550,7 @@ MACHINEOBJS += $(MACHINEOBJ)/latch8.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LC89510,$(MACHINES)),) @@ -558,7 +558,7 @@ MACHINEOBJS += $(MACHINEOBJ)/lc89510.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LDPR8210,$(MACHINES)),) @@ -566,7 +566,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ldpr8210.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LDSTUB,$(MACHINES)),) @@ -574,7 +574,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ldstub.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LDV1000,$(MACHINES)),) @@ -584,7 +584,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ldv1000.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LDVP931,$(MACHINES)),) @@ -592,7 +592,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ldvp931.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter LINFLASH,$(MACHINES)),) @@ -600,7 +600,7 @@ MACHINEOBJS += $(MACHINEOBJ)/linflash.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter M6M80011AP,$(MACHINES)),) @@ -608,7 +608,7 @@ MACHINEOBJS += $(MACHINEOBJ)/m6m80011ap.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MATSUCD,$(MACHINES)),) @@ -616,7 +616,7 @@ MACHINEOBJS += $(MACHINEOBJ)/matsucd.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MB14241,$(MACHINES)),) @@ -624,7 +624,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mb14241.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MB3773,$(MACHINES)),) @@ -632,7 +632,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mb3773.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MB87078,$(MACHINES)),) @@ -640,7 +640,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mb87078.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MB89371,$(MACHINES)),) @@ -648,7 +648,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mb89371.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC146818,$(MACHINES)),) @@ -656,7 +656,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc146818.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC2661,$(MACHINES)),) @@ -664,7 +664,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc2661.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC6843,$(MACHINES)),) @@ -672,7 +672,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc6843.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC6846,$(MACHINES)),) @@ -680,7 +680,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc6846.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC6852,$(MACHINES)),) @@ -688,7 +688,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc6852.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC6854,$(MACHINES)),) @@ -696,7 +696,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc6854.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MC68901,$(MACHINES)),) @@ -704,7 +704,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mc68901.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MCCS1850,$(MACHINES)),) @@ -712,7 +712,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mccs1850.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MCF5206E,$(MACHINES)),) @@ -720,7 +720,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mcf5206e.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MICROTOUCH,$(MACHINES)),) @@ -728,7 +728,7 @@ MACHINEOBJS += $(MACHINEOBJ)/microtch.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MM58274C,$(MACHINES)),) @@ -736,7 +736,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mm58274c.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MM74C922,$(MACHINES)),) @@ -744,7 +744,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mm74c922.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MOS6526,$(MACHINES)),) @@ -752,7 +752,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mos6526.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MOS6529,$(MACHINES)),) @@ -760,7 +760,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mos6529.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MIOT6530,$(MACHINES)),) @@ -768,7 +768,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mos6530.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MOS6551,$(MACHINES)),) @@ -776,7 +776,7 @@ MACHINEOBJS += $(MACHINEOBJ)/mos6551.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MSM5832,$(MACHINES)),) @@ -784,7 +784,7 @@ MACHINEOBJS += $(MACHINEOBJ)/msm5832.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MSM58321,$(MACHINES)),) @@ -792,7 +792,7 @@ MACHINEOBJS += $(MACHINEOBJ)/msm58321.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter MSM6242,$(MACHINES)),) @@ -800,7 +800,7 @@ MACHINEOBJS += $(MACHINEOBJ)/msm6242.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter NCR539x,$(MACHINES)),) @@ -809,7 +809,7 @@ MACHINEOBJS += $(MACHINEOBJ)/ncr539x.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter NMC9306,$(MACHINES)),) @@ -817,7 +817,7 @@ MACHINEOBJS += $(MACHINEOBJ)/nmc9306.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter NSCSI,$(MACHINES)),) @@ -827,7 +827,7 @@ MACHINEOBJS += $(MACHINEOBJ)/nscsi_hd.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PCF8593,$(MACHINES)),) @@ -835,15 +835,15 @@ MACHINEOBJS += $(MACHINEOBJ)/pcf8593.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PCI,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/pci.o +MACHINEOBJS += $(MACHINEOBJ)/pci.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PCKEYBRD,$(MACHINES)),) @@ -851,7 +851,7 @@ MACHINEOBJS += $(MACHINEOBJ)/pckeybrd.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PD4990A_OLD,$(MACHINES)),) @@ -859,7 +859,7 @@ MACHINEOBJS += $(MACHINEOBJ)/pd4990a.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PIC8259,$(MACHINES)),) @@ -867,7 +867,7 @@ MACHINEOBJS += $(MACHINEOBJ)/pic8259.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PIT8253,$(MACHINES)),) @@ -875,15 +875,15 @@ MACHINEOBJS += $(MACHINEOBJ)/pit8253.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PLA,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/pla.o +MACHINEOBJS += $(MACHINEOBJ)/pla.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RF5C296,$(MACHINES)),) @@ -892,7 +892,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rf5c296.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter ROC10937,$(MACHINES)),) @@ -900,7 +900,7 @@ MACHINEOBJS += $(MACHINEOBJ)/roc10937.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RP5C01,$(MACHINES)),) @@ -908,7 +908,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rp5c01.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RP5C15,$(MACHINES)),) @@ -916,7 +916,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rp5c15.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RP5H01,$(MACHINES)),) @@ -924,7 +924,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rp5h01.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RTC4543,$(MACHINES)),) @@ -932,7 +932,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rtc4543.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RTC65271,$(MACHINES)),) @@ -940,7 +940,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rtc65271.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter RTC9701,$(MACHINES)),) @@ -948,7 +948,7 @@ MACHINEOBJS += $(MACHINEOBJ)/rtc9701.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter S3520CF,$(MACHINES)),) @@ -956,7 +956,7 @@ MACHINEOBJS += $(MACHINEOBJ)/s3520cf.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter S3C2400,$(MACHINES)),) @@ -964,7 +964,7 @@ MACHINEOBJS += $(MACHINEOBJ)/s3c2400.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter S3C2410,$(MACHINES)),) @@ -972,7 +972,7 @@ MACHINEOBJS += $(MACHINEOBJ)/s3c2410.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter S3C2440,$(MACHINES)),) @@ -980,7 +980,7 @@ MACHINEOBJS += $(MACHINEOBJ)/s3c2440.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SATURN,$(MACHINES)),) @@ -988,7 +988,7 @@ MACHINEOBJS += $(MACHINEOBJ)/saturn.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SCSI,$(MACHINES)),) @@ -1001,7 +1001,7 @@ MACHINEOBJS += $(MACHINEOBJ)/scsihle.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SCUDSP,$(MACHINES)),) @@ -1009,7 +1009,7 @@ MACHINEOBJS += $(MACHINEOBJ)/scudsp.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SEIBU_COP,$(MACHINES)),) @@ -1017,7 +1017,7 @@ MACHINEOBJS += $(MACHINEOBJ)/seibu_cop.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SERFLASH,$(MACHINES)),) @@ -1025,7 +1025,7 @@ MACHINEOBJS += $(MACHINEOBJ)/serflash.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SMC91C9X,$(MACHINES)),) @@ -1033,23 +1033,23 @@ MACHINEOBJS += $(MACHINEOBJ)/smc91c9x.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SMPC,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/smpc.o +MACHINEOBJS += $(MACHINEOBJ)/smpc.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter STVCD,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/stvcd.o +MACHINEOBJS += $(MACHINEOBJ)/stvcd.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TC0091LVC,$(MACHINES)),) @@ -1057,7 +1057,7 @@ MACHINEOBJS += $(MACHINEOBJ)/tc009xlvc.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TIMEKPR,$(MACHINES)),) @@ -1065,7 +1065,7 @@ MACHINEOBJS += $(MACHINEOBJ)/timekpr.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TMP68301,$(MACHINES)),) @@ -1073,7 +1073,7 @@ MACHINEOBJS += $(MACHINEOBJ)/tmp68301.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TMS6100,$(MACHINES)),) @@ -1081,7 +1081,7 @@ MACHINEOBJS += $(MACHINEOBJ)/tms6100.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TMS9901,$(MACHINES)),) @@ -1089,7 +1089,7 @@ MACHINEOBJS += $(MACHINEOBJ)/tms9901.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter TMS9902,$(MACHINES)),) @@ -1097,7 +1097,7 @@ MACHINEOBJS += $(MACHINEOBJ)/tms9902.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter UPD1990A,$(MACHINES)),) @@ -1105,7 +1105,7 @@ MACHINEOBJS += $(MACHINEOBJ)/upd1990a.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter UPD4701,$(MACHINES)),) @@ -1113,7 +1113,7 @@ MACHINEOBJS += $(MACHINEOBJ)/upd4701.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter UPD7002,$(MACHINES)),) @@ -1121,7 +1121,7 @@ MACHINEOBJS += $(MACHINEOBJ)/upd7002.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter UPD765,$(MACHINES)),) @@ -1129,15 +1129,15 @@ MACHINEOBJS += $(MACHINEOBJ)/upd765.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter V3021,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/v3021.o +MACHINEOBJS += $(MACHINEOBJ)/v3021.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter WD_FDC,$(MACHINES)),) @@ -1146,7 +1146,7 @@ MACHINEOBJS += $(MACHINEOBJ)/fdc_pll.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter WD11C00_17,$(MACHINES)),) @@ -1154,7 +1154,7 @@ MACHINEOBJS += $(MACHINEOBJ)/wd11c00_17.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter WD17XX,$(MACHINES)),) @@ -1162,7 +1162,7 @@ MACHINEOBJS += $(MACHINEOBJ)/wd17xx.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter WD2010,$(MACHINES)),) @@ -1170,7 +1170,7 @@ MACHINEOBJS += $(MACHINEOBJ)/wd2010.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter WD33C93,$(MACHINES)),) @@ -1179,15 +1179,15 @@ MACHINEOBJS += $(MACHINEOBJ)/wd33c93.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter X2212,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/x2212.o +MACHINEOBJS += $(MACHINEOBJ)/x2212.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter X76F041,$(MACHINES)),) @@ -1196,7 +1196,7 @@ MACHINEOBJS += $(MACHINEOBJ)/x76f041.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter X76F100,$(MACHINES)),) @@ -1205,7 +1205,7 @@ MACHINEOBJS += $(MACHINEOBJ)/x76f100.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z80CTC,$(MACHINES)),) @@ -1213,7 +1213,7 @@ MACHINEOBJS += $(MACHINEOBJ)/z80ctc.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z80DART,$(MACHINES)),) @@ -1221,7 +1221,7 @@ MACHINEOBJS += $(MACHINEOBJ)/z80dart.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z80DMA,$(MACHINES)),) @@ -1229,7 +1229,7 @@ MACHINEOBJS += $(MACHINEOBJ)/z80dma.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z80PIO,$(MACHINES)),) @@ -1237,7 +1237,7 @@ MACHINEOBJS += $(MACHINEOBJ)/z80pio.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z80SIO,$(MACHINES)),) @@ -1245,7 +1245,7 @@ MACHINEOBJS += $(MACHINEOBJ)/z80sio.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z80STI,$(MACHINES)),) @@ -1253,15 +1253,15 @@ MACHINEOBJS += $(MACHINEOBJ)/z80sti.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter Z8536,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/z8536.o +MACHINEOBJS += $(MACHINEOBJ)/z8536.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter SECFLASH,$(MACHINES)),) @@ -1269,7 +1269,7 @@ MACHINEOBJS += $(MACHINEOBJ)/secflash.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter PCCARD,$(MACHINES)),) @@ -1277,11 +1277,11 @@ MACHINEOBJS += $(MACHINEOBJ)/pccard.o endif #------------------------------------------------- -# +# #------------------------------------------------- ifneq ($(filter I8255,$(MACHINES)),) -MACHINEOBJS += $(MACHINEOBJ)/i8255.o +MACHINEOBJS += $(MACHINEOBJ)/i8255.o endif $(MACHINEOBJ)/s3c2400.o: $(MACHINESRC)/s3c24xx.c diff --git a/src/emu/machine/mb14241.h b/src/emu/machine/mb14241.h index 7b876c0252e..43afabfe2bb 100644 --- a/src/emu/machine/mb14241.h +++ b/src/emu/machine/mb14241.h @@ -12,7 +12,7 @@ class mb14241_device : public device_t { public: mb14241_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - + DECLARE_WRITE8_MEMBER ( shift_count_w ); DECLARE_WRITE8_MEMBER ( shift_data_w ); DECLARE_READ8_MEMBER( shift_result_r ); @@ -25,7 +25,7 @@ protected: private: // internal state - + UINT16 m_shift_data; /* 15 bits only */ UINT8 m_shift_count; /* 3 bits */ }; diff --git a/src/emu/machine/mc68901.c b/src/emu/machine/mc68901.c index 1b920973179..d0b6558c55c 100644 --- a/src/emu/machine/mc68901.c +++ b/src/emu/machine/mc68901.c @@ -1232,7 +1232,7 @@ void mc68901_device::register_w(offs_t offset, UINT8 data) if (data & UCR_PARITY_EVEN) { if (LOG) logerror("MC68901 '%s' Parity : Even\n", tag()); - + parity_code = SERIAL_PARITY_EVEN; } else diff --git a/src/emu/machine/mm58274c.c b/src/emu/machine/mm58274c.c index 0bbefe91095..56e94eecad1 100644 --- a/src/emu/machine/mm58274c.c +++ b/src/emu/machine/mm58274c.c @@ -99,7 +99,7 @@ void mm58274c_device::device_start() save_item(NAME(m_minutes2)); save_item(NAME(m_seconds1)); save_item(NAME(m_seconds2)); - save_item(NAME(m_tenths)); + save_item(NAME(m_tenths)); } //------------------------------------------------- @@ -109,14 +109,14 @@ void mm58274c_device::device_start() void mm58274c_device::device_reset() { system_time systime; - + /* get the current date/time from the core */ machine().current_datetime(systime); - + m_clk_set = systime.local_time.year & 3 << 2; if (m_mode24) m_clk_set |= clk_set_24; - + /* The clock count starts on 1st January 1900 */ m_wday = 1 + ((systime.local_time.weekday - m_day1) % 7); m_years1 = (systime.local_time.year / 10) % 10; @@ -175,75 +175,75 @@ READ8_MEMBER( mm58274c_device::read ) reply = m_status; m_status = 0; break; - + case 0x01: /* Tenths of Seconds */ reply = m_tenths; break; - + case 0x02: /* Units Seconds */ reply = m_seconds2; break; - + case 0x03: /* Tens Seconds */ reply = m_seconds1; break; - + case 0x04: /* Units Minutes */ reply = m_minutes2; break; - + case 0x05: /* Tens Minutes */ reply = m_minutes1; break; - + case 0x06: /* Units Hours */ reply = m_hours2; break; - + case 0x07: /* Tens Hours */ reply = m_hours1; break; - + case 0x08: /* Units Days */ reply = m_days2; break; - + case 0x09: /* Tens Days */ reply = m_days1; break; - + case 0x0a: /* Units Months */ reply = m_months2; break; - + case 0x0b: /* Tens Months */ reply = m_months1; break; - + case 0x0c: /* Units Years */ reply = m_years2; break; - + case 0x0d: /* Tens Years */ reply = m_years1; break; - + case 0x0e: /* Day of Week */ reply = m_wday; break; - + case 0x0f: /* Clock Setting & Interrupt Registers */ - if (m_control & ctl_intsel) /* interrupt register */ + if (m_control & ctl_intsel) /* interrupt register */ reply = m_int_ctl; - else /* clock setting register */ + else /* clock setting register */ { - if (m_clk_set & clk_set_24) /* 24-hour mode */ + if (m_clk_set & clk_set_24) /* 24-hour mode */ reply = m_clk_set & ~clk_set_pm; - else /* 12-hour mode */ + else /* 12-hour mode */ reply = m_clk_set; } break; - + default: reply = 0; break; @@ -261,90 +261,90 @@ WRITE8_MEMBER( mm58274c_device::write ) switch (offset) { case 0x00: /* Control Register (test mode and interrupt not emulated) */ - if ((!(m_control & ctl_intstop)) && (data & ctl_intstop)) /* interrupt stop */ + if ((!(m_control & ctl_intstop)) && (data & ctl_intstop)) /* interrupt stop */ m_interrupt_timer->enable(0); - else if ((m_control & ctl_intstop) && (!(data & ctl_intstop))) /* interrupt run */ + else if ((m_control & ctl_intstop) && (!(data & ctl_intstop))) /* interrupt run */ { attotime period = interrupt_period_table(m_int_ctl & int_ctl_dly); - + m_interrupt_timer->adjust(period, 0, m_int_ctl & int_ctl_rpt ? period : attotime::zero); } - if (data & ctl_clkstop) /* stopping the clock clears the tenth counter */ + if (data & ctl_clkstop) /* stopping the clock clears the tenth counter */ m_tenths = 0; m_control = data; break; - + case 0x01: /* Tenths of Seconds: cannot be written */ break; - + case 0x02: /* Units Seconds */ m_seconds2 = data; break; - + case 0x03: /* Tens Seconds */ m_seconds1 = data; break; - + case 0x04: /* Units Minutes */ m_minutes2 = data; break; - + case 0x05: /* Tens Minutes */ m_minutes1 = data; break; - + case 0x06: /* Units Hours */ m_hours2 = data; break; - + case 0x07: /* Tens Hours */ m_hours1 = data; break; - + case 0x08: /* Units Days */ m_days2 = data; break; - + case 0x09: /* Tens Days */ m_days1 = data; break; - + case 0x0a: /* Units Months */ m_months2 = data; break; - + case 0x0b: /* Tens Months */ m_months1 = data; break; - + case 0x0c: /* Units Years */ m_years2 = data; break; - + case 0x0d: /* Tens Years */ m_years1 = data; break; - + case 0x0e: /* Day of Week */ m_wday = data; break; - + case 0x0f: /* Clock Setting & Interrupt Registers */ - if (m_control & ctl_intsel) /* interrupt register (not emulated) */ + if (m_control & ctl_intsel) /* interrupt register (not emulated) */ { m_int_ctl = data; - if (!(m_control & ctl_intstop)) /* interrupt run */ + if (!(m_control & ctl_intstop)) /* interrupt run */ { attotime period = interrupt_period_table(m_int_ctl & int_ctl_dly); - + m_interrupt_timer->adjust(period, 0, m_int_ctl & int_ctl_rpt ? period : attotime::zero); } } - else /* clock setting register */ + else /* clock setting register */ { m_clk_set = data; #if 0 - if (m_clk_set & clk_set_24) /* 24-hour mode */ + if (m_clk_set & clk_set_24) /* 24-hour mode */ m_clk_set &= ~clk_set_pm; #endif } @@ -482,4 +482,3 @@ TIMER_CALLBACK_MEMBER(mm58274c_device::rtc_increment_cb) } } } - diff --git a/src/emu/machine/mm58274c.h b/src/emu/machine/mm58274c.h index 02d24c4b726..8f1a28b619f 100644 --- a/src/emu/machine/mm58274c.h +++ b/src/emu/machine/mm58274c.h @@ -26,7 +26,7 @@ class mm58274c_device : public device_t, public: mm58274c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); ~mm58274c_device() {} - + DECLARE_READ8_MEMBER(read); DECLARE_WRITE8_MEMBER(write); @@ -42,14 +42,14 @@ protected: private: // internal state attotime interrupt_period_table(int val); - + int m_status; /* status register (*read* from address 0 = control register) */ int m_control; /* control register (*write* to address 0) */ - + int m_clk_set; /* clock setting register */ int m_int_ctl; /* interrupt control register */ - - + + int m_wday; /* day of the week (1-7 (1=day1 as set in init)) */ int m_years1; /* years (BCD: 0-99) */ int m_years2; @@ -64,7 +64,7 @@ private: int m_seconds1; /* seconds (BCD : 0-59) */ int m_seconds2; int m_tenths; /* tenths of second (BCD : 0-9) */ - + emu_timer *m_increment_rtc; emu_timer *m_interrupt_timer; }; diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c index ac47cddf7a7..5c5dd6cb006 100644 --- a/src/emu/machine/pit8253.c +++ b/src/emu/machine/pit8253.c @@ -75,24 +75,24 @@ void pit8253_device::device_config_complete() // device_start - device-specific startup //------------------------------------------------- -void pit8253_device::common_start( int device_type ) +void pit8253_device::common_start( int device_type ) { m_device_type = device_type; - + /* register for state saving */ for (int timerno = 0; timerno < PIT8253_MAX_TIMER; timerno++) { pit8253_timer *timer = get_timer(timerno); - + /* initialize timer */ timer->clockin = m_intf_timer[timerno].clockin; timer->updatetimer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(pit8253_device::update_timer_cb),this)); timer->updatetimer->adjust(attotime::never, timerno); - + /* resolve callbacks */ timer->in_gate_func.resolve(m_intf_timer[timerno].in_gate_func, *this); timer->out_out_func.resolve(m_intf_timer[timerno].out_out_func, *this); - + /* set up state save values */ save_item(NAME(timer->clockin), timerno); save_item(NAME(timer->control), timerno); @@ -144,20 +144,20 @@ void pit8253_device::device_reset() timer->rmsb = timer->wmsb = 0; timer->count = timer->value = timer->latch = 0; timer->lowcount = 0; - + if (!timer->in_gate_func.isnull()) timer->gate = timer->in_gate_func(); else timer->gate = 1; - + timer->output = 2; /* output is undetermined */ timer->latched_count = 0; timer->latched_status = 0; timer->null_count = 1; timer->cycles_to_output = CYCLES_NEVER; - + timer->last_updated = machine().time(); - + update(timer); } } @@ -311,7 +311,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) LOG2(("pit8253: simulate2(): simulating %d cycles for %d in mode %d, bcd = %d, phase = %d, gate = %d, output %d, value = 0x%04x\n", (int)elapsed_cycles, timer->index, mode, bcd, timer->phase, pit8253_gate(timer), timer->output, timer->value)); - switch (mode) + switch (mode) { case 0: /* Mode 0: (Interrupt on Terminal Count) @@ -342,7 +342,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) if (elapsed_cycles >= 0 && timer->phase == 1) { /* Counter load cycle */ - if (elapsed_cycles > 0) + if (elapsed_cycles > 0) { --elapsed_cycles; timer->phase = 2; @@ -406,7 +406,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) if (elapsed_cycles >= 0 && timer->phase == 1) { /* Counter load cycle, output goes low */ - if (elapsed_cycles > 0) + if (elapsed_cycles > 0) { --elapsed_cycles; timer->phase = 2; @@ -472,7 +472,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) { if (elapsed_cycles >= 0 && timer->phase == 1) { - if (elapsed_cycles > 0) + if (elapsed_cycles > 0) { --elapsed_cycles; timer->phase = 2; @@ -552,7 +552,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) { if (elapsed_cycles >= 0 && timer->phase == 1) { - if (elapsed_cycles > 0) + if (elapsed_cycles > 0) { --elapsed_cycles; timer->phase = 2; @@ -560,7 +560,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) load_counter_value(timer); } - if (elapsed_cycles > 0) + if (elapsed_cycles > 0) { adjusted_value = adjusted_count(bcd, timer->value); @@ -635,7 +635,7 @@ void pit8253_device::simulate2(pit8253_timer *timer, INT64 elapsed_cycles) { if (elapsed_cycles >= 0 && timer->phase == 1) { - if (elapsed_cycles > 0) + if (elapsed_cycles > 0) { --elapsed_cycles; timer->phase = 2; @@ -799,12 +799,12 @@ READ8_MEMBER( pit8253_device::read ) timer->rmsb = 1 - timer->rmsb; --timer->latched_count; } - else + else { value = masked_value(timer); /* Read back current count */ - switch(CTRL_ACCESS(timer->control)) + switch(CTRL_ACCESS(timer->control)) { case 0: default: @@ -892,7 +892,7 @@ void pit8253_device::readback(pit8253_timer *timer, int command) if (timer->latched_count == 0) { value = masked_value(timer); - switch(CTRL_ACCESS(timer->control)) + switch(CTRL_ACCESS(timer->control)) { case 0: /* This should never happen */ @@ -928,7 +928,7 @@ WRITE8_MEMBER( pit8253_device::write ) LOG2(("pit8253: write(): offset=%d data=0x%02x\n", offset, data)); - if (timer == NULL) + if (timer == NULL) { /* Write to mode control register */ timer = get_timer((data >> 6) & 3); @@ -982,7 +982,7 @@ WRITE8_MEMBER( pit8253_device::write ) if (machine().time() > timer->last_updated && timer->clockin != 0) middle_of_a_cycle = 1; - switch(CTRL_ACCESS(timer->control)) + switch(CTRL_ACCESS(timer->control)) { case 0: /* This should never happen */ @@ -1124,4 +1124,3 @@ void pit8253_device::set_clock_signal(int timerno, int state) WRITE_LINE_MEMBER( pit8253_device::clk0_w ) { set_clock_signal(0, state); } WRITE_LINE_MEMBER( pit8253_device::clk1_w ) { set_clock_signal(1, state); } WRITE_LINE_MEMBER( pit8253_device::clk2_w ) { set_clock_signal(2, state); } - diff --git a/src/emu/machine/pit8253.h b/src/emu/machine/pit8253.h index 68aa25ad113..e8ef8bc2b9e 100644 --- a/src/emu/machine/pit8253.h +++ b/src/emu/machine/pit8253.h @@ -29,7 +29,7 @@ /* device types */ -enum +enum { TYPE_PIT8253 = 0, TYPE_PIT8254 @@ -52,14 +52,14 @@ struct pit8253_timer int index; /* index number of the timer */ double clockin; /* input clock frequency in Hz */ int clock; /* clock signal when clockin is 0 */ - + devcb_resolved_read_line in_gate_func; /* callback for gate input */ devcb_resolved_write_line out_out_func; /* callback function for when output changes */ - + attotime last_updated; /* time when last updated */ - + emu_timer *updatetimer; /* MAME timer to process updates */ - + UINT16 value; /* current counter value ("CE" in Intel docs) */ UINT16 latch; /* latched counter value ("OL" in Intel docs) */ UINT16 count; /* new counter value ("CR" in Intel docs) */ @@ -69,13 +69,13 @@ struct pit8253_timer INT32 rmsb; /* 1 = Next read is MSB of 16-bit value */ INT32 wmsb; /* 1 = Next write is MSB of 16-bit value */ INT32 output; /* 0 = low, 1 = high */ - + INT32 gate; /* gate input (0 = low, 1 = high) */ INT32 latched_count; /* number of bytes of count latched */ INT32 latched_status; /* 1 = status latched (8254 only) */ INT32 null_count; /* 1 = mode control or count written, 0 = count loaded */ INT32 phase; /* see phase definition tables in simulate2(), below */ - + UINT32 cycles_to_output; /* cycles until output callback called */ }; @@ -90,20 +90,20 @@ public: DECLARE_READ8_MEMBER(read); DECLARE_WRITE8_MEMBER(write); - + WRITE_LINE_MEMBER(clk0_w); WRITE_LINE_MEMBER(clk1_w); WRITE_LINE_MEMBER(clk2_w); - + WRITE_LINE_MEMBER(gate0_w); WRITE_LINE_MEMBER(gate1_w); WRITE_LINE_MEMBER(gate2_w); - - + + /* In the 8253/8254 the CLKx input lines can be attached to a regular clock signal. Another option is to use the output from one timer as the input clock to another timer. - + The functions below should supply both functionalities. If the signal is a regular clock signal, use the pit8253_set_clockin function. If the CLKx input signal is the output of the different source, set the new_clockin @@ -113,14 +113,14 @@ public: int get_output(int timer); void set_clockin(int timer, double new_clockin); - + protected: // device-level overrides virtual void device_config_complete(); virtual void device_start(); virtual void device_reset(); - + // internal state void common_start(int device_type); pit8253_timer *get_timer(int which); @@ -138,7 +138,7 @@ protected: void set_clock_signal(int timerno, int state); TIMER_CALLBACK_MEMBER(update_timer_cb); - + int m_device_type; pit8253_timer m_timers[PIT8253_MAX_TIMER]; diff --git a/src/emu/machine/rf5c296.c b/src/emu/machine/rf5c296.c index 6e303c1812a..3b530a97669 100644 --- a/src/emu/machine/rf5c296.c +++ b/src/emu/machine/rf5c296.c @@ -89,7 +89,7 @@ READ16_MEMBER(rf5c296_device::io_r) case 0x3e1: data = reg_r(m_rf5c296_reg); break; - + default: data = m_pccard->read_memory(space, offset, mem_mask); break; diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c index 631a9e805db..b368b005be0 100644 --- a/src/emu/machine/rp5h01.c +++ b/src/emu/machine/rp5h01.c @@ -3,8 +3,8 @@ RP5H01 TODO: - - follow the datasheet better (all dumps presumably needs to be redone - from scratch?) + - follow the datasheet better (all dumps presumably needs to be redone + from scratch?) ***************************************************************************/ @@ -187,5 +187,3 @@ READ8_MEMBER( rp5h01_device::data_r ) /* return the data */ return (m_data[byte] >> bit) & 1; } - - diff --git a/src/emu/machine/rp5h01.h b/src/emu/machine/rp5h01.h index 9aaa31c4f12..3800b8e311f 100644 --- a/src/emu/machine/rp5h01.h +++ b/src/emu/machine/rp5h01.h @@ -27,7 +27,7 @@ class rp5h01_device : public device_t { public: rp5h01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - + DECLARE_WRITE8_MEMBER( enable_w ); /* /CE */ DECLARE_WRITE8_MEMBER( reset_w ); /* RESET */ DECLARE_WRITE8_MEMBER( cs_w ); /* CS */ diff --git a/src/emu/machine/serflash.c b/src/emu/machine/serflash.c index 9de0d2d8de7..5653e58f4f0 100644 --- a/src/emu/machine/serflash.c +++ b/src/emu/machine/serflash.c @@ -46,7 +46,7 @@ void serflash_device::device_reset() { m_flash_enab = 0; flash_hard_reset(machine()); - + m_last_flash_cmd = 0x00; m_flash_addr_seq = 0; m_flash_addr = 0; @@ -61,7 +61,6 @@ void serflash_device::device_reset() void serflash_device::nvram_default() { - } @@ -98,7 +97,6 @@ void serflash_device::nvram_read(emu_file &file) void serflash_device::nvram_write(emu_file &file) { - if (m_length % FLASH_PAGE_SIZE) return; // region size must be multiple of flash page size int size = m_length /= FLASH_PAGE_SIZE; @@ -167,7 +165,7 @@ WRITE8_MEMBER( serflash_device::flash_cmd_w ) switch (data) { - case 0x00: // READ + case 0x00: // READ m_flash_addr_seq = 0; break; @@ -175,21 +173,21 @@ WRITE8_MEMBER( serflash_device::flash_cmd_w ) m_flash_addr_seq = 0; break; - case 0x70: // READ STATUS + case 0x70: // READ STATUS flash_change_state( space.machine(), STATE_READ_STATUS ); break; - case 0x80: // PAGE / CACHE PROGRAM + case 0x80: // PAGE / CACHE PROGRAM m_flash_addr_seq = 0; // this actually seems to be set with the next 2 writes? m_flash_page_addr = 0; break; - case 0x90: // READ ID + case 0x90: // READ ID flash_change_state( space.machine(), STATE_READ_ID ); break; - case 0xff: // RESET + case 0xff: // RESET flash_change_state( space.machine(), STATE_IDLE ); break; @@ -203,11 +201,9 @@ WRITE8_MEMBER( serflash_device::flash_cmd_w ) { switch (m_flash_cmd_prev) { - case 0x00: // READ + case 0x00: // READ if (data == 0x30) { - - memcpy(m_flash_page_data, m_region + m_flash_row * FLASH_PAGE_SIZE, FLASH_PAGE_SIZE); m_flash_page_addr = m_flash_col; m_flash_page_index = m_flash_row; @@ -306,16 +302,16 @@ READ8_MEMBER( serflash_device::flash_io_r ) switch( m_flash_read_seq++ ) { case 0: - data = 0xEC; // Manufacturer + data = 0xEC; // Manufacturer break; case 1: - data = 0xF1; // Device + data = 0xF1; // Device break; case 2: - data = 0x00; // XX + data = 0x00; // XX break; case 3: - data = 0x15; // Flags + data = 0x15; // Flags m_flash_read_seq = 0; break; } @@ -342,7 +338,7 @@ READ8_MEMBER( serflash_device::flash_io_r ) default: { - // logerror("%08x FLASH: unknown read in state %s\n",0x00/*m_maincpu->pc()*/, m_flash_state_name[m_flash_state]); + // logerror("%08x FLASH: unknown read in state %s\n",0x00/*m_maincpu->pc()*/, m_flash_state_name[m_flash_state]); } } @@ -412,4 +408,3 @@ WRITE8_MEMBER(serflash_device::n3d_flash_addr_w) logerror("set flash block to %08x\n", m_flash_addr); } } - diff --git a/src/emu/machine/serflash.h b/src/emu/machine/serflash.h index 13fbb02a26e..e4045a78582 100644 --- a/src/emu/machine/serflash.h +++ b/src/emu/machine/serflash.h @@ -6,7 +6,7 @@ #define __SERFLASH_H__ -#define FLASH_PAGE_SIZE (2048+64) +#define FLASH_PAGE_SIZE (2048+64) @@ -18,16 +18,15 @@ //************************************************************************** #define MCFG_SERFLASH_ADD(_tag) \ - MCFG_DEVICE_ADD(_tag, SERFLASH, 0) \ - + MCFG_DEVICE_ADD(_tag, SERFLASH, 0) //************************************************************************** // TYPE DEFINITIONS //************************************************************************** class serflash_device; -typedef enum { STATE_IDLE = 0, STATE_READ, STATE_READ_ID, STATE_READ_STATUS, STATE_BLOCK_ERASE, STATE_PAGE_PROGRAM } flash_state_t; -//const char *m_flash_state_name[] = { "IDLE", "READ", "READ_ID", "READ_STATUS", "BLOCK ERASE", "PAGE PROGRAM" }; +typedef enum { STATE_IDLE = 0, STATE_READ, STATE_READ_ID, STATE_READ_STATUS, STATE_BLOCK_ERASE, STATE_PAGE_PROGRAM } flash_state_t; +//const char *m_flash_state_name[] = { "IDLE", "READ", "READ_ID", "READ_STATUS", "BLOCK ERASE", "PAGE PROGRAM" }; // custom initialization for default state typedef device_delegate<void (serflash_device &, void *, size_t)> serflash_init_delegate; @@ -105,4 +104,3 @@ extern const device_type SERFLASH; #endif - diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c index 1d64aa73717..9fd5bf7c77e 100644 --- a/src/emu/machine/tms6100.c +++ b/src/emu/machine/tms6100.c @@ -85,14 +85,14 @@ tms6100_device::tms6100_device(const machine_config &mconfig, const char *tag, d : device_t(mconfig, TMS6100, "TMS6100", tag, owner, clock) { } - + const device_type M58819 = &device_creator<m58819_device>; m58819_device::m58819_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : tms6100_device(mconfig, M58819, "M58819", tag, owner, clock) { } - + //------------------------------------------------- // device_config_complete - perform any // operations now that the configuration is @@ -231,5 +231,3 @@ READ_LINE_MEMBER(tms6100_device::tms6100_data_r) { return m_data; } - - diff --git a/src/emu/machine/tms6100.h b/src/emu/machine/tms6100.h index a6a13da2340..edfb348c6b1 100644 --- a/src/emu/machine/tms6100.h +++ b/src/emu/machine/tms6100.h @@ -10,7 +10,7 @@ class tms6100_device : public device_t public: tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); - + DECLARE_WRITE_LINE_MEMBER( tms6100_m0_w ); DECLARE_WRITE_LINE_MEMBER( tms6100_m1_w ); DECLARE_WRITE_LINE_MEMBER( tms6100_romclock_w ); @@ -34,8 +34,8 @@ private: UINT8 m_tms_clock; UINT8 m_data; UINT8 m_state; - - const UINT8 *m_rom; + + const UINT8 *m_rom; }; diff --git a/src/emu/machine/z80dart.c b/src/emu/machine/z80dart.c index 066a65922aa..1b032422f57 100644 --- a/src/emu/machine/z80dart.c +++ b/src/emu/machine/z80dart.c @@ -20,8 +20,8 @@ TODO: - - devcb2 - - i8274 DMA scheme + - devcb2 + - i8274 DMA scheme - break detection - wr0 reset tx interrupt pending - wait/ready @@ -494,7 +494,7 @@ z80dart_channel::z80dart_channel(const machine_config &mconfig, const char *tag, { m_rx_data_fifo[i] = 0; m_rx_error_fifo[i] = 0; - } + } } @@ -929,7 +929,7 @@ void z80dart_channel::control_write(UINT8 data) LOG(("Z80DART \"%s\" Channel %c : Parity %s\n", m_owner->tag(), 'A' + m_index, (data & WR4_PARITY_EVEN) ? "Even" : "Odd")); LOG(("Z80DART \"%s\" Channel %c : Stop Bits %f\n", m_owner->tag(), 'A' + m_index, get_stop_bits())); LOG(("Z80DART \"%s\" Channel %c : Clock Mode %uX\n", m_owner->tag(), 'A' + m_index, get_clock_mode())); - + update_serial(); break; @@ -1279,7 +1279,7 @@ void z80dart_channel::update_serial() { if (m_wr[1] & WR4_PARITY_EVEN) parity_code = SERIAL_PARITY_EVEN; - else + else parity_code = SERIAL_PARITY_ODD; } diff --git a/src/emu/machine/z80dart.h b/src/emu/machine/z80dart.h index 63dc7665795..820f78ac2b3 100644 --- a/src/emu/machine/z80dart.h +++ b/src/emu/machine/z80dart.h @@ -360,18 +360,18 @@ protected: enum { - WR2_DATA_XFER_INT = 0x00, // not supported - WR2_DATA_XFER_DMA_INT = 0x01, // not supported - WR2_DATA_XFER_DMA = 0x02, // not supported - WR2_DATA_XFER_ILLEGAL = 0x03, // not supported - WR2_DATA_XFER_MASK = 0x03, // not supported - WR2_PRIORITY = 0x04, // not supported - WR2_MODE_8085_1 = 0x00, // not supported - WR2_MODE_8085_2 = 0x08, // not supported - WR2_MODE_8086_8088 = 0x10, // not supported - WR2_MODE_ILLEGAL = 0x18, // not supported - WR2_MODE_MASK = 0x18, // not supported - WR2_VECTORED_INT = 0x20, // not supported + WR2_DATA_XFER_INT = 0x00, // not supported + WR2_DATA_XFER_DMA_INT = 0x01, // not supported + WR2_DATA_XFER_DMA = 0x02, // not supported + WR2_DATA_XFER_ILLEGAL = 0x03, // not supported + WR2_DATA_XFER_MASK = 0x03, // not supported + WR2_PRIORITY = 0x04, // not supported + WR2_MODE_8085_1 = 0x00, // not supported + WR2_MODE_8085_2 = 0x08, // not supported + WR2_MODE_8086_8088 = 0x10, // not supported + WR2_MODE_ILLEGAL = 0x18, // not supported + WR2_MODE_MASK = 0x18, // not supported + WR2_VECTORED_INT = 0x20, // not supported WR2_PIN10_SYNDETB_RTSB = 0x80 // not supported }; |
