Previous 199869 Revisions Next

r36856 Tuesday 31st March, 2015 at 23:06:17 UTC by David Haywood
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)
[src/mame/video]hng64.c

trunk/src/mame/video/hng64.c
r245367r245368
10201020   UINT32 animbits;
10211021   UINT16 tileflags[4];
10221022
1023#if 0
1023#if 1
10241024   // press in sams64_2 attract mode for a nice debug screen from the game
10251025   // not sure how functional it is, and it doesn't appear to test everything (rowscroll modes etc.)
10261026   // but it could be useful
10271027   if ( machine().input().code_pressed_once(KEYCODE_L) )
10281028   {
10291029      address_space &space = m_maincpu->space(AS_PROGRAM);
1030      space.write_byte(0x2f27c8, 0x2);
1030
1031      if (!strcmp(machine().system().name, "sams64_2"))
1032      {
1033         space.write_byte(0x2f27c8, 0x2);
1034      }
1035      else if (!strcmp(machine().system().name, "roadedge")) // hack to get test mode (useful for sound test)
1036      {
1037         space.write_byte(0xcfb53, 0x1);
1038      }
1039      else if (!strcmp(machine().system().name, "xrally")) // hack to get test mode (useful for sound test)
1040      {
1041         space.write_byte(0xa2363, 0x1);
1042      }
1043
10311044   }
10321045#endif
10331046
1047
1048   
1049
1050
10341051   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
10351052   screen.priority().fill(0x00, cliprect);
10361053


Previous 199869 Revisions Next


© 1997-2024 The MAME Team