diff options
author | 2015-09-13 08:41:44 +0200 | |
---|---|---|
committer | 2015-09-13 08:41:44 +0200 | |
commit | f88cefad27a1737c76e09d99c9fb43e173506081 (patch) | |
tree | 2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/bus/msx_cart/hfox.h | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/bus/msx_cart/hfox.h')
-rw-r--r-- | src/devices/bus/msx_cart/hfox.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/devices/bus/msx_cart/hfox.h b/src/devices/bus/msx_cart/hfox.h new file mode 100644 index 00000000000..c3a17d365c5 --- /dev/null +++ b/src/devices/bus/msx_cart/hfox.h @@ -0,0 +1,35 @@ +// license:BSD-3-Clause +// copyright-holders:Wilbert Pol +#ifndef __MSX_CART_HFOX_H +#define __MSX_CART_HFOX_H + +#include "bus/msx_cart/cartridge.h" + + +extern const device_type MSX_CART_HFOX; + + +class msx_cart_hfox : public device_t + , public msx_cart_interface +{ +public: + msx_cart_hfox(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + virtual void initialize_cartridge(); + + virtual DECLARE_READ8_MEMBER(read_cart); + virtual DECLARE_WRITE8_MEMBER(write_cart); + + void restore_banks(); + +private: + UINT8 m_selected_bank[2]; + UINT8 *m_bank_base[2]; +}; + + +#endif |