diff options
Diffstat (limited to 'src/emu/memory.c')
-rw-r--r-- | src/emu/memory.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c index 790597ed295..bf251912004 100644 --- a/src/emu/memory.c +++ b/src/emu/memory.c @@ -2311,6 +2311,30 @@ void address_space::install_bank_generic(offs_t addrstart, offs_t addrend, offs_ } +void address_space::install_bank_generic(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, memory_bank *rbank, memory_bank *wbank) +{ + VPRINTF(("address_space::install_readwrite_bank(%s-%s mask=%s mirror=%s, read=\"%s\" / write=\"%s\")\n", + core_i64_hex_format(addrstart, m_addrchars), core_i64_hex_format(addrend, m_addrchars), + core_i64_hex_format(addrmask, m_addrchars), core_i64_hex_format(addrmirror, m_addrchars), + (rbank != NULL) ? rbank->tag() : "(none)", (wbank != NULL) ? wbank->tag() : "(none)")); + + // map the read bank + if (rbank != NULL) + { + read().map_range(addrstart, addrend, addrmask, addrmirror, rbank->index()); + } + + // map the write bank + if (wbank != NULL) + { + write().map_range(addrstart, addrend, addrmask, addrmirror, wbank->index()); + } + + // update the memory dump + generate_memdump(machine()); +} + + //------------------------------------------------- // install_ram_generic - install a simple fixed // RAM region into the given address space |