diff options
Diffstat (limited to 'src/devices/bus/coco/cococart.cpp')
-rw-r--r-- | src/devices/bus/coco/cococart.cpp | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/src/devices/bus/coco/cococart.cpp b/src/devices/bus/coco/cococart.cpp index 6bf6360d24b..6932629e746 100644 --- a/src/devices/bus/coco/cococart.cpp +++ b/src/devices/bus/coco/cococart.cpp @@ -152,6 +152,30 @@ void cococart_slot_device::device_timer(emu_timer &timer, device_timer_id id, in //------------------------------------------------- +// cts_read +//------------------------------------------------- + +READ8_MEMBER(cococart_slot_device::cts_read) +{ + uint8_t result = 0x00; + if (m_cart) + result = m_cart->cts_read(space, offset); + return result; +} + + +//------------------------------------------------- +// cts_write +//------------------------------------------------- + +WRITE8_MEMBER(cococart_slot_device::cts_write) +{ + if (m_cart) + m_cart->cts_write(space, offset, data); +} + + +//------------------------------------------------- // scs_read //------------------------------------------------- @@ -412,7 +436,7 @@ image_init_result cococart_slot_device::call_load() { memory_region *cart_mem = m_cart->get_cart_memregion(); uint8_t *base = cart_mem->base(); - offs_t read_length, cart_length = cart_mem->bytes();; + offs_t read_length, cart_length = cart_mem->bytes(); if (!loaded_through_softlist()) { @@ -502,6 +526,33 @@ void device_cococart_interface::interface_pre_start() //------------------------------------------------- +// cts_read - Signifies a read where the CTS pin +// on the cartridge slot was asserted ($C000-FFEF) +//------------------------------------------------- + +READ8_MEMBER(device_cococart_interface::cts_read) +{ + memory_region *cart_mem = get_cart_memregion(); + offs_t cart_length = cart_mem->bytes(); + + if (cart_mem) + return cart_mem->base()[offset & (cart_length - 1)]; + else + return 0x00; +} + + +//------------------------------------------------- +// cts_write - Signifies a write where the CTS pin +// on the cartridge slot was asserted ($C000-FFEF) +//------------------------------------------------- + +WRITE8_MEMBER(device_cococart_interface::cts_write) +{ +} + + +//------------------------------------------------- // scs_read - Signifies a read where the SCS pin // on the cartridge slot was asserted ($FF40-5F) //------------------------------------------------- |