summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99_peb/samsmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99_peb/samsmem.h')
-rw-r--r--src/devices/bus/ti99_peb/samsmem.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/devices/bus/ti99_peb/samsmem.h b/src/devices/bus/ti99_peb/samsmem.h
new file mode 100644
index 00000000000..0dd5e959755
--- /dev/null
+++ b/src/devices/bus/ti99_peb/samsmem.h
@@ -0,0 +1,44 @@
+// license:LGPL-2.1+
+// copyright-holders:Michael Zapf
+/****************************************************************************
+
+ TI-99 SuperAMS memory expansion
+ See samsmem.c for documentation
+
+ Michael Zapf
+ September 2010
+
+ February 2012: Rewritten as class
+
+*****************************************************************************/
+
+#ifndef __SAMSMEM__
+#define __SAMSMEM__
+
+#include "emu.h"
+#include "peribox.h"
+
+extern const device_type TI99_SAMSMEM;
+
+class sams_memory_expansion_device : public ti_expansion_card_device
+{
+public:
+ sams_memory_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ DECLARE_READ8Z_MEMBER(readz);
+ DECLARE_WRITE8_MEMBER(write);
+
+ DECLARE_READ8Z_MEMBER(crureadz);
+ DECLARE_WRITE8_MEMBER(cruwrite);
+
+protected:
+ virtual void device_start(void);
+ virtual void device_reset(void);
+ virtual const rom_entry *device_rom_region(void) const;
+
+private:
+ UINT8* m_ram;
+ int m_mapper[16];
+ bool m_map_mode;
+ bool m_access_mapper;
+};
+#endif