mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
skeleton/tvcobrasd.cpp: added very basic memory maps
This commit is contained in:
parent
b312853e6f
commit
d4e47cf7df
@ -62,4 +62,4 @@ ROM_END
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
SYST(1995, mt80s, 0, 0, mt80s, mt80s, roland_mt80s_state, empty_init, "Roland", "MT-80S Music Player", MACHINE_IS_SKELETON)
|
||||
SYST(1995, mt80s, 0, 0, mt80s, mt80s, roland_mt80s_state, empty_init, "Roland", "MT 80s Music Player", MACHINE_IS_SKELETON)
|
||||
|
@ -62,12 +62,33 @@ public:
|
||||
void cobrasday(machine_config &config);
|
||||
|
||||
private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<v25_device> m_maincpu;
|
||||
|
||||
void cobrasd(machine_config &config);
|
||||
|
||||
void program_map(address_map &map);
|
||||
void io_map(address_map &map);
|
||||
void data_map(address_map &map);
|
||||
};
|
||||
|
||||
|
||||
void cobrasd_state::program_map(address_map &map)
|
||||
{
|
||||
map(0x00000, 0x03fff).ram();
|
||||
map(0xe0000, 0xfffff).rom().region("maincpu", 0);
|
||||
}
|
||||
|
||||
void cobrasd_state::io_map(address_map &map)
|
||||
{
|
||||
// map(0x8000, 0x8000).w();
|
||||
}
|
||||
|
||||
void cobrasd_state::data_map(address_map &map)
|
||||
{
|
||||
map(0x000, 0x1ff).ram();
|
||||
}
|
||||
|
||||
|
||||
static INPUT_PORTS_START(cobrasd)
|
||||
PORT_START("DSW1")
|
||||
PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1")
|
||||
@ -96,6 +117,16 @@ void cobrasd_state::cobrasd(machine_config &config)
|
||||
// Basic machine hardware
|
||||
|
||||
V25(config, m_maincpu, 16_MHz_XTAL);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &cobrasd_state::program_map);
|
||||
m_maincpu->set_addrmap(AS_IO, &cobrasd_state::io_map);
|
||||
m_maincpu->set_addrmap(AS_DATA, &cobrasd_state::data_map);
|
||||
m_maincpu->pt_in_cb().set([this] () { logerror("%s: pt in\n", machine().describe_context()); return uint8_t(0); });
|
||||
m_maincpu->p0_in_cb().set([this] () { logerror("%s: p0 in\n", machine().describe_context()); return uint8_t(0); });
|
||||
m_maincpu->p1_in_cb().set([this] () { logerror("%s: p1 in\n", machine().describe_context()); return uint8_t(0); });
|
||||
m_maincpu->p2_in_cb().set([this] () { logerror("%s: p2 in\n", machine().describe_context()); return uint8_t(0); });
|
||||
m_maincpu->p0_out_cb().set([this] (uint8_t data) { logerror("%s: p0 out %02X\n", machine().describe_context(), data); });
|
||||
m_maincpu->p1_out_cb().set([this] (uint8_t data) { logerror("%s: p1 out %02X\n", machine().describe_context(), data); });
|
||||
m_maincpu->p2_out_cb().set([this] (uint8_t data) { logerror("%s: p2 out %02X\n", machine().describe_context(), data); });
|
||||
|
||||
PCF8583(config, "rtc", 32.768_kHz_XTAL); // External xtal labeled "S833", unknown frequency
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user