diff options
author | 2014-10-10 15:28:46 +0000 | |
---|---|---|
committer | 2014-10-10 15:28:46 +0000 | |
commit | f0fad04eb68b545e6075f3b65d6d4db8c03e4025 (patch) | |
tree | e1a52b526fd0a7e306fd5cfe9adac62976555823 /src/emu/bus/crvision/rom.h | |
parent | 4de494250b26fc201171ac3b2b3c24f25ac08aab (diff) |
(MESS) converted vectrex and crvision to use slot devices for
their carts. nw.
(with these, we are done for the moment with new slot devices for carts...)
Diffstat (limited to 'src/emu/bus/crvision/rom.h')
-rw-r--r-- | src/emu/bus/crvision/rom.h | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/src/emu/bus/crvision/rom.h b/src/emu/bus/crvision/rom.h new file mode 100644 index 00000000000..e8715d47a2c --- /dev/null +++ b/src/emu/bus/crvision/rom.h @@ -0,0 +1,114 @@ +#ifndef __CRVISION_ROM_H +#define __CRVISION_ROM_H + +#include "slot.h" + + +// ======================> crvision_rom_device + +class crvision_rom_device : public device_t, + public device_crvision_cart_interface +{ +public: + // construction/destruction + crvision_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); + crvision_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // device-level overrides + virtual void device_start() {} + virtual void device_reset() {} + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + +// ======================> crvision_rom6k_device + +class crvision_rom6k_device : public crvision_rom_device +{ +public: + // construction/destruction + crvision_rom6k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + +// ======================> crvision_rom8k_device + +class crvision_rom8k_device : public crvision_rom_device +{ +public: + // construction/destruction + crvision_rom8k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + +// ======================> crvision_rom10k_device + +class crvision_rom10k_device : public crvision_rom_device +{ +public: + // construction/destruction + crvision_rom10k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom40); + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + +// ======================> crvision_rom12k_device + +class crvision_rom12k_device : public crvision_rom_device +{ +public: + // construction/destruction + crvision_rom12k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom40); + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + +// ======================> crvision_rom16k_device + +class crvision_rom16k_device : public crvision_rom_device +{ +public: + // construction/destruction + crvision_rom16k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + +// ======================> crvision_rom18k_device + +class crvision_rom18k_device : public crvision_rom_device +{ +public: + // construction/destruction + crvision_rom18k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // reading and writing + virtual DECLARE_READ8_MEMBER(read_rom40); + virtual DECLARE_READ8_MEMBER(read_rom80); +}; + + + + + +// device type definition +extern const device_type CRVISION_ROM_4K; +extern const device_type CRVISION_ROM_6K; +extern const device_type CRVISION_ROM_8K; +extern const device_type CRVISION_ROM_10K; +extern const device_type CRVISION_ROM_12K; +extern const device_type CRVISION_ROM_16K; +extern const device_type CRVISION_ROM_18K; + + +#endif |