From 628f203db161d9d1ab31baffaa9e02f016ecd032 Mon Sep 17 00:00:00 2001 From: Ryan Holtz Date: Mon, 18 Oct 2010 02:43:13 +0000 Subject: [PATCH] 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. --- src/mame/drivers/blktiger.c | 7 ++++--- src/mame/video/blktiger.c | 6 ++++++ 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(); 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(); /* 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(); + 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; }