summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/video/hng64.c21
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);