diff options
Diffstat (limited to 'src/devices/bus/saturn/rom.cpp')
-rw-r--r-- | src/devices/bus/saturn/rom.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/devices/bus/saturn/rom.cpp b/src/devices/bus/saturn/rom.cpp new file mode 100644 index 00000000000..7b8068735a1 --- /dev/null +++ b/src/devices/bus/saturn/rom.cpp @@ -0,0 +1,55 @@ +// license:BSD-3-Clause +// copyright-holders:Fabio Priuli +/*********************************************************************************************************** + + Saturn ROM cart emulation + + ***********************************************************************************************************/ + + +#include "emu.h" +#include "rom.h" + + +//------------------------------------------------- +// saturn_rom_device - constructor +//------------------------------------------------- + +const device_type SATURN_ROM = &device_creator<saturn_rom_device>; + + +saturn_rom_device::saturn_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), + device_sat_cart_interface( mconfig, *this ) +{ +} + +saturn_rom_device::saturn_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, SATURN_ROM, "Saturn ROM Carts", tag, owner, clock, "sat_rom", __FILE__), + device_sat_cart_interface( mconfig, *this ) +{ + m_cart_type = 0xff; // actually not clear if ROM carts have a type ID like DRAM/BRAM carts +} + + +//------------------------------------------------- +// mapper specific start/reset +//------------------------------------------------- + +void saturn_rom_device::device_start() +{ +} + +void saturn_rom_device::device_reset() +{ +} + + +/*------------------------------------------------- + mapper specific handlers + -------------------------------------------------*/ + +READ32_MEMBER(saturn_rom_device::read_rom) +{ + return m_rom[offset & (m_rom_size/4 - 1)]; +} |