diff options
Diffstat (limited to 'src/devices/bus/pofo/hpc104.cpp')
-rw-r--r-- | src/devices/bus/pofo/hpc104.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/devices/bus/pofo/hpc104.cpp b/src/devices/bus/pofo/hpc104.cpp index 11744206c7e..01dd6beb7c2 100644 --- a/src/devices/bus/pofo/hpc104.cpp +++ b/src/devices/bus/pofo/hpc104.cpp @@ -100,7 +100,7 @@ pofo_hpc104_device::pofo_hpc104_device(const machine_config &mconfig, device_typ device_portfolio_expansion_slot_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_ccm(*this, PORTFOLIO_MEMORY_CARD_SLOT_B_TAG), - m_exp(*this, PORTFOLIO_EXPANSION_SLOT_TAG), + m_exp(*this, "exp"), m_nvram(*this, "nvram", 0x40000, ENDIANNESS_LITTLE), m_io_sw1(*this, "SW1") { @@ -141,6 +141,25 @@ void pofo_hpc104_device::device_reset() } +void pofo_hpc104_device::nvram_default() +{ +} + + +bool pofo_hpc104_device::nvram_read(util::read_stream &file) +{ + auto const [err, actual] = read(file, m_nvram, 0x40000); + return !err && (actual == 0x40000); +} + + +bool pofo_hpc104_device::nvram_write(util::write_stream &file) +{ + auto const [err, actual] = write(file, m_nvram, 0x40000); + return !err; +} + + //------------------------------------------------- // nrdi_r - read //------------------------------------------------- @@ -169,7 +188,7 @@ uint8_t pofo_hpc104_device::nrdi_r(offs_t offset, uint8_t data, bool iom, bool b { if (offset >= 0x1f000 && offset < 0x5f000) { - data = m_nvram[offset - 0x1f000] = data; + data = m_nvram[offset - 0x1f000]; } } } |