diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2014-02-27 21:42:45 +0000 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2014-02-27 21:42:45 +0000 |
commit | 65309d12105032b768832a60ef138b670c43f7a4 (patch) | |
tree | 0210e282dc09d39944df32e740b997d6603e35f5 /src/mame/drivers/namcos23.c | |
parent | 3ed847b9bb56e1535aefe3f1c7b63da063652516 (diff) |
Some more tagmap cleanups for namcos23. (nw)
mame640152 timecrs2 -bench 30 Average speed: 132.73% (29 seconds)
mame64 timecrs2 -bench 30 Average speed: 144.98% (29 seconds)
Diffstat (limited to 'src/mame/drivers/namcos23.c')
-rw-r--r-- | src/mame/drivers/namcos23.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c index 55263761f9c..f43e64d62ab 100644 --- a/src/mame/drivers/namcos23.c +++ b/src/mame/drivers/namcos23.c @@ -1359,7 +1359,9 @@ public: m_gmen_sh2_shared(*this, "gmen_sh2_shared"), m_gfxdecode(*this, "gfxdecode"), m_lightx(*this, "LIGHTX"), - m_lighty(*this, "LIGHTY") + m_lighty(*this, "LIGHTY"), + m_p1(*this, "P1"), + m_p2(*this, "P2") { } required_device<cpu_device> m_maincpu; @@ -1377,6 +1379,8 @@ public: required_device<gfxdecode_device> m_gfxdecode; optional_ioport m_lightx; optional_ioport m_lighty; + required_ioport m_p1; + required_ioport m_p2; c404_t m_c404; c361_t m_c361; @@ -2555,7 +2559,7 @@ WRITE16_MEMBER(namcos23_state::s23_ctl_w) case 2: case 3: // These may be coming from another CPU, in particular the I/O one - m_ctl_inp_buffer[offset-2] = ioport(offset == 2 ? "P1" : "P2")->read(); + m_ctl_inp_buffer[offset-2] = (offset == 2 ? m_p1 : m_p2)->read(); break; case 5: if(m_ctl_vbl_active) |