Previous 199869 Revisions Next

r32608 Thursday 9th October, 2014 at 23:17:14 UTC by David Haywood
make the orlegend111t set work [iq_132]
[src/mame/drivers]pgm.c
[src/mame/includes]pgm.h
[src/mame/machine]pgmprot_orlegend.c

trunk/src/mame/machine/pgmprot_orlegend.c
r32607r32608
2121
2222   m_asic3_hold ^= 0x2bad;
2323   m_asic3_hold ^= BIT(z, y);
24   m_asic3_hold ^= BIT(m_asic3_x, 1) << 6;
2524   m_asic3_hold ^= BIT(m_asic3_x, 2) << 10;
2625   m_asic3_hold ^= BIT(old, 5);
2726
r32607r32608
2928   {
3029      case 0:
3130      case 1:
32         m_asic3_hold ^= BIT(old, 10) ^ BIT(old, 8) ^ (BIT(m_asic3_x, 0) << 1) ^ (BIT(m_asic3_x, 3) << 14);
31         m_asic3_hold ^= BIT(old, 10) ^ BIT(old, 8) ^ (BIT(m_asic3_x, 0) << 1) ^ (BIT(m_asic3_x, 1) << 6) ^ (BIT(m_asic3_x, 3) << 14);
3332      break;
3433
3534      case 2:
36         m_asic3_hold ^= BIT(old, 10) ^ BIT(old, 8) ^ (BIT(m_asic3_x, 0) << 4) ^ (BIT(m_asic3_x, 3) << 12);
35         m_asic3_hold ^= BIT(old, 10) ^ BIT(old, 8) ^ (BIT(m_asic3_x, 0) << 4) ^ (BIT(m_asic3_x, 1) << 6) ^ (BIT(m_asic3_x, 3) << 12);
3736      break;
3837
3938      case 3:
40         m_asic3_hold ^= BIT(old,  7) ^ BIT(old, 6) ^ (BIT(m_asic3_x, 0) << 4) ^ (BIT(m_asic3_x, 3) << 12);
39         m_asic3_hold ^= BIT(old,  7) ^ BIT(old, 6) ^ (BIT(m_asic3_x, 0) << 4) ^ (BIT(m_asic3_x, 1) << 6) ^ (BIT(m_asic3_x, 3) << 12);
4140      break;
41
42      case 4: // orlegend111t
43         m_asic3_hold ^= BIT(old,  7) ^ BIT(old, 6) ^ (BIT(m_asic3_x, 0) << 3) ^ (BIT(m_asic3_x, 1) << 8) ^ (BIT(m_asic3_x, 3) << 14);
44      break;
4245   }
4346}
44
4547READ16_MEMBER(pgm_asic3_state::pgm_asic3_r)
4648{
4749   switch (m_asic3_reg)
r32607r32608
189191   PORT_CONFSETTING(      0x0003, DEF_STR( China ) )
190192INPUT_PORTS_END
191193
194INPUT_PORTS_START( orlegendt )
195   PORT_INCLUDE ( pgm )
196
197   PORT_MODIFY("Region")
198   PORT_DIPNAME( 0x0007, 0x0004, DEF_STR( Region ) )
199   PORT_CONFSETTING(      0x0000, "Invalid 00?" )
200   PORT_CONFSETTING(      0x0001, "Invalid 01?" )
201   PORT_CONFSETTING(      0x0002, "Invalid 02?" )
202   PORT_CONFSETTING(      0x0003, "Invalid 03?" )
203   PORT_CONFSETTING(      0x0004, DEF_STR( Taiwan ) )
204INPUT_PORTS_END
205
192206INPUT_PORTS_START( orld105k )
193207   PORT_INCLUDE ( pgm )
194208
trunk/src/mame/includes/pgm.h
r32607r32608
471471
472472
473473INPUT_PORTS_EXTERN( orlegend );
474INPUT_PORTS_EXTERN( orlegendt );
474475INPUT_PORTS_EXTERN( orld105k );
475476
476477MACHINE_CONFIG_EXTERN( pgm_asic3 );
trunk/src/mame/drivers/pgm.c
r32607r32608
41054105GAME( 1997, orlegendc,    orlegend,  pgm_asic3,     orlegend, pgm_asic3_state, orlegend,   ROT0,   "IGS", "Oriental Legend / Xi You Shi E Zhuan (ver. 112, Chinese Board)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // V0001 05/05/97 10:08:21 - runs as World, Korea, China
41064106GAME( 1997, orlegendca,   orlegend,  pgm_asic3,     orlegend, pgm_asic3_state, orlegend,   ROT0,   "IGS", "Oriental Legend / Xi You Shi E Zhuan (ver. ???, Chinese Board)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // V0001 04/02/97 13:35:43 - runs as HongKong, China, China
41074107GAME( 1997, orlegend111c, orlegend,  pgm_asic3,     orlegend, pgm_asic3_state, orlegend,   ROT0,   "IGS", "Oriental Legend / Xi You Shi E Zhuan (ver. 111, Chinese Board)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // V0001 no date!          - runs as HongKong, China, China
4108GAME( 1997, orlegend111t, orlegend,  pgm_asic3,     orlegend, pgm_asic3_state, orlegend,   ROT0,   "IGS", "Oriental Legend / Xi You Shi E Zhuan (ver. 111, Taiwanese Board)", GAME_NOT_WORKING ) // V0001 no date! - needs a different protection sequence
4108GAME( 1997, orlegend111t, orlegend,  pgm_asic3,     orlegendt,pgm_asic3_state, orlegend,   ROT0,   "IGS", "Oriental Legend / Xi You Shi E Zhuan (ver. 111, Taiwanese Board)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )// V0001 no date! - needs a different protection sequence
41094109GAME( 1997, orlegend105k, orlegend,  pgm_asic3,     orld105k, pgm_asic3_state, orlegend,   ROT0,   "IGS", "Oriental Legend / Xi You Shi E Zhuan (ver. 105, Korean Board)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )  // V0000 no date!          - runs as Korea
41104110
41114111GAME( 1997, drgw2,        pgm,       pgm_012_025_drgw2,     pgm, pgm_012_025_state,      drgw2,      ROT0,   "IGS", "Dragon World II (ver. 110X, Export)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team