trunk/src/mame/machine/pgmprot_orlegend.c
| r32607 | r32608 | |
| 21 | 21 | |
| 22 | 22 | m_asic3_hold ^= 0x2bad; |
| 23 | 23 | m_asic3_hold ^= BIT(z, y); |
| 24 | | m_asic3_hold ^= BIT(m_asic3_x, 1) << 6; |
| 25 | 24 | m_asic3_hold ^= BIT(m_asic3_x, 2) << 10; |
| 26 | 25 | m_asic3_hold ^= BIT(old, 5); |
| 27 | 26 | |
| r32607 | r32608 | |
| 29 | 28 | { |
| 30 | 29 | case 0: |
| 31 | 30 | 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); |
| 33 | 32 | break; |
| 34 | 33 | |
| 35 | 34 | 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); |
| 37 | 36 | break; |
| 38 | 37 | |
| 39 | 38 | 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); |
| 41 | 40 | 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; |
| 42 | 45 | } |
| 43 | 46 | } |
| 44 | | |
| 45 | 47 | READ16_MEMBER(pgm_asic3_state::pgm_asic3_r) |
| 46 | 48 | { |
| 47 | 49 | switch (m_asic3_reg) |
| r32607 | r32608 | |
| 189 | 191 | PORT_CONFSETTING( 0x0003, DEF_STR( China ) ) |
| 190 | 192 | INPUT_PORTS_END |
| 191 | 193 | |
| 194 | INPUT_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 ) ) |
| 204 | INPUT_PORTS_END |
| 205 | |
| 192 | 206 | INPUT_PORTS_START( orld105k ) |
| 193 | 207 | PORT_INCLUDE ( pgm ) |
| 194 | 208 | |
trunk/src/mame/drivers/pgm.c
| r32607 | r32608 | |
| 4105 | 4105 | GAME( 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 |
| 4106 | 4106 | GAME( 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 |
| 4107 | 4107 | GAME( 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 |
| 4108 | | GAME( 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 |
| 4108 | GAME( 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 |
| 4109 | 4109 | GAME( 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 |
| 4110 | 4110 | |
| 4111 | 4111 | GAME( 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 ) |