diff options
author | 2015-09-13 08:41:44 +0200 | |
---|---|---|
committer | 2015-09-13 08:41:44 +0200 | |
commit | f88cefad27a1737c76e09d99c9fb43e173506081 (patch) | |
tree | 2d8167d03579c46e226471747eb4407bd00ed6fa /src/devices/bus/snes/sfx.h | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/bus/snes/sfx.h')
-rw-r--r-- | src/devices/bus/snes/sfx.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/devices/bus/snes/sfx.h b/src/devices/bus/snes/sfx.h new file mode 100644 index 00000000000..04a2313fd92 --- /dev/null +++ b/src/devices/bus/snes/sfx.h @@ -0,0 +1,50 @@ +// license:BSD-3-Clause +// copyright-holders:Fabio Priuli +#ifndef __SNS_SFX_H +#define __SNS_SFX_H + +#include "snes_slot.h" +#include "rom.h" +#include "cpu/superfx/superfx.h" + + +// ======================> sns_rom_superfx_device + +class sns_rom_superfx_device : public sns_rom_device +{ +public: + // construction/destruction + sns_rom_superfx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + virtual machine_config_constructor device_mconfig_additions() const; + + required_device<superfx_device> m_superfx; + + // additional reading and writing + virtual DECLARE_READ8_MEMBER(read_l); + virtual DECLARE_READ8_MEMBER(read_h); + virtual DECLARE_READ8_MEMBER(read_ram); + virtual DECLARE_WRITE8_MEMBER(write_ram); + virtual DECLARE_READ8_MEMBER(chip_read); + virtual DECLARE_WRITE8_MEMBER(chip_write); + + virtual DECLARE_READ8_MEMBER(superfx_r_bank1); + virtual DECLARE_READ8_MEMBER(superfx_r_bank2); + virtual DECLARE_READ8_MEMBER(superfx_r_bank3); + virtual DECLARE_WRITE8_MEMBER(superfx_w_bank1); + virtual DECLARE_WRITE8_MEMBER(superfx_w_bank2); + virtual DECLARE_WRITE8_MEMBER(superfx_w_bank3); + virtual DECLARE_WRITE_LINE_MEMBER(snes_extern_irq_w); + + + UINT8 sfx_ram[0x200000]; +}; + + +// device type definition +extern const device_type SNS_LOROM_SUPERFX; + +#endif |