mirror of
https://github.com/holub/mame
synced 2025-06-01 10:31:48 +03:00
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
// license:BSD-3-Clause
|
|
// copyright-holders:Fabio Priuli
|
|
/***************************************************************************
|
|
|
|
Atari 2600 cart Spectravideo Compumate (Cart + keyboard!)
|
|
|
|
This is tricky to implement and it is only a skeleton ATM.
|
|
The device needs to interface with both the TIA and the RIOT.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#include "emu.h"
|
|
#include "compumat.h"
|
|
|
|
DEFINE_DEVICE_TYPE(A26_ROM_COMPUMATE, a26_rom_cm_device, "a2600_cm", "Atari 2600 ROM Cart Compumate")
|
|
|
|
|
|
a26_rom_cm_device::a26_rom_cm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
|
: a26_rom_f6_device(mconfig, A26_ROM_COMPUMATE, tag, owner, clock)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------
|
|
// mapper specific start/reset
|
|
//-------------------------------------------------
|
|
|
|
void a26_rom_cm_device::device_start()
|
|
{
|
|
save_item(NAME(m_base_bank));
|
|
}
|
|
|
|
void a26_rom_cm_device::device_reset()
|
|
{
|
|
m_base_bank = 3;
|
|
}
|
|
|
|
|
|
static INPUT_PORTS_START( keyboard )
|
|
INPUT_PORTS_END
|
|
|
|
|
|
ioport_constructor a26_rom_cm_device::device_input_ports() const
|
|
{
|
|
return INPUT_PORTS_NAME( keyboard );
|
|
}
|
|
|
|
|
|
|
|
uint8_t a26_rom_cm_device::read_rom(offs_t offset)
|
|
{
|
|
return m_rom[offset + (m_base_bank * 0x1000)];
|
|
}
|