diff options
Diffstat (limited to 'src/mame/drivers/lastfght.cpp')
-rw-r--r-- | src/mame/drivers/lastfght.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/mame/drivers/lastfght.cpp b/src/mame/drivers/lastfght.cpp index 36b169f41f4..81b4a5a40e3 100644 --- a/src/mame/drivers/lastfght.cpp +++ b/src/mame/drivers/lastfght.cpp @@ -88,23 +88,23 @@ public: private: /* memory */ - DECLARE_WRITE16_MEMBER(hi_w); - DECLARE_WRITE16_MEMBER(x_w); - DECLARE_WRITE16_MEMBER(yw_w); - DECLARE_WRITE16_MEMBER(h_w); - DECLARE_WRITE16_MEMBER(sx_w); - DECLARE_WRITE16_MEMBER(sy_w); - DECLARE_WRITE16_MEMBER(sr_w); - DECLARE_WRITE16_MEMBER(sd_w); - DECLARE_WRITE16_MEMBER(blit_w); - DECLARE_WRITE16_MEMBER(dest_w); - DECLARE_READ16_MEMBER(c00000_r); - DECLARE_READ16_MEMBER(c00002_r); - DECLARE_READ16_MEMBER(c00004_r); - DECLARE_READ16_MEMBER(c00006_r); - DECLARE_WRITE16_MEMBER(c00006_w); - DECLARE_READ16_MEMBER(sound_r); - DECLARE_WRITE16_MEMBER(sound_w); + void hi_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void x_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void yw_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void h_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void sx_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void sy_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void sr_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void sd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void blit_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + void dest_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + uint16_t c00000_r(); + uint16_t c00002_r(); + uint16_t c00004_r(); + uint16_t c00006_r(); + void c00006_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); + uint16_t sound_r(); + void sound_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void lastfght_map(address_map &map); @@ -202,7 +202,7 @@ uint32_t lastfght_state::screen_update(screen_device &screen, bitmap_ind16 &bitm // Blitter (supports zooming) // high byte of a 16 bit register -WRITE16_MEMBER(lastfght_state::hi_w) +void lastfght_state::hi_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) logerror("%06x: 600000.b = %02x\n", m_maincpu->pc(), data >> 8); @@ -214,7 +214,7 @@ WRITE16_MEMBER(lastfght_state::hi_w) } // screen x -WRITE16_MEMBER(lastfght_state::x_w) +void lastfght_state::x_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) logerror("%06x: 800008.b = %02x\n", m_maincpu->pc(), data >> 8); @@ -226,7 +226,7 @@ WRITE16_MEMBER(lastfght_state::x_w) } // screen y, screen width - 1 -WRITE16_MEMBER(lastfght_state::yw_w) +void lastfght_state::yw_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -241,7 +241,7 @@ WRITE16_MEMBER(lastfght_state::yw_w) } // screen height - 1 -WRITE16_MEMBER(lastfght_state::h_w) +void lastfght_state::h_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -253,7 +253,7 @@ WRITE16_MEMBER(lastfght_state::h_w) } // source delta x << 6, source x << 6 -WRITE16_MEMBER(lastfght_state::sx_w) +void lastfght_state::sx_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -268,7 +268,7 @@ WRITE16_MEMBER(lastfght_state::sx_w) } // source y << 6, source y1 << 6 -WRITE16_MEMBER(lastfght_state::sy_w) +void lastfght_state::sy_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -283,7 +283,7 @@ WRITE16_MEMBER(lastfght_state::sy_w) } // source rom (0x200000 bytes), source page (512x256 bytes) -WRITE16_MEMBER(lastfght_state::sr_w) +void lastfght_state::sr_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -298,7 +298,7 @@ WRITE16_MEMBER(lastfght_state::sr_w) } // source x1 << 6, source delta y << 6 -WRITE16_MEMBER(lastfght_state::sd_w) +void lastfght_state::sd_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -313,7 +313,7 @@ WRITE16_MEMBER(lastfght_state::sd_w) } // start blit -WRITE16_MEMBER(lastfght_state::blit_w) +void lastfght_state::blit_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) { @@ -350,13 +350,13 @@ WRITE16_MEMBER(lastfght_state::blit_w) } // toggle framebuffer -WRITE16_MEMBER(lastfght_state::dest_w) +void lastfght_state::dest_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_0_7) m_dest ^= 1; } -READ16_MEMBER(lastfght_state::c00000_r) +uint16_t lastfght_state::c00000_r() { // high byte: // bit 7 = blitter busy @@ -365,19 +365,19 @@ READ16_MEMBER(lastfght_state::c00000_r) } -READ16_MEMBER(lastfght_state::c00002_r) +uint16_t lastfght_state::c00002_r() { // high byte: // mask 0x1c: from sound? return (machine().rand() & 0x1c00) | ioport("IN0")->read(); } -READ16_MEMBER(lastfght_state::c00004_r) +uint16_t lastfght_state::c00004_r() { return ioport("IN1")->read(); } -READ16_MEMBER(lastfght_state::c00006_r) +uint16_t lastfght_state::c00006_r() { // low byte: // bit 7 = protection? @@ -385,20 +385,20 @@ READ16_MEMBER(lastfght_state::c00006_r) return ioport("IN2")->read(); } -WRITE16_MEMBER(lastfght_state::c00006_w) +void lastfght_state::c00006_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&m_c00006); // popmessage("%04x", m_c00006); } -READ16_MEMBER(lastfght_state::sound_r) +uint16_t lastfght_state::sound_r() { // low byte: // bit 3 return 8; } -WRITE16_MEMBER(lastfght_state::sound_w) +void lastfght_state::sound_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_8_15) logerror("%06x: sound_w msb = %02x\n", m_maincpu->pc(), data >> 8); |