Previous 199869 Revisions Next

r19718 Friday 21st December, 2012 at 19:43:37 UTC by David Haywood
this command pair is the same as kov (nw)
[src/mame/drivers]pgm.c
[src/mame/machine]pgmprot1.c

trunk/src/mame/drivers/pgm.c
r19717r19718
17871787
17881788   /* No external ARM rom */
17891789
1790   ROM_REGION( 0x480000, "tiles", 0 ) /* 8x8 Text Tiles + 32x32 BG Tiles */
1790   ROM_REGION( 0x380000, "tiles", 0 ) /* 8x8 Text Tiles + 32x32 BG Tiles */
17911791   PGM_VIDEO_BIOS
17921792   ROM_LOAD( "u5.u5",    0x180000, 0x200000, CRC(da375a50) SHA1(62cd2fd3dfc1897528eaa38d243d7a9526eac71b) )
17931793
trunk/src/mame/machine/pgmprot1.c
r19717r19718
681681         state->m_valueresponse = 0x880000;
682682         break;
683683
684      case 0xcb: // Background layer 'x' select (pgm3in1, same as kov)
685         state->m_valueresponse = 0x880000;
686         state->m_kov_cb_value = state->m_value0;
687      break;
688
689      case 0xcc: // Background layer offset (pgm3in1, same as kov)
690      {
691         int y = state->m_value0;
692         if (y & 0x400) y = -(0x400 - (y & 0x3ff));
693         state->m_valueresponse = 0x900000 + ((state->m_kov_cb_value + (y * 0x40)) * 4);
694      }
695      break;
696
684697      case 0x99: // reset?
685698         state->m_valuekey = 0x100;
686699         state->m_valueresponse = 0x00880000;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team