Skip to content

Commit 82f571c

Browse files
BFM_Cobra3 - attempt to improve non-MPEG hardware parts. (#14588)
* New systems marked not working ------------------------------ Telly Addicts (New Series) (Bellfruit) (Cobra 3) [James Wallace, blueonesarefaster]
1 parent 88d3d5f commit 82f571c

File tree

4 files changed

+616
-306
lines changed

4 files changed

+616
-306
lines changed

src/devices/machine/68340.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,16 @@ uint8_t m68340_cpu_device::int_ack(offs_t offset)
130130
uint16_t m68340_cpu_device::m68340_internal_base_r(offs_t offset, uint16_t mem_mask)
131131
{
132132
if (!machine().side_effects_disabled())
133-
LOGMASKED(LOG_BASE, "%08x m68340_internal_base_r %08x, (%08x)\n", m_ppc, offset*2,mem_mask);
134-
return ((!BIT(offset, 0) ? (m_m68340_base >> 16): m_m68340_base)) & 0xffff;
133+
LOGMASKED(LOG_BASE, "%08x m68340_internal_base_r %08x, (%08x) (%08x)\n", m_ppc, offset*2,mem_mask, m_sfc);
134+
135+
if (m_sfc==0x7)
136+
{
137+
return ((!BIT(offset, 0) ? (m_m68340_base >> 16): m_m68340_base)) & 0xffff;
138+
}
139+
else
140+
{
141+
return m_internal->unmap();
142+
}
135143
}
136144

137145
void m68340_cpu_device::m68340_internal_base_w(offs_t offset, uint16_t data, uint16_t mem_mask)
@@ -269,6 +277,7 @@ void m68340_cpu_device::device_start()
269277
m_m68340_base = 0x00000000;
270278

271279
m_internal = &space(AS_PROGRAM);
280+
m_internal->unmap_value_high();
272281
}
273282

274283

0 commit comments

Comments
 (0)