diff options
Diffstat (limited to 'src/mame/drivers/stratos.cpp')
-rw-r--r-- | src/mame/drivers/stratos.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mame/drivers/stratos.cpp b/src/mame/drivers/stratos.cpp index 35dc8d9896a..ca23a2f360c 100644 --- a/src/mame/drivers/stratos.cpp +++ b/src/mame/drivers/stratos.cpp @@ -330,17 +330,18 @@ WRITE8_MEMBER(stratos_state::lcd_w) } } -ADDRESS_MAP_START(stratos_state::stratos_mem) - AM_RANGE(0x0000, 0x1fff) AM_RAM - AM_RANGE(0x2000, 0x2000) AM_WRITE(p2000_w) - AM_RANGE(0x2200, 0x2200) AM_READWRITE(p2200_r, p2200_w) - AM_RANGE(0x2400, 0x2400) AM_WRITE(p2400_w) - AM_RANGE(0x2600, 0x2600) AM_READWRITE(control_r, control_w) - AM_RANGE(0x2800, 0x37ff) AM_RAMBANK("nvram_bank") - AM_RANGE(0x3800, 0x3800) AM_READWRITE(lcd_r, lcd_w) - AM_RANGE(0x4000, 0x7fff) AM_ROMBANK("bank_4000") - AM_RANGE(0x8000, 0xffff) AM_ROMBANK("bank_8000") -ADDRESS_MAP_END +void stratos_state::stratos_mem(address_map &map) +{ + map(0x0000, 0x1fff).ram(); + map(0x2000, 0x2000).w(this, FUNC(stratos_state::p2000_w)); + map(0x2200, 0x2200).rw(this, FUNC(stratos_state::p2200_r), FUNC(stratos_state::p2200_w)); + map(0x2400, 0x2400).w(this, FUNC(stratos_state::p2400_w)); + map(0x2600, 0x2600).rw(this, FUNC(stratos_state::control_r), FUNC(stratos_state::control_w)); + map(0x2800, 0x37ff).bankrw("nvram_bank"); + map(0x3800, 0x3800).rw(this, FUNC(stratos_state::lcd_r), FUNC(stratos_state::lcd_w)); + map(0x4000, 0x7fff).bankr("bank_4000"); + map(0x8000, 0xffff).bankr("bank_8000"); +} static INPUT_PORTS_START( stratos ) INPUT_PORTS_END |