Core/burn/drv/capcom/qs_z.cpp
// Map in the memory for the current 0x8000-0xc000 music bank
Map in the memory for the current 0x8000-0xc000 music bank
Map in the memory for the current 0x8000 - 0xc000 music bank
static INT32 QsndZBankMap()
{
	UINT32 nOff;
	UINT8* Bank;
	nOff = nQsndZBank << 14;
	nOff += 0x8000;
	if (Cps1Qs == 0) {
		if (nOff + 0x4000 > nCpsZRomLen) {			
			nOff = 0;
		}
		Bank = CpsZRom + nOff;
	} else {
		if (nOff + 0x4000 > (nCpsZRomLen / 2)) {
			nOff = 0;
		}
		Bank = CpsZRom - (nCpsZRomLen / 2) + nOff;
	}
	ZetMapArea(0x8000, 0xbfff, 0, Bank);
	if (Cps1Qs == 0) {
		ZetMapArea(0x8000, 0xbfff, 2, Bank, CpsZRom + nOff);
	} else {
		ZetMapArea(0x8000, 0xbfff, 2, Bank);
	}
	return 0;
}
static INT32 QsndZBankMap ( ) { UINT32 nOff ; UINT8 * Bank ; nOff = nQsndZBank << 14 ; nOff += 0x8000 ; if ( Cps1Qs == 0 ) { if ( nOff + 0x4000 > nCpsZRomLen ) { nOff = 0 ; } Bank = CpsZRom + nOff ; } else { if ( nOff + 0x4000 > ( nCpsZRomLen / 2 ) ) { nOff = 0 ; } Bank = CpsZRom - ( nCpsZRomLen / 2 ) + nOff ; } ZetMapArea ( 0x8000 , 0xbfff , 0 , Bank ) ; if ( Cps1Qs == 0 ) { ZetMapArea ( 0x8000 , 0xbfff , 2 , Bank , CpsZRom + nOff ) ; } else { ZetMapArea ( 0x8000 , 0xbfff , 2 , Bank ) ; } return 0 ; }
Map in the memory for the current 0x8000-0xc000 music bank
Map in the memory for the current 0x8000 - 0xc000 music bank
// End of bank is out of range // Read and fetch the bank