diff options
author | 2020-11-02 12:11:43 +0100 | |
---|---|---|
committer | 2020-11-02 12:12:11 +0100 | |
commit | b8c338858a101d14308c64c87b0f714db4f05326 (patch) | |
tree | a34dca21d603b98f5450d31868ce33a7e4c103b0 /src/devices/bus/isa/3c503.cpp | |
parent | f4172ded3ec6f3b877ab813f6453d6d1907c1c00 (diff) |
emumem: Simplify memory management. [O. Galibert]
API impact:
- install_ram/rom/writeonly now requires a non-null pointer. If you want
automatically managed ram, add it to a memory map, not in machine_start
- install_*_bank now requires a memory_bank *, not a string
- one can create memory banks outside of memory maps with memory_bank_creator
- one can create memory shares outside of memory maps with memory_share_creator
Memory maps impact:
- ram ranges with overlapping addresses are not shared anymore. Use .share()
- ram ranges touching each other are not merged anymore. Stay in your range
Extra note:
- there is no need to create a bank just to dynamically map some memory/rom.
Just use install_rom/ram/writeonly
Diffstat (limited to 'src/devices/bus/isa/3c503.cpp')
-rw-r--r-- | src/devices/bus/isa/3c503.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/isa/3c503.cpp b/src/devices/bus/isa/3c503.cpp index de7363ceb26..92da79a906e 100644 --- a/src/devices/bus/isa/3c503.cpp +++ b/src/devices/bus/isa/3c503.cpp @@ -55,7 +55,7 @@ void el2_3c503_device::device_reset() { m_regs.ctrl = 0x0a; m_irq_state = CLEAR_LINE; m_isa->unmap_bank(SADDR, SADDR + 0x1fff); - m_isa->install_bank(SADDR, SADDR + 0x1fff, "3c503 rom", m_rom); + m_isa->install_bank(SADDR, SADDR + 0x1fff, m_rom); } void el2_3c503_device::set_irq(int state) { @@ -191,13 +191,13 @@ void el2_3c503_device::el2_3c503_hiport_w(offs_t offset, uint8_t data) { m_isa->unmap_bank(SADDR, SADDR + 0x1fff); switch(data & 0xf) { case 0: - m_isa->install_bank(SADDR, SADDR + 0x1fff, "3c503 rom", m_rom); + m_isa->install_bank(SADDR, SADDR + 0x1fff, m_rom); break; case 9: - m_isa->install_bank(SADDR, SADDR + 0x1fff, "3c503 ram", m_board_ram); + m_isa->install_bank(SADDR, SADDR + 0x1fff, m_board_ram); break; default: - m_isa->install_bank(SADDR, SADDR + 0x1fff, "3c503 no map", m_rom); + m_isa->install_bank(SADDR, SADDR + 0x1fff, m_rom); break; } } |