diff options
Diffstat (limited to 'src/devices/bus/msx_cart/msxdos2.cpp')
-rw-r--r-- | src/devices/bus/msx_cart/msxdos2.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/msx_cart/msxdos2.cpp b/src/devices/bus/msx_cart/msxdos2.cpp index 3fac4457d63..f4e391f66e9 100644 --- a/src/devices/bus/msx_cart/msxdos2.cpp +++ b/src/devices/bus/msx_cart/msxdos2.cpp @@ -3,11 +3,11 @@ #include "emu.h" #include "msxdos2.h" -const device_type MSX_CART_MSXDOS2 = device_creator<msx_cart_msxdos2>; +DEFINE_DEVICE_TYPE(MSX_CART_MSXDOS2, msx_cart_msxdos2_device, "msx_cart_msxdos2", "MSX Cartridge - MSXDOS2") -msx_cart_msxdos2::msx_cart_msxdos2(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, MSX_CART_MSXDOS2, "MSX Cartridge - MSXDOS2", tag, owner, clock, "msx_cart_msxdos2", __FILE__) +msx_cart_msxdos2_device::msx_cart_msxdos2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : device_t(mconfig, MSX_CART_MSXDOS2, tag, owner, clock) , msx_cart_interface(mconfig, *this) , m_selected_bank(0) , m_bank_base(nullptr) @@ -15,27 +15,27 @@ msx_cart_msxdos2::msx_cart_msxdos2(const machine_config &mconfig, const char *ta } -void msx_cart_msxdos2::device_start() +void msx_cart_msxdos2_device::device_start() { save_item(NAME(m_selected_bank)); - machine().save().register_postload(save_prepost_delegate(FUNC(msx_cart_msxdos2::restore_banks), this)); + machine().save().register_postload(save_prepost_delegate(FUNC(msx_cart_msxdos2_device::restore_banks), this)); } -void msx_cart_msxdos2::restore_banks() +void msx_cart_msxdos2_device::restore_banks() { m_bank_base = get_rom_base() + ( m_selected_bank & 0x03 ) * 0x4000; } -void msx_cart_msxdos2::device_reset() +void msx_cart_msxdos2_device::device_reset() { m_selected_bank = 0; } -void msx_cart_msxdos2::initialize_cartridge() +void msx_cart_msxdos2_device::initialize_cartridge() { if (get_rom_size() != 0x10000) { @@ -46,7 +46,7 @@ void msx_cart_msxdos2::initialize_cartridge() } -READ8_MEMBER(msx_cart_msxdos2::read_cart) +READ8_MEMBER(msx_cart_msxdos2_device::read_cart) { if (offset >= 0x4000 && offset < 0x8000) { @@ -57,7 +57,7 @@ READ8_MEMBER(msx_cart_msxdos2::read_cart) } -WRITE8_MEMBER(msx_cart_msxdos2::write_cart) +WRITE8_MEMBER(msx_cart_msxdos2_device::write_cart) { if (offset == 0x6000) { |