diff options
Diffstat (limited to 'src/devices/bus/ti99/peb/horizon.h')
-rw-r--r-- | src/devices/bus/ti99/peb/horizon.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/devices/bus/ti99/peb/horizon.h b/src/devices/bus/ti99/peb/horizon.h new file mode 100644 index 00000000000..d3a5f23817c --- /dev/null +++ b/src/devices/bus/ti99/peb/horizon.h @@ -0,0 +1,69 @@ +// license:LGPL-2.1+ +// copyright-holders:Michael Zapf +/**************************************************************************** + + Horizon Ramdisk + See horizon.c for documentation + + Michael Zapf + + February 2012 + +*****************************************************************************/ + +#ifndef MAME_BUS_TI99_PEB_HORIZON_H +#define MAME_BUS_TI99_PEB_HORIZON_H + +#pragma once + +#include "peribox.h" +#include "machine/ram.h" + +DECLARE_DEVICE_TYPE(TI99_HORIZON, horizon_ramdisk_device) + +class horizon_ramdisk_device : public ti_expansion_card_device, public device_nvram_interface +{ +public: + horizon_ramdisk_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + DECLARE_READ8Z_MEMBER(readz) override; + DECLARE_WRITE8_MEMBER(write) override; + + DECLARE_READ8Z_MEMBER(crureadz) override; + DECLARE_WRITE8_MEMBER(cruwrite) override; + + DECLARE_INPUT_CHANGED_MEMBER( hs_changed ); + +protected: + void device_start() override; + void device_reset() override; + + machine_config_constructor device_mconfig_additions() const override; + virtual ioport_constructor device_input_ports() const override; + + void nvram_default() override; + void nvram_read(emu_file &file) override; + void nvram_write(emu_file &file) override; + +private: + void setbit(int& page, int pattern, bool set); + + required_device<ram_device> m_ram; + required_device<ram_device> m_nvram; + required_device<ram_device> m_ros; + + int m_select6_value; + int m_select_all; + + int m_page; + + int m_cru_horizon; + int m_cru_phoenix; + bool m_timode; + bool m_32k_installed; + bool m_split_mode; + bool m_rambo_mode; + bool m_hideswitch; + bool m_use_rambo; +}; + +#endif // MAME_BUS_TI99_PEB_HORIZON_H |