diff options
Diffstat (limited to 'src/mame/drivers/istellar.cpp')
-rw-r--r-- | src/mame/drivers/istellar.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mame/drivers/istellar.cpp b/src/mame/drivers/istellar.cpp index b6004fb85a4..2afb8cc846a 100644 --- a/src/mame/drivers/istellar.cpp +++ b/src/mame/drivers/istellar.cpp @@ -66,6 +66,12 @@ public: required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; void istellar(machine_config &config); + void z80_0_io(address_map &map); + void z80_0_mem(address_map &map); + void z80_1_io(address_map &map); + void z80_1_mem(address_map &map); + void z80_2_io(address_map &map); + void z80_2_mem(address_map &map); }; @@ -174,7 +180,7 @@ WRITE8_MEMBER(istellar_state::z80_2_ldp_write) /* PROGRAM MAPS */ -static ADDRESS_MAP_START( z80_0_mem, AS_PROGRAM, 8, istellar_state ) +ADDRESS_MAP_START(istellar_state::z80_0_mem) AM_RANGE(0x0000,0x9fff) AM_ROM AM_RANGE(0xa000,0xa7ff) AM_RAM AM_RANGE(0xa800,0xabff) AM_RAM AM_SHARE("tile_ram") @@ -182,12 +188,12 @@ static ADDRESS_MAP_START( z80_0_mem, AS_PROGRAM, 8, istellar_state ) AM_RANGE(0xb000,0xb3ff) AM_RAM AM_SHARE("sprite_ram") ADDRESS_MAP_END -static ADDRESS_MAP_START( z80_1_mem, AS_PROGRAM, 8, istellar_state ) +ADDRESS_MAP_START(istellar_state::z80_1_mem) AM_RANGE(0x0000,0x1fff) AM_ROM AM_RANGE(0x4000,0x47ff) AM_RAM ADDRESS_MAP_END -static ADDRESS_MAP_START( z80_2_mem, AS_PROGRAM, 8, istellar_state ) +ADDRESS_MAP_START(istellar_state::z80_2_mem) AM_RANGE(0x0000,0x17ff) AM_ROM AM_RANGE(0x1800,0x1fff) AM_RAM AM_RANGE(0xc000,0xc000) AM_READ(z80_2_unknown_read) /* Seems to be thrown away every time it's read - maybe interrupt related? */ @@ -195,7 +201,7 @@ ADDRESS_MAP_END /* IO MAPS */ -static ADDRESS_MAP_START( z80_0_io, AS_IO, 8, istellar_state ) +ADDRESS_MAP_START(istellar_state::z80_0_io) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00,0x00) AM_READ_PORT("IN0") AM_RANGE(0x02,0x02) AM_READ_PORT("DSW1") @@ -204,14 +210,14 @@ static ADDRESS_MAP_START( z80_0_io, AS_IO, 8, istellar_state ) AM_RANGE(0x05,0x05) AM_READWRITE(z80_0_latch1_read,z80_0_latch2_write) ADDRESS_MAP_END -static ADDRESS_MAP_START( z80_1_io, AS_IO, 8, istellar_state ) +ADDRESS_MAP_START(istellar_state::z80_1_io) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00,0x00) AM_NOP /*AM_READWRITE(z80_1_slatch_read,z80_1_slatch_write)*/ AM_RANGE(0x01,0x01) AM_NOP /*AM_READWRITE(z80_1_nmienable,z80_1_soundwrite_front)*/ AM_RANGE(0x02,0x02) AM_NOP /*AM_WRITE(z80_1_soundwrite_rear)*/ ADDRESS_MAP_END -static ADDRESS_MAP_START( z80_2_io, AS_IO, 8, istellar_state ) +ADDRESS_MAP_START(istellar_state::z80_2_io) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00,0x00) AM_READWRITE(z80_2_ldp_read,z80_2_ldp_write) AM_RANGE(0x01,0x01) AM_READWRITE(z80_2_latch2_read,z80_2_latch1_write) |