From e796502751c45b543b96f589ae8aeb01e6489725 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 9 Apr 2022 21:11:11 +1000 Subject: c80, ccs300: minor matters. --- src/mame/drivers/c80.cpp | 5 +++-- src/mame/drivers/ccs2810.cpp | 12 +++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/mame/drivers/c80.cpp b/src/mame/drivers/c80.cpp index 9b4435a910c..d6105f039c1 100644 --- a/src/mame/drivers/c80.cpp +++ b/src/mame/drivers/c80.cpp @@ -2,7 +2,7 @@ // copyright-holders:Curt Coder /*************************************************************************** -C-80 +C-80 Trainer (East Germany) Pasting: 0-F : as is @@ -133,6 +133,7 @@ void c80_state::c80_mem(address_map &map) void c80_state::c80_io(address_map &map) { map.global_mask(0xff); + map.unmap_value_high(); map(0x7c, 0x7f).rw(m_pio2, FUNC(z80pio_device::read), FUNC(z80pio_device::write)); map(0xbc, 0xbf).rw(m_pio1, FUNC(z80pio_device::read), FUNC(z80pio_device::write)); } @@ -344,7 +345,7 @@ void c80_state::c80(machine_config &config) /* ROMs */ ROM_START( c80 ) - ROM_REGION( 0x10000, Z80_TAG, 0 ) + ROM_REGION( 0x0800, Z80_TAG, ROMREGION_ERASEFF ) ROM_LOAD( "c80.d3", 0x0000, 0x0400, CRC(ad2b3296) SHA1(14f72cb73a4068b7a5d763cc0e254639c251ce2e) ) ROM_END diff --git a/src/mame/drivers/ccs2810.cpp b/src/mame/drivers/ccs2810.cpp index b2f15bd6219..8c76169c685 100644 --- a/src/mame/drivers/ccs2810.cpp +++ b/src/mame/drivers/ccs2810.cpp @@ -271,7 +271,7 @@ void ccs300_state::ccs300_io(address_map &map) map(0x34, 0x34).rw(FUNC(ccs300_state::port34_r), FUNC(ccs300_state::port34_w)); map(0x40, 0x40).w(FUNC(ccs300_state::port40_w)); map(0xf0, 0xf0).rw("dma", FUNC(z80dma_device::read), FUNC(z80dma_device::write)); - map(0xf2, 0xf2); // dip or jumper? only used by CCS-400 + map(0xf2, 0xf2).portr("MODEL"); // dip or jumper? only used by CCS-400 } @@ -847,6 +847,16 @@ static INPUT_PORTS_START( ccs2810 ) INPUT_PORTS_END static INPUT_PORTS_START( ccs300 ) + // No information available on this system, but it may be assumed that + // the 300 is floppy-only, while the 400 boots off a hard drive. + // Plugging in the HDC cable would ground this pin to inform the bios + // it should be a 400. This "dip" is so you can see (and trace) what + // happens. + PORT_START("MODEL") + PORT_DIPNAME(0x08, 0x08, "Model") + PORT_DIPSETTING(0x00, "CCS-400") + PORT_DIPSETTING(0x08, "CCS-300") + PORT_BIT(0xf7, IP_ACTIVE_LOW, IPT_UNUSED) INPUT_PORTS_END -- cgit v1.2.3