This commit is contained in:
David Haywood 2017-07-20 12:44:13 +01:00
parent 269a6c8b1f
commit d1159c6f07
3 changed files with 12 additions and 21 deletions

View File

@ -2476,11 +2476,11 @@ void ds5002fp_device::nvram_default()
if (!m_region.found())
{
logerror( "ds5002fp_device(%s) region not found\n", tag() );
logerror( "ds5002fp_device region not found\n" );
}
else if( m_region->bytes() != expected_bytes )
{
logerror( "ds5002fp_device(%s) region length 0x%x expected 0x%x\n", tag(), m_region->bytes(), expected_bytes );
logerror( "ds5002fp_device region length 0x%x expected 0x%x\n", m_region->bytes(), expected_bytes );
}
else
{

View File

@ -44,12 +44,7 @@ void gaelco_ds5002fp_device_base::device_reset()
}
gaelco_ds5002fp_device::gaelco_ds5002fp_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: gaelco_ds5002fp_device(mconfig, GAELCO_DS5002FP, tag, owner, clock)
{
}
gaelco_ds5002fp_device::gaelco_ds5002fp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock)
: gaelco_ds5002fp_device_base(mconfig, type, tag, owner, clock)
: gaelco_ds5002fp_device_base(mconfig, GAELCO_DS5002FP, tag, owner, clock)
{
}
@ -73,9 +68,8 @@ MACHINE_CONFIG_MEMBER(gaelco_ds5002fp_device::device_add_mconfig)
MACHINE_CONFIG_END
gaelco_ds5002fp_wrally_device::gaelco_ds5002fp_wrally_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: gaelco_ds5002fp_device(mconfig, GAELCO_DS5002FP_WRALLY, tag, owner, clock)
: gaelco_ds5002fp_device_base(mconfig, GAELCO_DS5002FP_WRALLY, tag, owner, clock)
{
}

View File

@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
#ifndef MAME_MACHINE_GAELCODS5002FP_H
#define MAME_MACHINE_GAELCODS5002FP_H
#ifndef MAME_MACHINE_GAELCO_DS5002FP_H
#define MAME_MACHINE_GAELCO_DS5002FP_H
#pragma once
@ -14,9 +14,6 @@ DECLARE_DEVICE_TYPE(GAELCO_DS5002FP_WRALLY, gaelco_ds5002fp_wrally_device)
class gaelco_ds5002fp_device_base : public device_t
{
public:
required_shared_ptr<uint16_t> m_shareram;
required_region_ptr<uint8_t> m_mcu_ram;
DECLARE_READ8_MEMBER(dallas_ram_r);
DECLARE_WRITE8_MEMBER(dallas_ram_w);
DECLARE_READ8_MEMBER(dallas_share_r);
@ -29,7 +26,8 @@ protected:
virtual void device_reset() override;
private:
required_shared_ptr<uint16_t> m_shareram;
required_region_ptr<uint8_t> m_mcu_ram;
};
@ -37,20 +35,19 @@ class gaelco_ds5002fp_device : public gaelco_ds5002fp_device_base
{
public:
gaelco_ds5002fp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual void device_add_mconfig(machine_config &config) override;
protected:
gaelco_ds5002fp_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock);
virtual void device_add_mconfig(machine_config &config) override;
};
class gaelco_ds5002fp_wrally_device : public gaelco_ds5002fp_device
class gaelco_ds5002fp_wrally_device : public gaelco_ds5002fp_device_base
{
public:
gaelco_ds5002fp_wrally_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
virtual void device_add_mconfig(machine_config &config) override;
protected:
virtual void device_add_mconfig(machine_config &config) override;
};
#endif // MAME_MACHINE_GAELCODS5002FP_H
#endif // MAME_MACHINE_GAELCO_DS5002FP_H