Core/burn/drv/toaplan/toaplan.cpp
// This function loads interleaved code ROMs.
// All even roms should be first, followed by all odd ROMs.
This function loads interleaved code ROMs.
All even roms should be first, followed by all odd ROMs.
This function loads interleaved code ROMs . All even roms should be first followed by all odd ROMs .
INT32 ToaLoadCode(UINT8* pROM, INT32 nStart, INT32 nCount)
{
	nCount >>= 1;
	for (INT32 nOdd = 0; nOdd < 2; nOdd++) {
		UINT8* pLoad = pROM + (nOdd ^ 1);			
		for (INT32 i = 0; i < nCount; i++) {
			struct BurnRomInfo ri;
			if (BurnLoadRom(pLoad, nStart + i, 2)) {
				return 1;
			}
			ri.nLen = 0;
			BurnDrvGetRomInfo(&ri, nStart + i);
			pLoad += ri.nLen << 1;
		}
		nStart += nCount;
	}
	return 0;
}
INT32 ToaLoadCode ( UINT8 * pROM , INT32 nStart , INT32 nCount ) { nCount >>= 1 ; for ( INT32 nOdd = 0 ; nOdd < 2 ; nOdd ++ ) { UINT8 * pLoad = pROM + ( nOdd ^ 1 ) ; for ( INT32 i = 0 ; i < nCount ; i ++ ) { struct BurnRomInfo ri ; if ( BurnLoadRom ( pLoad , nStart + i , 2 ) ) { return 1 ; } ri . nLen = 0 ; BurnDrvGetRomInfo ( & ri , nStart + i ) ; pLoad += ri . nLen << 1 ; } nStart += nCount ; } return 0 ; }
This function loads interleaved code ROMs.
This function loads interleaved code ROMs .
// ^1 for byteswapped // Load these even/odd bytes // Increment position by the length of the rom * 2