summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2010-10-18 02:43:13 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2010-10-18 02:43:13 +0000
commit628f203db161d9d1ab31baffaa9e02f016ecd032 (patch)
tree8744cad68febcf3ba9a4bf16dbd882fec944d561
parentd8edbd14f2df73ca8d990dd5f93687b369374953 (diff)
MAMETesters Bugs Fixed:
----------------------- - 04067 [Misc.] blktiger: Test mode doesn't work. (MooglyGuy) Non-Whatsnew note: In my opinion, I feel that it's a reasonable assumption that whatever video ASIC or other hardware is used defaults to having at *least* the text layer turned on. The game doesn't even attempt to write any video configuration registers apart from the bank reigster when booting with test mode turned on, which strongly implies certain default states of certain registers.
-rw-r--r--src/mame/drivers/blktiger.c7
-rw-r--r--src/mame/video/blktiger.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/src/mame/drivers/blktiger.c b/src/mame/drivers/blktiger.c
index efb1f2928f6..cb36c2d6341 100644
--- a/src/mame/drivers/blktiger.c
+++ b/src/mame/drivers/blktiger.c
@@ -281,6 +281,7 @@ static const ym2203_interface ym2203_config =
static MACHINE_START( blktiger )
{
+ printf("machine_start_start\n"); fflush(stdout);
blktiger_state *state = machine->driver_data<blktiger_state>();
state->audiocpu = machine->device("audiocpu");
@@ -298,10 +299,12 @@ static MACHINE_START( blktiger )
state_save_register_global(machine, state->i8751_latch);
state_save_register_global_array(machine, state->scroll_x);
state_save_register_global_array(machine, state->scroll_y);
+ printf("machine_start_end\n"); fflush(stdout);
}
static MACHINE_RESET( blktiger )
{
+ printf("machine_reset_start\n"); fflush(stdout);
blktiger_state *state = machine->driver_data<blktiger_state>();
/* configure bankswitching */
@@ -313,11 +316,9 @@ static MACHINE_RESET( blktiger )
state->scroll_y[1] = 0;
state->scroll_bank = 0;
state->screen_layout = 0;
- state->chon = 0;
- state->objon = 0;
- state->bgon = 0;
state->z80_latch = 0;
state->i8751_latch = 0;
+ printf("machine_reset_end\n"); fflush(stdout);
}
static MACHINE_CONFIG_START( blktiger, blktiger_state )
diff --git a/src/mame/video/blktiger.c b/src/mame/video/blktiger.c
index 043d7e15265..643b2e701f9 100644
--- a/src/mame/video/blktiger.c
+++ b/src/mame/video/blktiger.c
@@ -68,6 +68,11 @@ VIDEO_START( blktiger )
{
blktiger_state *state = machine->driver_data<blktiger_state>();
+ state->chon = 1;
+ state->bgon = 1;
+ state->objon = 1;
+ state->screen_layout = 0;
+
state->scroll_ram = auto_alloc_array(machine, UINT8, BGRAM_BANK_SIZE * BGRAM_BANKS);
state->tx_tilemap = tilemap_create(machine, get_tx_tile_info, tilemap_scan_rows, 8, 8, 32, 32);
@@ -242,6 +247,7 @@ VIDEO_UPDATE( blktiger )
if (state->chon)
tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0);
+
return 0;
}