diff options
author | 2015-04-01 00:06:17 +0100 | |
---|---|---|
committer | 2015-04-01 00:06:17 +0100 | |
commit | 7d434392e16f15461e4ccdb780e4ae18ffacdbb7 (patch) | |
tree | 1b2f02407450152ae38530afa2926275751cb622 | |
parent | fe9339fa30fdc22a5b66cef34c9372c89901c285 (diff) |
put the dirty hacks to get into test mode in the code, the sound tests are useful at this point, definitely looks like it's writing sample triggers (nw)
-rw-r--r-- | src/mame/video/hng64.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/mame/video/hng64.c b/src/mame/video/hng64.c index 2446eb26365..9739ae6e2a1 100644 --- a/src/mame/video/hng64.c +++ b/src/mame/video/hng64.c @@ -1020,17 +1020,34 @@ UINT32 hng64_state::screen_update_hng64(screen_device &screen, bitmap_rgb32 &bit UINT32 animbits; UINT16 tileflags[4]; -#if 0 +#if 1 // press in sams64_2 attract mode for a nice debug screen from the game // not sure how functional it is, and it doesn't appear to test everything (rowscroll modes etc.) // but it could be useful if ( machine().input().code_pressed_once(KEYCODE_L) ) { address_space &space = m_maincpu->space(AS_PROGRAM); - space.write_byte(0x2f27c8, 0x2); + + if (!strcmp(machine().system().name, "sams64_2")) + { + space.write_byte(0x2f27c8, 0x2); + } + else if (!strcmp(machine().system().name, "roadedge")) // hack to get test mode (useful for sound test) + { + space.write_byte(0xcfb53, 0x1); + } + else if (!strcmp(machine().system().name, "xrally")) // hack to get test mode (useful for sound test) + { + space.write_byte(0xa2363, 0x1); + } + } #endif + + + + bitmap.fill(hng64_tcram[0x50/4] & 0x10000 ? m_palette->black_pen() : m_palette->pen(0), cliprect); //FIXME: Is the register correct? check with HW tests screen.priority().fill(0x00, cliprect); |