summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/nintendo/mario.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/nintendo/mario.cpp')
-rw-r--r--src/mame/nintendo/mario.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mame/nintendo/mario.cpp b/src/mame/nintendo/mario.cpp
index e1583f0206c..1b9008b1aa4 100644
--- a/src/mame/nintendo/mario.cpp
+++ b/src/mame/nintendo/mario.cpp
@@ -40,6 +40,9 @@ TODO:
- draw_sprites should adopt the scanline logic from dkong, the schematics have
the same logic for sprite buffering
- a lot of soundlatch warnings in error.log, it's probably harmless
+- Dump M58715 internal ROM. The EA pin dumping method does not work, is the
+ MCU read protected? It's probably a small initialization routine, followed
+ by a jump to external ROM. MAME has a fake bootstrap for now.
BTANB:
- erratic line at top when scrolling down "Mario Bros" title is confirmed
@@ -273,15 +276,15 @@ void mario_state::machine_reset()
void mario_state::sound_start()
{
- uint8_t *SND = memregion("audiocpu")->base();
+ for (int i = 0; i < 2; i++)
+ m_walk_timer[i] = timer_alloc(FUNC(mario_state::walk_off), this);
// Hack to bootstrap MCU program into external MB1
- SND[0x0000] = 0xf5;
- SND[0x0001] = 0x04;
- SND[0x0002] = 0x00;
+ uint8_t *SND = memregion("audiocpu")->base();
- for (int i = 0; i < 2; i++)
- m_walk_timer[i] = timer_alloc(FUNC(mario_state::walk_off), this);
+ SND[0x0000] = 0xf5; // sel mb1
+ SND[0x0001] = 0x04; // jmp 0
+ SND[0x0002] = 0x00;
}
void mario_state::sound_reset()