diff options
Diffstat (limited to 'src/devices/bus/msx_cart/halnote.h')
-rw-r--r-- | src/devices/bus/msx_cart/halnote.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/devices/bus/msx_cart/halnote.h b/src/devices/bus/msx_cart/halnote.h new file mode 100644 index 00000000000..8020219a77d --- /dev/null +++ b/src/devices/bus/msx_cart/halnote.h @@ -0,0 +1,37 @@ +// license:BSD-3-Clause +// copyright-holders:Wilbert Pol +#ifndef __MSX_CART_HALNOTE_H +#define __MSX_CART_HALNOTE_H + +#include "bus/msx_cart/cartridge.h" + + +extern const device_type MSX_CART_HALNOTE; + + +class msx_cart_halnote : public device_t + , public msx_cart_interface +{ +public: + msx_cart_halnote(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[8]; + UINT8 *m_bank_base[8]; + + void map_bank(int bank); +}; + + +#endif |