summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/fromanc2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/fromanc2.cpp')
-rw-r--r--src/mame/drivers/fromanc2.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/mame/drivers/fromanc2.cpp b/src/mame/drivers/fromanc2.cpp
index e8ecc854cbc..6ebd5ed7766 100644
--- a/src/mame/drivers/fromanc2.cpp
+++ b/src/mame/drivers/fromanc2.cpp
@@ -164,31 +164,31 @@ void fromanc2_state::fromanc2_main_map(address_map &map)
map(0x000000, 0x07ffff).rom(); // MAIN ROM
map(0x802000, 0x802fff).nopr(); // ???
- map(0x800000, 0x803fff).w(this, FUNC(fromanc2_state::fromanc2_videoram_0_w)); // VRAM 0, 1 (1P)
- map(0x880000, 0x883fff).w(this, FUNC(fromanc2_state::fromanc2_videoram_1_w)); // VRAM 2, 3 (1P)
- map(0x900000, 0x903fff).w(this, FUNC(fromanc2_state::fromanc2_videoram_2_w)); // VRAM 0, 1 (2P)
- map(0x980000, 0x983fff).w(this, FUNC(fromanc2_state::fromanc2_videoram_3_w)); // VRAM 2, 3 (2P)
+ map(0x800000, 0x803fff).w(FUNC(fromanc2_state::fromanc2_videoram_0_w)); // VRAM 0, 1 (1P)
+ map(0x880000, 0x883fff).w(FUNC(fromanc2_state::fromanc2_videoram_1_w)); // VRAM 2, 3 (1P)
+ map(0x900000, 0x903fff).w(FUNC(fromanc2_state::fromanc2_videoram_2_w)); // VRAM 0, 1 (2P)
+ map(0x980000, 0x983fff).w(FUNC(fromanc2_state::fromanc2_videoram_3_w)); // VRAM 2, 3 (2P)
map(0xa00000, 0xa00fff).ram().w(m_lpalette, FUNC(palette_device::write16)).share("lpalette"); // PALETTE (1P)
map(0xa80000, 0xa80fff).ram().w(m_rpalette, FUNC(palette_device::write16)).share("rpalette"); // PALETTE (2P)
- map(0xd00000, 0xd00023).w(this, FUNC(fromanc2_state::fromanc2_gfxreg_0_w)); // SCROLL REG (1P/2P)
- map(0xd00100, 0xd00123).w(this, FUNC(fromanc2_state::fromanc2_gfxreg_2_w)); // SCROLL REG (1P/2P)
- map(0xd00200, 0xd00223).w(this, FUNC(fromanc2_state::fromanc2_gfxreg_1_w)); // SCROLL REG (1P/2P)
- map(0xd00300, 0xd00323).w(this, FUNC(fromanc2_state::fromanc2_gfxreg_3_w)); // SCROLL REG (1P/2P)
+ map(0xd00000, 0xd00023).w(FUNC(fromanc2_state::fromanc2_gfxreg_0_w)); // SCROLL REG (1P/2P)
+ map(0xd00100, 0xd00123).w(FUNC(fromanc2_state::fromanc2_gfxreg_2_w)); // SCROLL REG (1P/2P)
+ map(0xd00200, 0xd00223).w(FUNC(fromanc2_state::fromanc2_gfxreg_1_w)); // SCROLL REG (1P/2P)
+ map(0xd00300, 0xd00323).w(FUNC(fromanc2_state::fromanc2_gfxreg_3_w)); // SCROLL REG (1P/2P)
map(0xd00400, 0xd00413).nopw(); // ???
map(0xd00500, 0xd00513).nopw(); // ???
- map(0xd01000, 0xd01001).w(this, FUNC(fromanc2_state::sndcmd_w)); // SOUND REQ (1P/2P)
+ map(0xd01000, 0xd01001).w(FUNC(fromanc2_state::sndcmd_w)); // SOUND REQ (1P/2P)
map(0xd01100, 0xd01101).portr("SYSTEM");
- map(0xd01200, 0xd01201).w(this, FUNC(fromanc2_state::subcpu_w)); // SUB CPU WRITE
- map(0xd01300, 0xd01301).r(this, FUNC(fromanc2_state::subcpu_r)); // SUB CPU READ
- map(0xd01400, 0xd01401).w(this, FUNC(fromanc2_state::fromanc2_gfxbank_0_w)); // GFXBANK (1P)
- map(0xd01500, 0xd01501).w(this, FUNC(fromanc2_state::fromanc2_gfxbank_1_w)); // GFXBANK (2P)
+ map(0xd01200, 0xd01201).w(FUNC(fromanc2_state::subcpu_w)); // SUB CPU WRITE
+ map(0xd01300, 0xd01301).r(FUNC(fromanc2_state::subcpu_r)); // SUB CPU READ
+ map(0xd01400, 0xd01401).w(FUNC(fromanc2_state::fromanc2_gfxbank_0_w)); // GFXBANK (1P)
+ map(0xd01500, 0xd01501).w(FUNC(fromanc2_state::fromanc2_gfxbank_1_w)); // GFXBANK (2P)
map(0xd01600, 0xd01601).portw("EEPROMOUT"); // EEPROM DATA
- map(0xd01800, 0xd01801).r(this, FUNC(fromanc2_state::keymatrix_r)); // INPUT KEY MATRIX
- map(0xd01a00, 0xd01a01).w(this, FUNC(fromanc2_state::portselect_w)); // PORT SELECT (1P/2P)
+ map(0xd01800, 0xd01801).r(FUNC(fromanc2_state::keymatrix_r)); // INPUT KEY MATRIX
+ map(0xd01a00, 0xd01a01).w(FUNC(fromanc2_state::portselect_w)); // PORT SELECT (1P/2P)
map(0xd80000, 0xd8ffff).ram(); // WORK RAM
}
@@ -197,27 +197,27 @@ void fromanc2_state::fromancr_main_map(address_map &map)
{
map(0x000000, 0x07ffff).rom(); // MAIN ROM
- map(0x800000, 0x803fff).w(this, FUNC(fromanc2_state::fromancr_videoram_0_w)); // VRAM BG (1P/2P)
- map(0x880000, 0x883fff).w(this, FUNC(fromanc2_state::fromancr_videoram_1_w)); // VRAM FG (1P/2P)
- map(0x900000, 0x903fff).w(this, FUNC(fromanc2_state::fromancr_videoram_2_w)); // VRAM TEXT (1P/2P)
+ map(0x800000, 0x803fff).w(FUNC(fromanc2_state::fromancr_videoram_0_w)); // VRAM BG (1P/2P)
+ map(0x880000, 0x883fff).w(FUNC(fromanc2_state::fromancr_videoram_1_w)); // VRAM FG (1P/2P)
+ map(0x900000, 0x903fff).w(FUNC(fromanc2_state::fromancr_videoram_2_w)); // VRAM TEXT (1P/2P)
map(0x980000, 0x983fff).nopw(); // VRAM Unused ?
map(0xa00000, 0xa00fff).ram().w(m_lpalette, FUNC(palette_device::write16)).share("lpalette"); // PALETTE (1P)
map(0xa80000, 0xa80fff).ram().w(m_rpalette, FUNC(palette_device::write16)).share("rpalette"); // PALETTE (2P)
- map(0xd00000, 0xd00023).w(this, FUNC(fromanc2_state::fromancr_gfxreg_1_w)); // SCROLL REG (1P/2P)
+ map(0xd00000, 0xd00023).w(FUNC(fromanc2_state::fromancr_gfxreg_1_w)); // SCROLL REG (1P/2P)
map(0xd00200, 0xd002ff).nopw(); // ?
map(0xd00400, 0xd00413).nopw(); // ???
map(0xd00500, 0xd00513).nopw(); // ???
- map(0xd01000, 0xd01001).w(this, FUNC(fromanc2_state::sndcmd_w)); // SOUND REQ (1P/2P)
- map(0xd00100, 0xd00123).w(this, FUNC(fromanc2_state::fromancr_gfxreg_0_w)); // SCROLL REG (1P/2P)
+ map(0xd01000, 0xd01001).w(FUNC(fromanc2_state::sndcmd_w)); // SOUND REQ (1P/2P)
+ map(0xd00100, 0xd00123).w(FUNC(fromanc2_state::fromancr_gfxreg_0_w)); // SCROLL REG (1P/2P)
map(0xd01100, 0xd01101).portr("SYSTEM");
- map(0xd01200, 0xd01201).w(this, FUNC(fromanc2_state::subcpu_w)); // SUB CPU WRITE
- map(0xd01300, 0xd01301).r(this, FUNC(fromanc2_state::subcpu_r)); // SUB CPU READ
+ map(0xd01200, 0xd01201).w(FUNC(fromanc2_state::subcpu_w)); // SUB CPU WRITE
+ map(0xd01300, 0xd01301).r(FUNC(fromanc2_state::subcpu_r)); // SUB CPU READ
map(0xd01400, 0xd01401).nopw(); // COIN COUNTER ?
- map(0xd01600, 0xd01601).w(this, FUNC(fromanc2_state::fromancr_gfxbank_eeprom_w)); // EEPROM DATA, GFXBANK (1P/2P)
- map(0xd01800, 0xd01801).r(this, FUNC(fromanc2_state::keymatrix_r)); // INPUT KEY MATRIX
- map(0xd01a00, 0xd01a01).w(this, FUNC(fromanc2_state::portselect_w)); // PORT SELECT (1P/2P)
+ map(0xd01600, 0xd01601).w(FUNC(fromanc2_state::fromancr_gfxbank_eeprom_w)); // EEPROM DATA, GFXBANK (1P/2P)
+ map(0xd01800, 0xd01801).r(FUNC(fromanc2_state::keymatrix_r)); // INPUT KEY MATRIX
+ map(0xd01a00, 0xd01a01).w(FUNC(fromanc2_state::portselect_w)); // PORT SELECT (1P/2P)
map(0xd80000, 0xd8ffff).ram(); // WORK RAM
}
@@ -229,27 +229,27 @@ void fromanc2_state::fromanc4_main_map(address_map &map)
map(0x800000, 0x81ffff).ram(); // WORK RAM
- map(0xd00000, 0xd00001).w(this, FUNC(fromanc2_state::portselect_w)); // PORT SELECT (1P/2P)
+ map(0xd00000, 0xd00001).w(FUNC(fromanc2_state::portselect_w)); // PORT SELECT (1P/2P)
map(0xd10000, 0xd10001).nopw(); // ?
map(0xd30000, 0xd30001).nopw(); // ?
map(0xd50000, 0xd50001).portw("EEPROMOUT"); // EEPROM DATA
- map(0xd70000, 0xd70001).w(this, FUNC(fromanc2_state::sndcmd_w)); // SOUND REQ (1P/2P)
+ map(0xd70000, 0xd70001).w(FUNC(fromanc2_state::sndcmd_w)); // SOUND REQ (1P/2P)
- map(0xd80000, 0xd8ffff).w(this, FUNC(fromanc2_state::fromanc4_videoram_0_w)); // VRAM FG (1P/2P)
- map(0xd90000, 0xd9ffff).w(this, FUNC(fromanc2_state::fromanc4_videoram_1_w)); // VRAM BG (1P/2P)
- map(0xda0000, 0xdaffff).w(this, FUNC(fromanc2_state::fromanc4_videoram_2_w)); // VRAM TEXT (1P/2P)
+ map(0xd80000, 0xd8ffff).w(FUNC(fromanc2_state::fromanc4_videoram_0_w)); // VRAM FG (1P/2P)
+ map(0xd90000, 0xd9ffff).w(FUNC(fromanc2_state::fromanc4_videoram_1_w)); // VRAM BG (1P/2P)
+ map(0xda0000, 0xdaffff).w(FUNC(fromanc2_state::fromanc4_videoram_2_w)); // VRAM TEXT (1P/2P)
map(0xdb0000, 0xdb0fff).ram().w(m_lpalette, FUNC(palette_device::write16)).share("lpalette"); // PALETTE (1P)
map(0xdc0000, 0xdc0fff).ram().w(m_rpalette, FUNC(palette_device::write16)).share("rpalette"); // PALETTE (2P)
- map(0xd10000, 0xd10001).r(this, FUNC(fromanc2_state::keymatrix_r)); // INPUT KEY MATRIX
+ map(0xd10000, 0xd10001).r(FUNC(fromanc2_state::keymatrix_r)); // INPUT KEY MATRIX
map(0xd20000, 0xd20001).portr("SYSTEM");
- map(0xe00000, 0xe0001d).w(this, FUNC(fromanc2_state::fromanc4_gfxreg_0_w)); // SCROLL, GFXBANK (1P/2P)
- map(0xe10000, 0xe1001d).w(this, FUNC(fromanc2_state::fromanc4_gfxreg_1_w)); // SCROLL, GFXBANK (1P/2P)
- map(0xe20000, 0xe2001d).w(this, FUNC(fromanc2_state::fromanc4_gfxreg_2_w)); // SCROLL, GFXBANK (1P/2P)
+ map(0xe00000, 0xe0001d).w(FUNC(fromanc2_state::fromanc4_gfxreg_0_w)); // SCROLL, GFXBANK (1P/2P)
+ map(0xe10000, 0xe1001d).w(FUNC(fromanc2_state::fromanc4_gfxreg_1_w)); // SCROLL, GFXBANK (1P/2P)
+ map(0xe20000, 0xe2001d).w(FUNC(fromanc2_state::fromanc4_gfxreg_2_w)); // SCROLL, GFXBANK (1P/2P)
map(0xe30000, 0xe30013).nopw(); // ???
map(0xe40000, 0xe40013).nopw(); // ???
@@ -269,10 +269,10 @@ void fromanc2_state::fromanc2_sub_map(address_map &map)
void fromanc2_state::fromanc2_sub_io_map(address_map &map)
{
map.global_mask(0xff);
- map(0x00, 0x00).w(this, FUNC(fromanc2_state::subcpu_rombank_w));
- map(0x02, 0x02).rw(this, FUNC(fromanc2_state::maincpu_r_l), FUNC(fromanc2_state::maincpu_w_l)); // to/from MAIN CPU
- map(0x04, 0x04).rw(this, FUNC(fromanc2_state::maincpu_r_h), FUNC(fromanc2_state::maincpu_w_h)); // to/from MAIN CPU
- map(0x06, 0x06).w(this, FUNC(fromanc2_state::subcpu_nmi_clr));
+ map(0x00, 0x00).w(FUNC(fromanc2_state::subcpu_rombank_w));
+ map(0x02, 0x02).rw(FUNC(fromanc2_state::maincpu_r_l), FUNC(fromanc2_state::maincpu_w_l)); // to/from MAIN CPU
+ map(0x04, 0x04).rw(FUNC(fromanc2_state::maincpu_r_h), FUNC(fromanc2_state::maincpu_w_h)); // to/from MAIN CPU
+ map(0x06, 0x06).w(FUNC(fromanc2_state::subcpu_nmi_clr));
}
@@ -288,7 +288,7 @@ void fromanc2_state::fromanc2_sound_io_map(address_map &map)
map(0x00, 0x00).r(m_soundlatch, FUNC(generic_latch_8_device::read)).nopw(); // snd cmd (1P) / ?
map(0x04, 0x04).r(m_soundlatch2, FUNC(generic_latch_8_device::read)); // snd cmd (2P)
map(0x08, 0x0b).rw("ymsnd", FUNC(ym2610_device::read), FUNC(ym2610_device::write));
- map(0x0c, 0x0c).r(this, FUNC(fromanc2_state::sndcpu_nmi_clr));
+ map(0x0c, 0x0c).r(FUNC(fromanc2_state::sndcpu_nmi_clr));
}