summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pofo/ram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pofo/ram.cpp')
-rw-r--r--src/devices/bus/pofo/ram.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/devices/bus/pofo/ram.cpp b/src/devices/bus/pofo/ram.cpp
index 7f1298b8b95..253b30d228b 100644
--- a/src/devices/bus/pofo/ram.cpp
+++ b/src/devices/bus/pofo/ram.cpp
@@ -44,6 +44,25 @@ void portfolio_ram_card_device::device_start()
}
+void portfolio_ram_card_device::nvram_default()
+{
+}
+
+
+bool portfolio_ram_card_device::nvram_read(util::read_stream &file)
+{
+ auto const [err, actual] = read(file, m_nvram, m_nvram.bytes());
+ return !err && (actual == m_nvram.bytes());
+}
+
+
+bool portfolio_ram_card_device::nvram_write(util::write_stream &file)
+{
+ auto const [err, actual] = write(file, m_nvram, m_nvram.bytes());
+ return !err;
+}
+
+
//-------------------------------------------------
// nrdi_r - read
//-------------------------------------------------