Added missing bitswaps, nw

This commit is contained in:
Angelo Salese 2011-04-24 22:00:36 +00:00
parent 8c4dbf7950
commit 259d8afd62

View File

@ -1379,9 +1379,6 @@ ROM_START( sfbonuso )
ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */
ROM_LOAD( "skfb17.bin", 0x00000, 0x40000, CRC(e28ede82) SHA1(f320c4c9c30ec280ee2437d1ad4d2b6270580916) )
ROM_REGION( 0x010000, "debugram", ROMREGION_ERASE00 ) /* DEBUG */
ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
ROM_LOAD( "skfbrom2.bin", 0x00000, 0x20000, CRC(3823a36e) SHA1(4136e380b63546b9490033ad26d776f326eb9290) )
@ -3732,8 +3729,6 @@ ROM_START( fb4o2 )
ROM_REGION( 0x040000, "oki", ROMREGION_ERASE00 ) /* Samples */
ROM_LOAD( "fb4rom2.bin", 0x00000, 0x3ffff, BAD_DUMP CRC(bf49ba49) SHA1(eea40e34298f7fd98771f0869ef541c5e1514f2a) )
ROM_REGION( 0x040000, "debugram", ROMREGION_ERASE00 )
ROM_REGION( 0x100000, "gfx1", 0 )
ROM_LOAD16_BYTE( "fb4rom3.bin", 0x00000, 0x80000, CRC(4176937d) SHA1(dbde944a154f648a86628a8165fa27032115c417) )
ROM_LOAD16_BYTE( "fb4rom4.bin", 0x00001, 0x80000, CRC(f8c57041) SHA1(ca8f58e89d31563b363a78db89e2711402f3ba80) )
@ -5672,10 +5667,7 @@ static DRIVER_INIT( sfbonus_common)
memset(state->m_reel4_ram, 0xff, 0x0800);
state_save_register_global_pointer(machine, state->m_reel4_ram , 0x0800);
// hack, because the debugger is broken
state->m_videoram = machine.region("debugram")->base();
if (!state->m_videoram)
state->m_videoram = auto_alloc_array(machine, UINT8, 0x10000);
state->m_videoram = auto_alloc_array(machine, UINT8, 0x10000);
memset(state->m_videoram, 0xff, 0x10000);
@ -5758,7 +5750,7 @@ static void sfbonus_bitswap( running_machine& machine,
DRIVER_INIT_CALL(sfbonus_common);
}
//static DRIVER_INIT(helper) { sfbonus_bitswap(machine, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0, 0xff, 7,6,5,4,3,2,1,0); }
static DRIVER_INIT(abnudge) { sfbonus_bitswap(machine, 0x33, 0,3,7,6,5,2,1,4, 0xff, 3,7,6,5,1,0,4,2, 0x36, 4,2,3,7,6,5,1,0, 0xa8, 3,2,4,0,1,7,6,5, 0x2c, 0,1,7,6,5,2,4,3, 0xff, 3,7,6,5,1,0,4,2, 0x26, 2,4,3,7,6,5,1,0, 0xbe, 4,1,3,0,2,7,6,5); }
static DRIVER_INIT(abnudged) { sfbonus_bitswap(machine, 0x3b, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x21, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3d, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x21, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5); }
@ -5863,29 +5855,20 @@ static DRIVER_INIT(bugfever) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0,
static DRIVER_INIT(bugfeverd) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xe8, 1,7,6,5,4,3,0,2, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(bugfeverv) { sfbonus_bitswap(machine, 0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x22, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
static DRIVER_INIT(bugfeverv2) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x23, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xed, 2,7,6,5,4,3,1,0, 0x26, 2,1,0,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(version4) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(version4v2) { sfbonus_bitswap(machine, 0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x26, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
static DRIVER_INIT(version4d2) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x25, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(version4v) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x26, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(dvisland) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x23, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(funriver) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x24, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 0,7,6,5,4,3,2,1, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(funriverv) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(spooky) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x39, 1,0,7,6,5,4,3,2, 0xe8, 1,7,6,5,4,3,2,0, 0x23, 0,2,1,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(fbdeluxe) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,2,0, 0x26, 0,2,1,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(fb3g) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x25, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,2,0, 0x24, 0,2,1,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
static DRIVER_INIT(getrich) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x23, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,2,0, 0x24, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
/*
case 0: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 1: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 2: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 3: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 4: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 5: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 6: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
case 7: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
*/
GAME( 2003, sfbonus, 0, sfbonus, amcoe2_reels3, sfbonus, ROT0, "Amcoe", "Skill Fruit Bonus (Version 1.9R, set 1)", 0)
GAME( 2003, sfbonusd1, sfbonus, sfbonus, amcoe1_reels3, sfbonusd, ROT0, "Amcoe", "Skill Fruit Bonus (Version 1.9R, set 2)", 0)
GAME( 2003, sfbonusv1, sfbonus, sfbonus, amcoe1_reels3, sfbonusv, ROT0, "Amcoe", "Skill Fruit Bonus (Version 1.9R Dual)", 0)
@ -6140,11 +6123,11 @@ GAME( 2005, funriver, 0, sfbonus, amcoe1_reels3, funriver,
GAME( 2005, funriverv, funriver, sfbonus, amcoe1_reels3, funriverv, ROT0, "Amcoe", "Fun River (set 2)", GAME_NOT_WORKING)
GAME( 2006, version4, 0, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.3R CGA)", GAME_NOT_WORKING)
GAME( 2006, version4v, version4, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.3R Dual)", GAME_NOT_WORKING) // wrong prg decode
GAME( 2006, version4d2, version4, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.3E CGA)", GAME_NOT_WORKING) // wrong prg decode
GAME( 2006, version4v2, version4, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.3E Dual)", GAME_NOT_WORKING) // wrong prg decode
GAME( 2006, version4v, version4, sfbonus, amcoe1_reels3, version4v, ROT0, "Amcoe", "Version 4 (Version 4.3R Dual)", GAME_NOT_WORKING)
GAME( 2006, version4d2, version4, sfbonus, amcoe1_reels3, version4d2, ROT0, "Amcoe", "Version 4 (Version 4.3E CGA)", GAME_NOT_WORKING)
GAME( 2006, version4v2, version4, sfbonus, amcoe1_reels3, version4v2, ROT0, "Amcoe", "Version 4 (Version 4.3E Dual)", GAME_NOT_WORKING)
GAME( 2006, version4d3, version4, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.3LT CGA)", GAME_NOT_WORKING)
GAME( 2006, version4v3, version4, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.3LT Dual)",GAME_NOT_WORKING) // wrong prg decode
GAME( 2006, version4v3, version4, sfbonus, amcoe1_reels3, version4v, ROT0, "Amcoe", "Version 4 (Version 4.3LT Dual)",GAME_NOT_WORKING)
GAME( 2006, version4o, version4, sfbonus, amcoe1_reels3, version4, ROT0, "Amcoe", "Version 4 (Version 4.2R CGA)", GAME_NOT_WORKING)
GAME( 200?, spooky, 0, sfbonus, amcoe1_reels3, spooky, ROT0, "Amcoe", "Spooky Night (2nd edition) (Version 2.0.4)", GAME_NOT_WORKING) /* After Around The World */
@ -6152,9 +6135,9 @@ GAME( 200?, spooky, 0, sfbonus, amcoe1_reels3, spooky,
GAME( 200?, fbdeluxe, 0, sfbonus, amcoe1_reels3, fbdeluxe, ROT0, "Amcoe", "Fruit Bonus Deluxe (Version 1.0.9)", GAME_NOT_WORKING) /* After Around The World */
GAME( 200?, fbdeluxeo, fbdeluxe, sfbonus, amcoe1_reels3, fbdeluxe, ROT0, "Amcoe", "Fruit Bonus Deluxe (Version 1.0.7)", GAME_NOT_WORKING) /* After Around The World */
GAME( 200?, fb3g, 0, sfbonus, amcoe1_reels3, fbdeluxe, ROT0, "Amcoe", "Fruit Bonus 3G (Version 1.0.3)", GAME_NOT_WORKING) /* After Around The World */
GAME( 200?, fb3g, 0, sfbonus, amcoe1_reels3, fb3g, ROT0, "Amcoe", "Fruit Bonus 3G (Version 1.0.3)", GAME_NOT_WORKING) /* After Around The World */
GAME( 200?, getrich, 0, sfbonus, amcoe1_reels3, fbdeluxe, ROT0, "Amcoe", "Get Rich (Version 1.0.1)", GAME_NOT_WORKING) /* After Around The World */
GAME( 200?, getrich, 0, sfbonus, amcoe1_reels3, getrich, ROT0, "Amcoe", "Get Rich (Version 1.0.1)", GAME_NOT_WORKING) /* After Around The World */
// Known sets but no roms dumped at all for these: