BTW, here's an example driver. It has encryption enabled, as well as swapv, swapp, and swapc.
ROM_START( Test )
ROM_REGION( 0x200000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "xxx-p1.bin", 0x100000, 0x100000, CRC() )
ROM_CONTINUE( 0x000000, 0x100000 )
NEO_SFIX_128K( "xxx-s1.bin", CRC() )
NEO_BIOS_SOUND_128K( "xxx-m1.bin", CRC() )
ROM_REGION( 0x400000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "xxx-v1.bin", 0x200000, 0x200000, CRC() )
ROM_CONTINUE( 0x000000, 0x200000 )
NO_DELTAT_REGION
ROM_REGION( 0x800000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "xxx-c1.bin", 0x0000000, 0x100000, CRC() )
ROM_CONTINUE( 0x400000, 0x100000 )
ROM_LOAD16_BYTE( "xxx-c2.bin", 0x0000001, 0x100000, CRC() )
ROM_CONTINUE( 0x400001, 0x100000 )
ROM_LOAD16_BYTE( "xxx-c3.bin", 0x200000, 0x100000, CRC() )
ROM_CONTINUE( 0x600000, 0x100000 )
ROM_LOAD16_BYTE( "xxx-c4.bin", 0x200001, 0x100000, CRC() )
ROM_CONTINUE( 0x600001, 0x100000 )
ROM_END
This goes in the middle of NEOGEO.C (src/drivers/) in the init section.
DRIVER_INIT( Test )
{
neogeo_fix_bank_type = 1;
kof99_neogeo_gfx_decrypt(0xaa);
init_neogeo();
}
This goes at the bottom of NEOGEO.C (src/drivers/)
GAMEB( 2004, Test, neogeo, neogeo, neogeo, neogeo, Test, ROT0, "IQ\'s Test", "This is a test name" )
This goes at the bottom of DRIVER.C (src/)
DRIVER( Test ) /* (c) 2004 IQ\'s Test */