diff options
Diffstat (limited to 'src/mess/machine/ti99/memex.h')
-rw-r--r-- | src/mess/machine/ti99/memex.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mess/machine/ti99/memex.h b/src/mess/machine/ti99/memex.h new file mode 100644 index 00000000000..9971d98da28 --- /dev/null +++ b/src/mess/machine/ti99/memex.h @@ -0,0 +1,44 @@ +/**************************************************************************** + + Geneve "Memex" memory expansion + See memex.c for documentation + + Michael Zapf, February 2011 + February 2012: Rewritten as class + +*****************************************************************************/ + +#ifndef __MEMEXMEM__ +#define __MEMEXMEM__ + +#include "emu.h" +#include "ti99defs.h" +#include "peribox.h" + +extern const device_type TI99_MEMEX; + +class geneve_memex_device : public ti_expansion_card_device +{ +public: + geneve_memex_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + DECLARE_READ8Z_MEMBER(readz); + DECLARE_WRITE8_MEMBER(write); + + void crureadz(offs_t offset, UINT8 *value) { }; + void cruwrite(offs_t offset, UINT8 value) { }; + +protected: + void device_start(); + void device_reset(); + ioport_constructor device_input_ports() const; + const rom_entry *device_rom_region() const; + +private: + bool access_enabled(offs_t offset); + + UINT8* m_ram; + UINT8 m_dip_switch[8]; + int m_genmod; +}; + +#endif |