mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Merge pull request #4942 from cam900/k054000_args
k054000.cpp : Updates
This commit is contained in:
commit
b6c38c82e1
@ -374,7 +374,7 @@ void moo_state::bucky_map(address_map &map)
|
||||
map(0x0cc000, 0x0cc01f).w(m_k053251, FUNC(k053251_device::write)).umask16(0x00ff);
|
||||
map(0x0ce000, 0x0ce01f).w(FUNC(moo_state::moo_prot_w));
|
||||
map(0x0d0000, 0x0d001f).rw(m_k053252, FUNC(k053252_device::read), FUNC(k053252_device::write)).umask16(0x00ff); /* CCU regs (ignored) */
|
||||
map(0x0d2000, 0x0d20ff).rw("k054000", FUNC(k054000_device::lsb_r), FUNC(k054000_device::lsb_w));
|
||||
map(0x0d2000, 0x0d20ff).rw("k054000", FUNC(k054000_device::read), FUNC(k054000_device::write)).umask16(0x00ff);
|
||||
map(0x0d4000, 0x0d4001).w(FUNC(moo_state::sound_irq_w));
|
||||
map(0x0d6000, 0x0d601f).m(m_k054321, FUNC(k054321_device::main_map)).umask16(0x00ff);
|
||||
map(0x0d8000, 0x0d8007).w(m_k056832, FUNC(k056832_device::b_word_w)); /* VSCCS regs */
|
||||
|
@ -537,7 +537,7 @@ void mystwarr_state::gaiapols_map(address_map &map)
|
||||
map(0x48e000, 0x48e001).portr("IN0_P1"); // bit 3 (0x8) is test switch
|
||||
map(0x48e020, 0x48e021).r(FUNC(mystwarr_state::dddeeprom_r));
|
||||
map(0x600000, 0x60ffff).ram().share("gx_workram");
|
||||
map(0x660000, 0x6600ff).rw("k054000", FUNC(k054000_device::lsb_r), FUNC(k054000_device::lsb_w));
|
||||
map(0x660000, 0x6600ff).rw("k054000", FUNC(k054000_device::read), FUNC(k054000_device::write)).umask16(0x00ff);
|
||||
map(0x6a0000, 0x6a0001).w(FUNC(mystwarr_state::mmeeprom_w));
|
||||
map(0x6c0000, 0x6c0001).w(FUNC(mystwarr_state::ddd_053936_enable_w));
|
||||
map(0x6e0000, 0x6e0001).w(FUNC(mystwarr_state::sound_irq_w));
|
||||
|
@ -588,7 +588,7 @@ void tmnt_state::blswhstl_main_map(address_map &map)
|
||||
map(0x204000, 0x207fff).ram(); /* main RAM */
|
||||
map(0x300000, 0x303fff).rw(FUNC(tmnt_state::k053245_scattered_word_r), FUNC(tmnt_state::k053245_scattered_word_w)).share("spriteram");
|
||||
map(0x400000, 0x400fff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette");
|
||||
map(0x500000, 0x50003f).rw(m_k054000, FUNC(k054000_device::lsb_r), FUNC(k054000_device::lsb_w));
|
||||
map(0x500000, 0x50003f).rw(m_k054000, FUNC(k054000_device::read), FUNC(k054000_device::write)).umask16(0x00ff);
|
||||
map(0x680000, 0x68001f).rw(FUNC(tmnt_state::k053244_word_noA1_r), FUNC(tmnt_state::k053244_word_noA1_w));
|
||||
map(0x700000, 0x700001).portr("P1");
|
||||
map(0x700002, 0x700003).portr("P2");
|
||||
@ -988,7 +988,7 @@ void tmnt_state::thndrx2_main_map(address_map &map)
|
||||
map(0x200000, 0x200fff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette");
|
||||
map(0x300000, 0x30001f).w(m_k053251, FUNC(k053251_device::write)).umask16(0x00ff);
|
||||
map(0x400000, 0x400003).rw(m_k053260, FUNC(k053260_device::main_read), FUNC(k053260_device::main_write)).umask16(0x00ff);
|
||||
map(0x500000, 0x50003f).rw(m_k054000, FUNC(k054000_device::lsb_r), FUNC(k054000_device::lsb_w));
|
||||
map(0x500000, 0x50003f).rw(m_k054000, FUNC(k054000_device::read), FUNC(k054000_device::write)).umask16(0x00ff);
|
||||
map(0x500100, 0x500101).w(FUNC(tmnt_state::thndrx2_eeprom_w));
|
||||
map(0x500200, 0x500201).portr("P1/COINS");
|
||||
map(0x500202, 0x500203).r(FUNC(tmnt_state::thndrx2_eeprom_r));
|
||||
|
@ -85,13 +85,13 @@ void k054000_device::device_reset()
|
||||
DEVICE HANDLERS
|
||||
*****************************************************************************/
|
||||
|
||||
WRITE8_MEMBER( k054000_device::write )
|
||||
void k054000_device::write(offs_t offset, u8 data)
|
||||
{
|
||||
//logerror("%s: write %02x to 054000 address %02x\n",m_maincpu->pc(),data,offset);
|
||||
m_regs[offset] = data;
|
||||
}
|
||||
|
||||
READ8_MEMBER( k054000_device::read )
|
||||
u8 k054000_device::read(offs_t offset)
|
||||
{
|
||||
int Acx, Acy, Aax, Aay;
|
||||
int Bcx, Bcy, Bax, Bay;
|
||||
@ -132,14 +132,3 @@ READ8_MEMBER( k054000_device::read )
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
READ16_MEMBER( k054000_device::lsb_r )
|
||||
{
|
||||
return read(space, offset);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER( k054000_device::lsb_w )
|
||||
{
|
||||
if (ACCESSING_BITS_0_7)
|
||||
write(space, offset, data & 0xff);
|
||||
}
|
||||
|
@ -12,10 +12,8 @@ public:
|
||||
k054000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||
~k054000_device() {}
|
||||
|
||||
DECLARE_WRITE8_MEMBER( write );
|
||||
DECLARE_READ8_MEMBER( read );
|
||||
DECLARE_WRITE16_MEMBER( lsb_w );
|
||||
DECLARE_READ16_MEMBER( lsb_r );
|
||||
void write(offs_t offset, u8 data);
|
||||
u8 read(offs_t offset);
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
|
Loading…
Reference in New Issue
Block a user