Previous 199869 Revisions Next

r24622 Thursday 1st August, 2013 at 03:26:41 UTC by David Haywood
further logic improvement for puzzli2 protection (nw)
[src/mame/machine]pgmprot_igs027a_type1.c

trunk/src/mame/machine/pgmprot_igs027a_type1.c
r24621r24622
710710      // logic here seems correct, not sure where the 0x19 and 0x5 etc. come from tho!
711711      case 0x47:
712712         hack_47_value = ((m_value0 & 0x0700)>>8) * 0x19;
713         hack_47_value |=((m_value0 & 0x0007)>>0) * 0x05;
713         hack_47_value +=((m_value0 & 0x0007)>>0) * 0x05;
714714         if (m_value0 & 0xf8f8) printf("unhandled 0x47 bits %04x\n", m_value0);
715715
716         //printf("0x47 value was %04x - using %04x\n", m_value0, hack_47_value);
717
716718         m_valueresponse = 0x00740047;
717719
718720      break;
r24621r24622
721723         //printf("which %04x\n", m_value0);
722724         
723725         hack_47_value += m_value0 & 0x0007;
726
727         //printf("0x52 - adding %04x value is now %04x\n", m_value0, hack_47_value);
728
724729         if (m_value0 & 0xfff8) printf("unhandled 0x52 bits %04x\n", m_value0);
725730
726731         m_valueresponse = 0x00740000 | (hack_47_value & 0xffff);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team