diff options
Diffstat (limited to 'src/mame/includes/coolpool.h')
-rw-r--r-- | src/mame/includes/coolpool.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/mame/includes/coolpool.h b/src/mame/includes/coolpool.h index 8fd3dc9a9bc..89f1c124487 100644 --- a/src/mame/includes/coolpool.h +++ b/src/mame/includes/coolpool.h @@ -3,6 +3,7 @@ #define NVRAM_UNLOCK_SEQ_LEN 10 #include "cpu/tms34010/tms34010.h" +#include "machine/gen_latch.h" #include "machine/timer.h" #include "video/tlc34076.h" @@ -10,23 +11,28 @@ class coolpool_state : public driver_device { public: coolpool_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_dsp(*this, "dsp"), - m_tlc34076(*this, "tlc34076"), - m_vram_base(*this, "vram_base"), - m_nvram(*this, "nvram") { } + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_dsp(*this, "dsp") + , m_tlc34076(*this, "tlc34076") + , m_main2dsp(*this, "main2dsp") + , m_dsp2main(*this, "dsp2main") + , m_vram_base(*this, "vram_base") + , m_nvram(*this, "nvram") + , m_dsp_rom(*this, "dspdata") + { } required_device<tms34010_device> m_maincpu; required_device<cpu_device> m_dsp; optional_device<tlc34076_device> m_tlc34076; + + required_device<generic_latch_16_device> m_main2dsp; + required_device<generic_latch_16_device> m_dsp2main; required_shared_ptr<uint16_t> m_vram_base; required_shared_ptr<uint16_t> m_nvram; + required_region_ptr<uint8_t> m_dsp_rom; - uint8_t m_cmd_pending; - uint16_t m_iop_cmd; - uint16_t m_iop_answer; int m_iop_romaddr; uint8_t m_newx[3]; @@ -41,23 +47,15 @@ public: uint16_t m_nvram_write_seq[NVRAM_UNLOCK_SEQ_LEN]; uint8_t m_nvram_write_enable; - uint8_t m_old_cmd; + bool m_old_cmd; uint8_t m_same_cmd_count; DECLARE_WRITE16_MEMBER(nvram_thrash_w); DECLARE_WRITE16_MEMBER(nvram_data_w); DECLARE_WRITE16_MEMBER(nvram_thrash_data_w); DECLARE_WRITE16_MEMBER(amerdart_misc_w); DECLARE_READ_LINE_MEMBER(amerdart_dsp_bio_line_r); - DECLARE_READ16_MEMBER(amerdart_iop_r); - DECLARE_WRITE16_MEMBER(amerdart_iop_w); - DECLARE_READ16_MEMBER(amerdart_dsp_cmd_r); - DECLARE_WRITE16_MEMBER(amerdart_dsp_answer_w); DECLARE_READ16_MEMBER(amerdart_trackball_r); DECLARE_WRITE16_MEMBER(coolpool_misc_w); - DECLARE_WRITE16_MEMBER(coolpool_iop_w); - DECLARE_READ16_MEMBER(coolpool_iop_r); - DECLARE_READ16_MEMBER(dsp_cmd_r); - DECLARE_WRITE16_MEMBER(dsp_answer_w); DECLARE_READ16_MEMBER(dsp_bio_line_r); DECLARE_READ16_MEMBER(dsp_hold_line_r); DECLARE_READ16_MEMBER(dsp_rom_r); @@ -72,7 +70,6 @@ public: DECLARE_DRIVER_INIT(9ballsht); DECLARE_MACHINE_RESET(amerdart); DECLARE_MACHINE_RESET(coolpool); - TIMER_CALLBACK_MEMBER(deferred_iop_w); TIMER_DEVICE_CALLBACK_MEMBER(nvram_write_timeout); TIMER_DEVICE_CALLBACK_MEMBER(amerdart_audio_int_gen); void register_state_save(); @@ -84,7 +81,9 @@ public: void amerdart_dsp_pgm_map(address_map &map); void amerdart_map(address_map &map); void coolpool_dsp_io_map(address_map &map); + void coolpool_dsp_io_base_map(address_map &map); void coolpool_dsp_pgm_map(address_map &map); void coolpool_map(address_map &map); + void nballsht_dsp_io_map(address_map &map); void nballsht_map(address_map &map); }; |