Previous 199869 Revisions Next

r24589 Wednesday 31st July, 2013 at 00:50:33 UTC by David Haywood
couple of ugly hacks to puzzli2 protection sim while I figure things out properly, these will go away shortly (nw)
[src/mame/machine]pgmprot_igs027a_type1.c

trunk/src/mame/machine/pgmprot_igs027a_type1.c
r24588r24589
564564
565565/* preliminary */
566566
567static int hackcount = 0;
568static int hackcount2 = 0;
569
567570void pgm_arm_type1_state::command_handler_puzzli2(int pc)
568571{
569572   printf("%08x: %02x %04x\n",pc, m_ddp3lastcommand, m_value0);
r24588r24589
572575   {
573576      case 0x13: // getting some kind of list maybe?
574577      {
578         hackcount++;
579
580         if (hackcount<10)
581         {
582            m_valueresponse = 0x002d0008;
583         }
584         else
585         {
586            hackcount=0;
587            m_valueresponse = 0x00740008;
588         }
575589         // 2d seems to be used when there is more data available
576590         // 74 seems to be used when there isn't.. (end of buffer reached?)
577         m_valueresponse = 0x74<<16; // 2d or 74! (based on?)
591         // 2d or 74! (based on?)
578592
579593      }
580594      break;
r24588r24589
582596      case 0x31:
583597      {
584598         // how is this selected? command 54?
599         hackcount2++;
585600
586         // just a wild guess
587         if (m_puzzli_54_trigger) {
588            // pc == 1387de
589            m_valueresponse = 0x63<<16; // ?
590         } else {
591            // pc == 14cf58
592            m_valueresponse = 0xd2<<16;
601         if (hackcount2<30)
602         {
603            m_valueresponse = 0x00d20008;
593604         }
605         else
606         {
607            hackcount2=0;
608            m_valueresponse = 0x00630008;
609         }
594610
595         m_puzzli_54_trigger = 0;
596611      }
597612      break;
598613

Previous 199869 Revisions Next


© 1997-2024 The MAME Team