diff options
Diffstat (limited to 'src/devices/bus/cbmiec/c1541.h')
-rw-r--r-- | src/devices/bus/cbmiec/c1541.h | 121 |
1 files changed, 68 insertions, 53 deletions
diff --git a/src/devices/bus/cbmiec/c1541.h b/src/devices/bus/cbmiec/c1541.h index 473fda5d51b..e184ec9375c 100644 --- a/src/devices/bus/cbmiec/c1541.h +++ b/src/devices/bus/cbmiec/c1541.h @@ -33,15 +33,15 @@ // TYPE DEFINITIONS //************************************************************************** -// ======================> c1541_device_base +// ======================> c1541_base_t -class c1541_device_base : public device_t, - public device_cbm_iec_interface, - public device_c64_floppy_parallel_interface +class c1541_base_t : public device_t, + public device_cbm_iec_interface, + public device_c64_floppy_parallel_interface { protected: // construction/destruction - c1541_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); + c1541_base_t(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); // device-level overrides virtual void device_start() override; @@ -105,13 +105,13 @@ private: }; -// ======================> c1540_device +// ======================> c1540_t -class c1540_device : public c1541_device_base +class c1540_t : public c1541_base_t { public: // construction/destruction - c1540_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1540_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -119,13 +119,13 @@ protected: }; -// ======================> c1541_device +// ======================> c1541_t -class c1541_device : public c1541_device_base +class c1541_t : public c1541_base_t { public: // construction/destruction - c1541_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1541_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -133,13 +133,13 @@ protected: }; -// ======================> c1541c_device +// ======================> c1541c_t -class c1541c_device : public c1541_device_base +class c1541c_t : public c1541_base_t { public: // construction/destruction - c1541c_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1541c_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -152,13 +152,13 @@ private: }; -// ======================> c1541ii_device +// ======================> c1541ii_t -class c1541ii_device : public c1541_device_base +class c1541ii_t : public c1541_base_t { public: // construction/destruction - c1541ii_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1541ii_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -166,13 +166,13 @@ protected: }; -// ======================> sx1541_device +// ======================> sx1541_t -class sx1541_device : public c1541_device_base +class sx1541_t : public c1541_base_t { public: // construction/destruction - sx1541_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + sx1541_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -180,13 +180,13 @@ protected: }; -// ======================> fsd1_device +// ======================> fsd1_t -class fsd1_device : public c1541_device_base +class fsd1_t : public c1541_base_t { public: // construction/destruction - fsd1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + fsd1_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -194,13 +194,13 @@ protected: }; -// ======================> fsd2_device +// ======================> fsd2_t -class fsd2_device : public c1541_device_base +class fsd2_t : public c1541_base_t { public: // construction/destruction - fsd2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + fsd2_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -211,13 +211,13 @@ protected: }; -// ======================> csd1_device +// ======================> csd1_t -class csd1_device : public c1541_device_base +class csd1_t : public c1541_base_t { public: // construction/destruction - csd1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + csd1_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -225,13 +225,13 @@ protected: }; -// ======================> c1541_dolphin_dos_device +// ======================> c1541_dolphin_dos_t -class c1541_dolphin_dos_device : public c1541_device_base +class c1541_dolphin_dos_t : public c1541_base_t { public: // construction/destruction - c1541_dolphin_dos_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1541_dolphin_dos_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -240,13 +240,13 @@ protected: }; -// ======================> c1541_professional_dos_v1_device +// ======================> c1541_professional_dos_v1_t -class c1541_professional_dos_v1_device : public c1541_device_base +class c1541_professional_dos_v1_t : public c1541_base_t { public: // construction/destruction - c1541_professional_dos_v1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1541_professional_dos_v1_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -255,13 +255,13 @@ protected: }; -// ======================> c1541_prologic_dos_classic_device +// ======================> c1541_prologic_dos_classic_t -class c1541_prologic_dos_classic_device : public c1541_device_base +class c1541_prologic_dos_classic_t : public c1541_base_t { public: // construction/destruction - c1541_prologic_dos_classic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + c1541_prologic_dos_classic_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -285,13 +285,27 @@ private: }; -// ======================> indus_gt_device +// ======================> indus_gt_t -class indus_gt_device : public c1541_device_base +class indus_gt_t : public c1541_base_t { public: // construction/destruction - indus_gt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + indus_gt_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + +protected: + // optional information overrides + virtual const tiny_rom_entry *device_rom_region() const override; +}; + + +// ======================> technica_t + +class technica_t : public c1541_base_t +{ +public: + // construction/destruction + technica_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); protected: // optional information overrides @@ -300,18 +314,19 @@ protected: // device type definition -DECLARE_DEVICE_TYPE(C1540, c1540_device) -DECLARE_DEVICE_TYPE(C1541, c1541_device) -DECLARE_DEVICE_TYPE(C1541C, c1541c_device) -DECLARE_DEVICE_TYPE(C1541II, c1541ii_device) -DECLARE_DEVICE_TYPE(SX1541, sx1541_device) -DECLARE_DEVICE_TYPE(FSD1, fsd1_device) -DECLARE_DEVICE_TYPE(FSD2, fsd2_device) -DECLARE_DEVICE_TYPE(CSD1, csd1_device) -DECLARE_DEVICE_TYPE(C1541_DOLPHIN_DOS, c1541_dolphin_dos_device) -DECLARE_DEVICE_TYPE(C1541_PROFESSIONAL_DOS_V1, c1541_professional_dos_v1_device) -DECLARE_DEVICE_TYPE(C1541_PROLOGIC_DOS_CLASSIC, c1541_prologic_dos_classic_device) -DECLARE_DEVICE_TYPE(INDUS_GT, indus_gt_device) +DECLARE_DEVICE_TYPE(C1540, c1540_t) +DECLARE_DEVICE_TYPE(C1541, c1541_t) +DECLARE_DEVICE_TYPE(C1541C, c1541c_t) +DECLARE_DEVICE_TYPE(C1541II, c1541ii_t) +DECLARE_DEVICE_TYPE(SX1541, sx1541_t) +DECLARE_DEVICE_TYPE(FSD1, fsd1_t) +DECLARE_DEVICE_TYPE(FSD2, fsd2_t) +DECLARE_DEVICE_TYPE(CSD1, csd1_t) +DECLARE_DEVICE_TYPE(C1541_DOLPHIN_DOS, c1541_dolphin_dos_t) +DECLARE_DEVICE_TYPE(C1541_PROFESSIONAL_DOS_V1, c1541_professional_dos_v1_t) +DECLARE_DEVICE_TYPE(C1541_PROLOGIC_DOS_CLASSIC, c1541_prologic_dos_classic_t) +DECLARE_DEVICE_TYPE(INDUS_GT, indus_gt_t) +DECLARE_DEVICE_TYPE(TECHNICA, technica_t) |