summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-05-26 07:40:57 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2018-05-26 07:40:57 +0200
commit6890040b502514fe0335d328391886163bebdcea (patch)
tree9f943b20af1e41173a1c4e8b2833fd909d1f4e2c /src/mame
parent70088ad746c5274e858b5c97f46f9ec8c2325724 (diff)
atarisy2.cpp: removed tag lookup (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/atarisy2.cpp2
-rw-r--r--src/mame/includes/atarisy2.h38
2 files changed, 22 insertions, 18 deletions
diff --git a/src/mame/drivers/atarisy2.cpp b/src/mame/drivers/atarisy2.cpp
index d3635e65f8d..4f966ea8ee4 100644
--- a/src/mame/drivers/atarisy2.cpp
+++ b/src/mame/drivers/atarisy2.cpp
@@ -647,7 +647,7 @@ WRITE8_MEMBER(atarisy2_state::sound_reset_w)
/* a large number of signals are reset when this happens */
m_soundcomm->reset();
- machine().device("ymsnd")->reset();
+ m_ym2151->reset();
if (m_tms5220.found())
{
m_tms5220->reset(); // technically what happens is the tms5220 gets a long stream of 0xFF written to it when sound_reset_state is 0 which halts the chip after a few frames, but this works just as well, even if it isn't exactly true to hardware... The hardware may not have worked either, the resistors to pull input to 0xFF are fighting against the ls263 gate holding the latched value to be sent to the chip.
diff --git a/src/mame/includes/atarisy2.h b/src/mame/includes/atarisy2.h
index cd47a987cd5..b5ead477479 100644
--- a/src/mame/includes/atarisy2.h
+++ b/src/mame/includes/atarisy2.h
@@ -38,6 +38,25 @@ public:
, m_led(*this, "led%u", 0U)
{ }
+ void init_ssprint();
+ void init_apb();
+ void init_csprint();
+ void init_paperboy();
+ void init_720();
+
+ void atarisy2(machine_config &config);
+ void apb(machine_config &config);
+ void paperboy(machine_config &config);
+ void ssprint(machine_config &config);
+ void _720(machine_config &config);
+ void csprint(machine_config &config);
+
+protected:
+ virtual void device_post_load() override;
+ virtual void update_interrupts() override;
+ virtual void scanline_update(screen_device &screen, int scanline) override;
+
+private:
required_device<t11_device> m_maincpu;
required_device<m6502_device> m_audiocpu;
required_device<atari_motion_objects_device> m_mob;
@@ -76,10 +95,8 @@ public:
int32_t m_spin_pos; /* track fake position of spinner */
uint32_t m_spin_center_count;
- virtual void device_post_load() override;
+ output_finder<2> m_led;
- virtual void update_interrupts() override;
- virtual void scanline_update(screen_device &screen, int scanline) override;
DECLARE_WRITE16_MEMBER(int0_ack_w);
DECLARE_WRITE16_MEMBER(int1_ack_w);
DECLARE_WRITE16_MEMBER(int_enable_w);
@@ -96,11 +113,7 @@ public:
DECLARE_WRITE8_MEMBER(tms5220_w);
DECLARE_WRITE8_MEMBER(tms5220_strobe_w);
DECLARE_WRITE8_MEMBER(coincount_w);
- void init_ssprint();
- void init_apb();
- void init_csprint();
- void init_paperboy();
- void init_720();
+
TILE_GET_INFO_MEMBER(get_alpha_tile_info);
TILE_GET_INFO_MEMBER(get_playfield_tile_info);
DECLARE_MACHINE_START(atarisy2);
@@ -118,16 +131,7 @@ public:
DECLARE_PALETTE_DECODER(RRRRGGGGBBBBIIII);
static const atari_motion_objects_config s_mob_config;
- void atarisy2(machine_config &config);
- void apb(machine_config &config);
- void paperboy(machine_config &config);
- void ssprint(machine_config &config);
- void _720(machine_config &config);
- void csprint(machine_config &config);
void main_map(address_map &map);
void sound_map(address_map &map);
void vrambank_map(address_map &map);
-
-protected:
- output_finder<2> m_led;
};