src/mess/machine/coco_pak.c
| r12092 | r12093 | |
| 66 | 66 | { |
| 67 | 67 | m_cart = dynamic_cast<device_image_interface *>(subdevice(CARTSLOT_TAG)); |
| 68 | 68 | m_owner = dynamic_cast<cococart_slot_device *>(owner()); |
| 69 | | subtag(m_region_name, CARTSLOT_TAG); |
| 70 | 69 | } |
| 71 | 70 | |
| 72 | 71 | //------------------------------------------------- |
| r12092 | r12093 | |
| 122 | 121 | |
| 123 | 122 | UINT8* coco_pak_device::get_cart_base() |
| 124 | 123 | { |
| 125 | | return machine().region(m_region_name.cstr())->base(); |
| 124 | return subregion(CARTSLOT_TAG)->base(); |
| 126 | 125 | } |
| 127 | 126 | |
| 128 | 127 | /*************************************************************************** |
| r12092 | r12093 | |
| 167 | 166 | { |
| 168 | 167 | UINT64 pos; |
| 169 | 168 | UINT32 i; |
| 170 | | UINT8 *rom = machine().region(m_region_name.cstr())->base(); |
| 171 | | UINT32 rom_length = machine().region(m_region_name.cstr())->bytes(); |
| 169 | UINT8 *rom = subregion(CARTSLOT_TAG)->base(); |
| 170 | UINT32 rom_length = subregion(CARTSLOT_TAG)->bytes(); |
| 172 | 171 | |
| 173 | 172 | pos = (bank * 0x4000) % m_cart->length(); |
| 174 | 173 | |
src/mess/machine/coco_fdc.c
| r12092 | r12093 | |
| 203 | 203 | void coco_fdc_device::device_start() |
| 204 | 204 | { |
| 205 | 205 | m_owner = dynamic_cast<cococart_slot_device *>(owner()); |
| 206 | | subtag(m_region_name, "eprom"); |
| 207 | 206 | m_drq = 1; |
| 208 | 207 | m_disto_msm6242 = subdevice(DISTO_TAG); |
| 209 | 208 | m_ds1315 = subdevice(CLOUD9_TAG); |
| r12092 | r12093 | |
| 248 | 247 | |
| 249 | 248 | UINT8* coco_fdc_device::get_cart_base() |
| 250 | 249 | { |
| 251 | | return machine().region(m_region_name.cstr())->base(); |
| 250 | return subregion("eprom")->base(); |
| 252 | 251 | } |
| 253 | 252 | |
| 254 | 253 | /*------------------------------------------------- |
| r12092 | r12093 | |
| 464 | 463 | void dragon_fdc_device::device_start() |
| 465 | 464 | { |
| 466 | 465 | m_owner = dynamic_cast<cococart_slot_device *>(owner()); |
| 467 | | subtag(m_region_name, "eprom"); |
| 468 | 466 | m_drq = 0; |
| 469 | 467 | m_wd17xx = subdevice(WD_TAG); |
| 470 | 468 | m_dskreg = 0x00; |