there's a sprite gfx bankswitch (nw)

This commit is contained in:
David Haywood 2016-03-13 22:44:03 +00:00
parent 5a1498aa3e
commit 3ed7fef26a
3 changed files with 4 additions and 2 deletions

View File

@ -76,8 +76,9 @@ READ8_MEMBER(lwings_state::avengers_adpcm_r)
WRITE8_MEMBER(lwings_state::lwings_bankswitch_w) WRITE8_MEMBER(lwings_state::lwings_bankswitch_w)
{ {
// if (data & 0xf0) printf("bankswitch_w %02x\n", data); // if (data & 0xe0) printf("bankswitch_w %02x\n", data);
// Fireball writes 0x20 on startup, maybe reset soundcpu? // Fireball writes 0x20 on startup, maybe reset soundcpu?
m_sprbank = (data & 0x10)>>4; // Fireball only
/* bit 0 is flip screen */ /* bit 0 is flip screen */
flip_screen_set(~data & 0x01); flip_screen_set(~data & 0x01);

View File

@ -40,6 +40,7 @@ public:
UINT8 m_soundstate; UINT8 m_soundstate;
UINT8 m_adpcm; UINT8 m_adpcm;
UINT8 m_nmi_mask; UINT8 m_nmi_mask;
int m_sprbank;
DECLARE_WRITE8_MEMBER(avengers_adpcm_w); DECLARE_WRITE8_MEMBER(avengers_adpcm_w);
DECLARE_READ8_MEMBER(avengers_adpcm_r); DECLARE_READ8_MEMBER(avengers_adpcm_r);

View File

@ -204,7 +204,7 @@ void lwings_state::lwings_draw_sprites( bitmap_ind16 &bitmap, const rectangle &c
} }
m_gfxdecode->gfx(2)->transpen(bitmap,cliprect, m_gfxdecode->gfx(2)->transpen(bitmap,cliprect,
code,color, code+(m_sprbank*0x400),color,
flipx,flipy, flipx,flipy,
sx,sy,15); sx,sy,15);
} }