diff options
Diffstat (limited to 'src/devices/bus/z88/flash.cpp')
-rw-r--r-- | src/devices/bus/z88/flash.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/devices/bus/z88/flash.cpp b/src/devices/bus/z88/flash.cpp index c769530b1de..bda80f4cff6 100644 --- a/src/devices/bus/z88/flash.cpp +++ b/src/devices/bus/z88/flash.cpp @@ -37,10 +37,27 @@ z88_1024k_flash_device::z88_1024k_flash_device(const machine_config &mconfig, co : device_t(mconfig, Z88_1024K_FLASH, tag, owner, clock) , device_z88cart_interface(mconfig, *this) , m_flash(*this, FLASH_TAG) + , m_region(*this, FLASH_TAG) { } //------------------------------------------------- +// rom_region - device-specific ROM region +//------------------------------------------------- + +ROM_START( z88_1024k_flash ) + ROM_REGION( 0x100000, FLASH_TAG, ROMREGION_ERASEFF ) + // this region is required to initialize the flash device with the data loaded from the cartridge interface +ROM_END + + +const tiny_rom_entry *z88_1024k_flash_device::device_rom_region() const +{ + return ROM_NAME( z88_1024k_flash ); +} + + +//------------------------------------------------- // device_start - device-specific startup //------------------------------------------------- @@ -64,7 +81,7 @@ void z88_1024k_flash_device::device_add_mconfig(machine_config &config) uint8_t* z88_1024k_flash_device::get_cart_base() { - return m_flash->base(); + return m_region->base(); } /*------------------------------------------------- |