summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar Ryan Holtz <therealmogminer@gmail.com>2018-05-26 11:25:17 +0200
committerGravatarGravatar Ryan Holtz <therealmogminer@gmail.com>2018-05-26 11:25:17 +0200
commit618f42b96e9b0a4ce5e1b71a53badb9a6c6b9743 (patch) (github)
tree8b31c87b342d1b5485359fa6fdda9cda4c0ab23b /src
parentb5bf41c31a3beaa7de6bf41ac4520e58f04d7c05 (diff)
downloadmame-618f42b96e9b0a4ce5e1b71a53badb9a6c6b9743.tar.bz2
mame-618f42b96e9b0a4ce5e1b71a53badb9a6c6b9743.zip
vsnes: device_finder cleanup. (nw)
Diffstat (limited to 'src')
-rw-r--r--src/mame/machine/vsnes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/vsnes.cpp b/src/mame/machine/vsnes.cpp
index db00020acea..d5c1b3c4094 100644
--- a/src/mame/machine/vsnes.cpp
+++ b/src/mame/machine/vsnes.cpp
@@ -184,7 +184,7 @@ void vsnes_state::v_set_videorom_bank( int start, int count, int vrom_start_ban
MACHINE_START_MEMBER(vsnes_state,vsnes)
{
- address_space &ppu1_space = machine().device("ppu1")->memory().space(AS_PROGRAM);
+ address_space &ppu1_space = m_ppu1->space(AS_PROGRAM);
int i;
/* establish nametable ram */
@@ -248,12 +248,12 @@ MACHINE_START_MEMBER(vsnes_state,vsdual)
m_nt_page[1][2] = m_nt_ram[1].get() + 0x800;
m_nt_page[1][3] = m_nt_ram[1].get() + 0xc00;
- machine().device("ppu1")->memory().space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(vsnes_state::vsnes_nt0_r),this), write8_delegate(FUNC(vsnes_state::vsnes_nt0_w),this));
- machine().device("ppu2")->memory().space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(vsnes_state::vsnes_nt1_r),this), write8_delegate(FUNC(vsnes_state::vsnes_nt1_w),this));
+ m_ppu1->space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(vsnes_state::vsnes_nt0_r),this), write8_delegate(FUNC(vsnes_state::vsnes_nt0_w),this));
+ m_ppu2->space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(vsnes_state::vsnes_nt1_r),this), write8_delegate(FUNC(vsnes_state::vsnes_nt1_w),this));
// read only!
- machine().device("ppu1")->memory().space(AS_PROGRAM).install_read_bank(0x0000, 0x1fff, "bank2");
+ m_ppu1->space(AS_PROGRAM).install_read_bank(0x0000, 0x1fff, "bank2");
// read only!
- machine().device("ppu2")->memory().space(AS_PROGRAM).install_read_bank(0x0000, 0x1fff, "bank3");
+ m_ppu2->space(AS_PROGRAM).install_read_bank(0x0000, 0x1fff, "bank3");
membank("bank2")->configure_entries(0, m_vrom_size[0] / 0x2000, m_vrom[0], 0x2000);
membank("bank3")->configure_entries(0, m_vrom_size[1] / 0x2000, m_vrom[1], 0x2000);
membank("bank2")->set_entry(0);