mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Fix tmnt2 and derivatives
This commit is contained in:
parent
c245230f40
commit
5085851a37
@ -681,7 +681,7 @@ void prmrsocr_state::prmrsocr_main_map(address_map &map)
|
||||
inline uint32_t tmnt_state::tmnt2_get_word( uint32_t addr )
|
||||
{
|
||||
if (addr <= 0x07ffff / 2)
|
||||
return(m_tmnt2_rom[addr]);
|
||||
return(m_tmnt2_rom->as_u32(addr));
|
||||
else if (addr >= 0x104000 / 2 && addr <= 0x107fff / 2)
|
||||
return(m_sunset_104000[addr - 0x104000 / 2]);
|
||||
else if (addr >= 0x180000 / 2 && addr <= 0x183fff / 2)
|
||||
@ -915,7 +915,7 @@ logerror("copy command %04x sprite %08x data %08x: %04x%04x %04x%04x modifiers
|
||||
|
||||
void tmnt_state::tmnt2_main_map(address_map &map)
|
||||
{
|
||||
map(0x000000, 0x0fffff).rom().share("tmnt2_rom");
|
||||
map(0x000000, 0x0fffff).rom();
|
||||
map(0x104000, 0x107fff).ram().share("sunset_104000"); /* main RAM */
|
||||
map(0x140000, 0x140fff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette");
|
||||
map(0x180000, 0x183fff).ram().w(FUNC(tmnt_state::k053245_scattered_word_w)).share("spriteram"); // k053245_scattered_word_r
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
tmnt_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
driver_device(mconfig, type, tag),
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_tmnt2_rom(*this, "tmnt2_rom"),
|
||||
m_tmnt2_rom(*this, "maincpu"),
|
||||
m_sunset_104000(*this, "sunset_104000"),
|
||||
m_tmnt2_1c0800(*this, "tmnt2_1c0800"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
@ -71,7 +71,7 @@ protected:
|
||||
|
||||
/* memory pointers */
|
||||
optional_shared_ptr<uint16_t> m_spriteram;
|
||||
optional_shared_ptr<uint16_t> m_tmnt2_rom;
|
||||
required_memory_region m_tmnt2_rom;
|
||||
optional_shared_ptr<uint16_t> m_sunset_104000;
|
||||
optional_shared_ptr<uint16_t> m_tmnt2_1c0800;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user