summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pentagon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pentagon.cpp')
-rw-r--r--src/mame/drivers/pentagon.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mame/drivers/pentagon.cpp b/src/mame/drivers/pentagon.cpp
index a1c8e5763ca..cc053c8e12e 100644
--- a/src/mame/drivers/pentagon.cpp
+++ b/src/mame/drivers/pentagon.cpp
@@ -175,6 +175,13 @@ READ8_MEMBER(pentagon_state::beta_disable_r)
return m_program->read_byte(offset + 0x4000);
}
+static ADDRESS_MAP_START(pentagon_mem, AS_PROGRAM, 8, pentagon_state)
+ AM_RANGE(0x0000, 0x3fff) AM_ROMBANK("bank1")
+ AM_RANGE(0x4000, 0x7fff) AM_RAMBANK("bank2")
+ AM_RANGE(0x8000, 0xbfff) AM_RAMBANK("bank3")
+ AM_RANGE(0xc000, 0xffff) AM_RAMBANK("bank4")
+ADDRESS_MAP_END
+
static ADDRESS_MAP_START (pentagon_io, AS_IO, 8, pentagon_state )
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(0x0000, 0x0000) AM_WRITE(pentagon_port_7ffd_w) AM_MIRROR(0x7ffd) // (A15 | A1) == 0
@@ -244,6 +251,7 @@ GFXDECODE_END
static MACHINE_CONFIG_DERIVED( pentagon, spectrum_128 )
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_CLOCK(XTAL_14MHz / 4)
+ MCFG_CPU_PROGRAM_MAP(pentagon_mem)
MCFG_CPU_IO_MAP(pentagon_io)
MCFG_CPU_DECRYPTED_OPCODES_MAP(pentagon_switch)
MCFG_CPU_VBLANK_INT_DRIVER("screen", pentagon_state, pentagon_interrupt)
@@ -264,6 +272,8 @@ static MACHINE_CONFIG_DERIVED( pentagon, spectrum_128 )
MCFG_SOUND_ROUTE(1, "rspeaker", 0.25)
MCFG_SOUND_ROUTE(2, "rspeaker", 0.50)
+ MCFG_DEVICE_REMOVE("exp")
+
MCFG_SOFTWARE_LIST_ADD("cass_list_pen","pentagon_cass")
MACHINE_CONFIG_END