m_current_frame_number -> m_current_display_bank

This commit is contained in:
angelosa 2015-12-03 20:15:23 +01:00
parent 0758032b5f
commit 54d1f7c82c
3 changed files with 6 additions and 6 deletions

View File

@ -164,7 +164,7 @@ INTERRUPT_GEN_MEMBER(rungun_state::rng_interrupt)
address_space &space = m_maincpu->space(AS_PROGRAM);
for(int i=0;i<0x1000;i+=2)
m_k055673->k053247_word_w(space,i/2,m_banked_ram[(i + m_current_frame_number*0x2000) /2],0xffff);
m_k055673->k053247_word_w(space,i/2,m_banked_ram[(i + m_current_display_bank*0x2000) /2],0xffff);
if (m_sysreg[0x0c / 2] & 0x09)
device.execute().set_input_line(M68K_IRQ_5, ASSERT_LINE);

View File

@ -53,7 +53,7 @@ public:
UINT16 *m_psac2_vram;
UINT16 *m_ttl_vram;
UINT16 *m_pal_ram;
UINT8 m_current_frame_number;
UINT8 m_current_display_bank;
int m_ttl_gfx_index;
int m_sprite_colorbase;

View File

@ -18,7 +18,7 @@
/* TTL text plane stuff */
TILE_GET_INFO_MEMBER(rungun_state::ttl_get_tile_info)
{
UINT8 *lvram = (UINT8 *)m_ttl_vram + (m_current_frame_number * 0x2000);
UINT8 *lvram = (UINT8 *)m_ttl_vram + (m_current_display_bank * 0x2000);
int attr, code;
attr = (lvram[BYTE_XOR_LE(tile_index<<2)] & 0xf0) >> 4;
@ -57,7 +57,7 @@ WRITE16_MEMBER(rungun_state::rng_psac2_videoram_w)
TILE_GET_INFO_MEMBER(rungun_state::get_rng_936_tile_info)
{
int tileno, colour, flipx;
UINT32 base_addr = (m_current_frame_number * 0x80000);
UINT32 base_addr = (m_current_display_bank * 0x80000);
tileno = m_psac2_vram[tile_index * 2 + 1 + base_addr] & 0x3fff;
flipx = (m_psac2_vram[tile_index * 2 + 1 + base_addr] & 0xc000) >> 14;
@ -113,7 +113,7 @@ UINT32 rungun_state::screen_update_rng(screen_device &screen, bitmap_ind16 &bitm
{
bitmap.fill(m_palette->black_pen(), cliprect);
screen.priority().fill(0, cliprect);
m_current_frame_number = machine().first_screen()->frame_number() & 1;
m_current_display_bank = machine().first_screen()->frame_number() & 1;
{
m_ttl_tilemap->mark_all_dirty();
m_936_tilemap->mark_all_dirty();
@ -135,7 +135,7 @@ UINT32 rungun_state::screen_update_rng(screen_device &screen, bitmap_ind16 &bitm
// copy frame output to temp buffers so we can demultiplex it for the dual screen output
// (really only need to do this for dual setup)
if (m_current_frame_number)
if (m_current_display_bank)
{
copybitmap(m_rng_dual_demultiplex_right_temp, bitmap, 0, 0, 0, 0, cliprect);
}