tx bank for the r2/dx_v33 (nw)

This commit is contained in:
David Haywood 2014-09-18 14:50:17 +00:00
parent a02dba1665
commit 4af3c7c061
3 changed files with 9 additions and 2 deletions

View File

@ -72,6 +72,8 @@ WRITE16_MEMBER(r2dx_v33_state::rdx_v33_eeprom_w)
// 0x80 - coin counter 2?
// 0x04 is active in Raiden DX mode, it could be part of the rom bank (which half of the rom to use) or the FG tile bank (or both?)
tx_bank = (data & 0x04) >> 2;
text_layer->mark_all_dirty();
if (data&0x07) printf("eeprom_w extra bits used %04x\n",data & 7);
}

View File

@ -169,6 +169,7 @@ void raiden2_state::machine_start()
save_item(NAME(bg_bank));
save_item(NAME(fg_bank));
save_item(NAME(mid_bank));
save_item(NAME(tx_bank));
save_item(NAME(raiden2_tilemap_enable));
save_item(NAME(prg_bank));
save_item(NAME(cop_bank));
@ -991,7 +992,7 @@ TILE_GET_INFO_MEMBER(raiden2_state::get_text_tile_info)
tile &= 0xfff;
SET_TILE_INFO_MEMBER(0,tile,color,0);
SET_TILE_INFO_MEMBER(0,tile + tx_bank * 0x1000,color,0);
}
/* VIDEO START (move to video file) */
@ -1213,6 +1214,7 @@ void raiden2_state::common_reset()
bg_bank=0;
fg_bank=6;
mid_bank=1;
tx_bank = 0;
cop_itoa_digit_count = 4; //TODO: Raiden 2 never inits the BCD register, value here is a guess (8 digits, as WR is 10.000.000 + a)
}
@ -1246,6 +1248,7 @@ MACHINE_RESET_MEMBER(raiden2_state,zeroteam)
bg_bank = 0;
fg_bank = 2;
mid_bank = 1;
tx_bank = 0;
sprcpt_init();
membank("mainbank1")->set_entry(2);
@ -1260,6 +1263,7 @@ MACHINE_RESET_MEMBER(raiden2_state,xsedae)
bg_bank = 0;
fg_bank = 2;
mid_bank = 1;
tx_bank = 0;
sprcpt_init();
}

View File

@ -22,6 +22,7 @@ public:
bg_bank(0),
fg_bank(0),
mid_bank(0),
tx_bank(0),
raiden2_tilemap_enable(0),
prg_bank(0),
cop_bank(0),
@ -145,7 +146,7 @@ public:
tilemap_t *background_layer,*midground_layer,*foreground_layer,*text_layer;
int bg_bank, fg_bank, mid_bank;
int bg_bank, fg_bank, mid_bank, tx_bank;
UINT16 raiden2_tilemap_enable;
UINT8 prg_bank;
UINT16 cop_bank;