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/sound/315-5641.h | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/devices/sound/315-5641.h')
-rw-r--r-- | src/devices/sound/315-5641.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/devices/sound/315-5641.h b/src/devices/sound/315-5641.h new file mode 100644 index 00000000000..c8fb0f6270f --- /dev/null +++ b/src/devices/sound/315-5641.h @@ -0,0 +1,30 @@ +/* Sega 315-5641 / D77591 / 9442CA010 */ + +// this is the PICO sound chip, we are not sure if it's the same as a 7759 or not, it requires FIFO logic +// which the 7759 does _not_ have but it is possible that is handled somewhere else on the PICO hardawre. + +#include "upd7759.h" + + +class sega_315_5641_pcm_device : public upd7759_device +{ +public: + sega_315_5641_pcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + UINT8 get_fifo_space(); + void advance_state(); + DECLARE_WRITE8_MEMBER(port_w); + + UINT8 m_fifo_data[0x40]; + UINT8 m_fifo_read; // last read offset (will read in m_fifo_read+1) + UINT8 m_fifo_write; // write offset + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + +}; + +extern const device_type SEGA_315_5641_PCM;
\ No newline at end of file |