summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/mario.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2020-11-02 12:11:43 +0100
committer Olivier Galibert <galibert@pobox.com>2020-11-02 12:12:11 +0100
commitb8c338858a101d14308c64c87b0f714db4f05326 (patch)
treea34dca21d603b98f5450d31868ce33a7e4c103b0 /src/mame/audio/mario.cpp
parentf4172ded3ec6f3b877ab813f6453d6d1907c1c00 (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/mame/audio/mario.cpp')
-rw-r--r--src/mame/audio/mario.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/audio/mario.cpp b/src/mame/audio/mario.cpp
index 1bdf1822bcd..a97abfdcf79 100644
--- a/src/mame/audio/mario.cpp
+++ b/src/mame/audio/mario.cpp
@@ -428,7 +428,7 @@ void mario_state::sound_start()
{
m_eabank = "bank1";
- m_audiocpu->space(AS_PROGRAM).install_read_bank(0x000, 0x7ff, "bank1");
+ m_audiocpu->space(AS_PROGRAM).install_read_bank(0x000, 0x7ff, membank("bank1"));
membank("bank1")->configure_entry(0, &SND[0]);
membank("bank1")->configure_entry(1, &SND[0x1000]);
@@ -609,7 +609,7 @@ void mario_state::mario_sh3_w(offs_t offset, uint8_t data)
void mario_state::mario_sound_map(address_map &map)
{
- map(0x0000, 0x07ff).bankr("bank1").region("audiocpu", 0);
+ map(0x0000, 0x07ff).bankr("bank1");
map(0x0800, 0x0fff).rom();
}