diff --git a/src/mame/machine/pgmprot_igs027a_type1.c b/src/mame/machine/pgmprot_igs027a_type1.c index c4aedfdb01d..0323e6b20af 100644 --- a/src/mame/machine/pgmprot_igs027a_type1.c +++ b/src/mame/machine/pgmprot_igs027a_type1.c @@ -579,7 +579,7 @@ UINT8 puzzli2_level_decode[256] = { 0x03, 0x0b, 0xbb, 0xc1, 0xe2, 0x4c, 0x04, 0xc5, 0x8c, 0x09, 0x0e, 0xbf, 0x62, 0x48, 0x75, 0x59, 0x1d, 0x80, 0xdf, 0x60, 0x07, 0xe2, 0x1b, 0x67, 0xa5, 0xbf, 0xcd, 0x86, 0xdc, 0xc3, 0x6a, 0x4e, 0xd0, 0xfc, 0xd5, 0x3f, 0x98, 0x96, 0x2e, 0x4c, 0xb3, 0xea, 0x2d, 0x75, 0xe6, 0xc0, 0x6c, 0x69, -0x9b, 0xb7, 0x43, 0x8b, 0x41, 0x47, 0x02, 0xda, 0x98, 0x3d, 0xa3, 0x79, 0x10, 0x4f, 0xb4, 0x55, +0x9b, 0xb7, 0x43, 0x8b, 0x41, 0x47, 0x02, 0xda, 0x98, 0x3d, 0xa3, 0x79, 0x50, 0x4f, 0xb4, 0x55, 0x5a, 0x25, 0xf4, 0xc8, 0x58, 0x30, 0xc4, 0x12, 0xa9, 0x45, 0xda, 0x91, 0xa4, 0xaa, 0xfc, 0x84, 0xfa, 0x88, 0x06, 0xce, 0xfe, 0x32, 0xd5, 0x28, 0x1d, 0x19, 0x4b, 0xb1, 0x83, 0xf2, 0x72, 0x26, }; @@ -1822,7 +1822,7 @@ DRIVER_INIT_MEMBER(pgm_arm_type1_state,puzzli2) m_maincpu->space(AS_PROGRAM).install_read_handler(0x4f0000, 0x4f003f, read16_delegate(FUNC(pgm_arm_type1_state::pgm_arm7_type1_sim_protram_r),this)); m_irq4_disabled = 1; // // doesn't like this irq?? - +//#define PUZZLI2_LEVEL_STRUCTURE_LOG #ifdef PUZZLI2_LEVEL_STRUCTURE_LOG UINT8 *src2 = (UINT8 *) (machine().root_device().memregion("maincpu")->base()); @@ -1908,6 +1908,7 @@ DRIVER_INIT_MEMBER(pgm_arm_type1_state,puzzli2) { // for 0 entries skip back to state 1 instead of 3, because there is nothing following stage = 1; + currentcolumn++; } } @@ -1932,6 +1933,11 @@ DRIVER_INIT_MEMBER(pgm_arm_type1_state,puzzli2) printf("last (pre-decrypted) byte in stream was %02x if this is 00 we're probably ok\n", lastbyte); } + printf("total number of valid columns was %02x\n", currentcolumn); + + if ((currentcolumn!=0x6) && (currentcolumn!=0x7) && (currentcolumn!=0x8) && (currentcolumn!=0x5)) // 5 is suspicious + fatalerror("invalid number of columns?\n"); + printf("\n"); }