summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/coco/coco_pak.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/coco/coco_pak.cpp')
-rw-r--r--src/devices/bus/coco/coco_pak.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/devices/bus/coco/coco_pak.cpp b/src/devices/bus/coco/coco_pak.cpp
index 7c184dc67ad..16f17441ed4 100644
--- a/src/devices/bus/coco/coco_pak.cpp
+++ b/src/devices/bus/coco/coco_pak.cpp
@@ -95,6 +95,15 @@ const tiny_rom_entry *coco_pak_device::device_rom_region() const
return ROM_NAME( coco_pak );
}
+//-------------------------------------------------
+// get_cart_size
+//-------------------------------------------------
+
+uint32_t coco_pak_device::get_cart_size()
+{
+ return 0x8000;
+}
+
/*-------------------------------------------------
device_reset - device-specific startup
-------------------------------------------------*/
@@ -121,6 +130,17 @@ uint8_t* coco_pak_device::get_cart_base()
return memregion(CARTSLOT_TAG)->base();
}
+/*-------------------------------------------------
+ get_cart_memregion
+-------------------------------------------------*/
+
+memory_region* coco_pak_device::get_cart_memregion()
+{
+ return memregion(CARTSLOT_TAG);
+}
+
+
+
/***************************************************************************
BANKED CARTRIDGES
***************************************************************************/
@@ -199,7 +219,7 @@ uint8_t *coco_pak_banked_device::get_cart_base()
uint32_t coco_pak_banked_device::get_cart_size()
{
- return 0x20000;
+ return 0x4000;
}
//-------------------------------------------------