summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2018-09-20 10:22:55 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2018-09-20 10:22:55 +0700
commitea9925b17651bf5aa69151d3209e1d89ec3e7008 (patch)
tree980b0088bd9502ef52761ee4b62216ae23f87da5
parent30738889fc6af6c62455d7f5d0a294aac37d0b6d (diff)
28fxxx: add am28f020 (nw)
-rw-r--r--src/devices/machine/28fxxx.cpp6
-rw-r--r--src/devices/machine/28fxxx.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/devices/machine/28fxxx.cpp b/src/devices/machine/28fxxx.cpp
index 3d9bdeb639b..6218ada4548 100644
--- a/src/devices/machine/28fxxx.cpp
+++ b/src/devices/machine/28fxxx.cpp
@@ -44,6 +44,7 @@ enum manufacturer_codes
DEFINE_DEVICE_TYPE(INTEL_28F010, intel_28f010_device, "intel_28f010", "Intel 28F010 1024K (128K x 8) CMOS Flash Memory")
DEFINE_DEVICE_TYPE(AMD_28F010, amd_28f010_device, "amd_28f010", "Am28F010 1 Megabit (128K x 8-Bit) CMOS 12.0 Volt, Bulk Erase Flash Memory")
+DEFINE_DEVICE_TYPE(AMD_28F020, amd_28f020_device, "amd_28f020", "Am28F020 2 Megabit (256K x 8-Bit) CMOS 12.0 Volt, Bulk Erase Flash Memory")
ALLOW_SAVE_TYPE(base_28fxxx_device::state);
@@ -70,6 +71,11 @@ amd_28f010_device::amd_28f010_device(const machine_config &mconfig, const char *
{
}
+amd_28f020_device::amd_28f020_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+ : base_28fxxx_device(mconfig, AMD_28F020, tag, owner, clock, 0x40000, MFG_AMD, 0x2a)
+{
+}
+
void base_28fxxx_device::device_start()
{
m_data = std::make_unique<u8[]>(m_size);
diff --git a/src/devices/machine/28fxxx.h b/src/devices/machine/28fxxx.h
index e045a91f27c..dd64118cfce 100644
--- a/src/devices/machine/28fxxx.h
+++ b/src/devices/machine/28fxxx.h
@@ -78,7 +78,14 @@ public:
amd_28f010_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
};
+class amd_28f020_device : public base_28fxxx_device
+{
+public:
+ amd_28f020_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
+};
+
DECLARE_DEVICE_TYPE(INTEL_28F010, intel_28f010_device)
DECLARE_DEVICE_TYPE(AMD_28F010, amd_28f010_device)
+DECLARE_DEVICE_TYPE(AMD_28F020, amd_28f020_device)
#endif // MAME_MACHINE_28FXXX_H