summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pofo/rom.cpp
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2016-08-08 13:40:03 +0300
committer Curt Coder <curtcoder@mail.com>2016-08-08 14:44:20 +0300
commit6673af1285376eee38a7fa0f924ddf5b61c3c654 (patch)
treeeec6b480351bf436d1279e4a1a660fd12302a0e2 /src/devices/bus/pofo/rom.cpp
parentf67311c5a5b1e08a0d285795d9182683a270a2d8 (diff)
pofo: Added memory card slot interface and ROM/RAM cards. [Curt Coder]
Diffstat (limited to 'src/devices/bus/pofo/rom.cpp')
-rw-r--r--src/devices/bus/pofo/rom.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/devices/bus/pofo/rom.cpp b/src/devices/bus/pofo/rom.cpp
new file mode 100644
index 00000000000..fbc4c5961b5
--- /dev/null
+++ b/src/devices/bus/pofo/rom.cpp
@@ -0,0 +1,51 @@
+// license:BSD-3-Clause
+// copyright-holders:Curt Coder
+/**********************************************************************
+
+ Atari Portfolio ROM card emulation
+
+**********************************************************************/
+
+#include "rom.h"
+
+
+
+//**************************************************************************
+// DEVICE DEFINITIONS
+//**************************************************************************
+
+const device_type PORTFOLIO_ROM_CARD = &device_creator<portfolio_rom_card_t>;
+
+
+//**************************************************************************
+// LIVE DEVICE
+//**************************************************************************
+
+//-------------------------------------------------
+// portfolio_rom_card_t - constructor
+//-------------------------------------------------
+
+portfolio_rom_card_t::portfolio_rom_card_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
+ device_t(mconfig, PORTFOLIO_ROM_CARD, "Atari Portfolio ROM card", tag, owner, clock, "portfolio_rom_card", __FILE__),
+ device_portfolio_memory_card_slot_interface(mconfig, *this)
+{
+}
+
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void portfolio_rom_card_t::device_start()
+{
+}
+
+
+//-------------------------------------------------
+// nrdi_r - read
+//-------------------------------------------------
+
+UINT8 portfolio_rom_card_t::nrdi_r(address_space &space, offs_t offset)
+{
+ return m_rom[offset];
+}