Skip to content

Commit

Permalink
28fxxx: add am28f020 (nw)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmackinlay committed Sep 20, 2018
1 parent 3073888 commit ea9925b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/devices/machine/28fxxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions src/devices/machine/28fxxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ class amd_28f010_device : public base_28fxxx_device
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

0 comments on commit ea9925b

Please sign in to comment.