summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vidbrain/exp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/vidbrain/exp.h')
-rw-r--r--src/devices/bus/vidbrain/exp.h31
1 files changed, 12 insertions, 19 deletions
diff --git a/src/devices/bus/vidbrain/exp.h b/src/devices/bus/vidbrain/exp.h
index 4850de91f9e..f4c75d1e169 100644
--- a/src/devices/bus/vidbrain/exp.h
+++ b/src/devices/bus/vidbrain/exp.h
@@ -39,7 +39,7 @@
#pragma once
-#include "softlist_dev.h"
+#include "imagedev/cartrom.h"
//**************************************************************************
@@ -84,13 +84,13 @@ protected:
class videobrain_expansion_slot_device : public device_t,
public device_single_card_slot_interface<device_videobrain_expansion_card_interface>,
- public device_image_interface
+ public device_cartrom_image_interface
{
public:
// construction/destruction
template <typename T>
- videobrain_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, char const* dflt)
- : videobrain_expansion_slot_device(mconfig, tag, owner, 0)
+ videobrain_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&opts, char const* dflt) :
+ videobrain_expansion_slot_device(mconfig, tag, owner, 0)
{
option_reset();
opts(*this);
@@ -109,34 +109,27 @@ public:
void cs1_w(offs_t offset, uint8_t data) { bo_w(offset + 0x1000, data, 0, 1); }
uint8_t cs2_r(offs_t offset) { return bo_r(offset + 0x1800, 1, 0); }
void cs2_w(offs_t offset, uint8_t data) { bo_w(offset + 0x1800, data, 1, 0); }
- uint8_t unmap_r(offs_t offset) { return bo_r(offset + 0x3000, 1, 0); }
- void unmap_w(offs_t offset, uint8_t data) { bo_w(offset + 0x3000, data, 1, 0); }
+ uint8_t unmap_r(offs_t offset) { return bo_r(offset + 0x3000, 1, 1); }
+ void unmap_w(offs_t offset, uint8_t data) { bo_w(offset + 0x3000, data, 1, 1); }
// cartridge interface
- DECLARE_WRITE_LINE_MEMBER( extres_w ) { m_write_extres(state); }
+ void extres_w(int state) { m_write_extres(state); }
protected:
- // device-level overrides
+ // device_t implementation
virtual void device_start() override;
- // image-level overrides
- virtual image_init_result call_load() override;
- virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); }
+ // device_image_interface implementation
+ virtual std::pair<std::error_condition, std::string> call_load() override;
- virtual iodevice_t image_type() const noexcept override { return IO_CARTSLOT; }
-
- virtual bool is_readable() const noexcept override { return true; }
- virtual bool is_writeable() const noexcept override { return false; }
- virtual bool is_creatable() const noexcept override { return false; }
- virtual bool must_be_loaded() const noexcept override { return false; }
virtual bool is_reset_on_load() const noexcept override { return true; }
virtual const char *image_interface() const noexcept override { return "vidbrain_cart"; }
virtual const char *file_extensions() const noexcept override { return "bin"; }
- // slot interface overrides
+ // device_slot_interface implementation
virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override;
- devcb_write_line m_write_extres;
+ devcb_write_line m_write_extres;
device_videobrain_expansion_card_interface *m_cart;
};