I get this error bellow in drivers/neogeo.c.
In function 'init_pnyaa'
7049: warning: ISO C90 forbids mixed declarations and code make.
There is something that I don't know about in this bellow and I got the UINT16 right I think.
DRIVER_INIT( pnyaa )
{
neogeo_fix_bank_type = 1;
kof2000_neogeo_gfx_decrypt(0x2f);
init_neogeo();
UINT16 *rom;
int i,j;
/* thanks to Elsemi for the NEO-PCM2 info */
rom = (UINT16 *)(memory_region(REGION_SOUND1));
if( rom != NULL )
{
/* swap address lines on the whole ROMs */
for( i = 0; i < 0x400000 / 2; i += 4 / 2 )
{
UINT16 buffer[ 4 / 2 ];
memcpy( buffer, &rom[ i ], 4 );
for( j = 0; j < 4 / 2; j++ )
{
rom[ i + j ] = buffer[ j ^ 1 ];
}
}
}
}
I have no idea what is wrong.
Just incase you ask for this bellow.
ROM_START( pnyaa )
ROM_REGION( 0x100000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "267-p1.bin", 0x000000, 0x100000, CRC(112fe2c0) SHA1(01420e051f0bdbd4f68ce306a3738161b96f8ba8) )
ROM_REGION( 0x20000, REGION_GFX1, 0 )
ROM_FILL( 0x000000, 0x20000, 0 )
ROM_REGION( 0x20000, REGION_GFX2, 0 )
ROM_LOAD( "sfix.sfx", 0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) )
ROM_REGION( 0x80000, REGION_USER4, 0 )
ROM_LOAD( "267-m1.bin", 0x00000, 0x80000, CRC(c7853ccd) SHA1(1b7a4c5093cf0fe3861ce44fd1d3b30c71ad0abe) )
NEO_BIOS_SOUND_512K( "267-m1d.bin", CRC(d58eaa8e) SHA1(4c4faf1da671a41b4d854790eb623a40cb35f256) )
ROM_REGION( 0x400000, REGION_SOUND1, 0)
ROM_LOAD( "267-v1.bin", 0x000000, 0x400000, CRC(e2e8e917) SHA1(7f412d55aebff3d38a225a88c632916295ab0584) )
NO_DELTAT_REGION
ROM_REGION( 0x1000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "267-c1.bin", 0x0000000, 0x800000, CRC(2e20617a) SHA1(ed73724377a321aa024a5886eb148c416d4451aa) )
ROM_LOAD16_BYTE( "267-c2.bin", 0x0000001, 0x800000, CRC(4edfa720) SHA1(1407a1d0d44f73c1a196c95d368d6451b17f6176) )
ROM_END