Core/burn/drv/cave/d_metmqstr.cpp
// This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
// and then afterwards to set up all the pointers
This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
and then afterwards to set up all the pointers
This routine is called first to determine how much memory is needed ( MemEnd - ( UINT8 * ) 0 ) and then afterwards to set up all the pointers
static INT32 MemIndex()
{
	UINT8* Next; Next = Mem;
	Rom01			= Next; Next += 0x180000;		
	RomZ80			= Next; Next += 0x040000;
	CaveSpriteROM	= Next; Next += 0x1000000;
	CaveTileROM[0]	= Next; Next += 0x400000;		
	CaveTileROM[1]	= Next; Next += 0x400000;		
	CaveTileROM[2]	= Next; Next += 0x400000;		
	MSM6295ROM		= Next; Next += 0x140000;
	MSM6295ROMSrc1		= Next; Next += 0x200000;
	MSM6295ROMSrc2		= Next; Next += 0x200000;
	RamStart		= Next;
	Ram01			= Next; Next += 0x018000;		
	RamZ80			= Next; Next += 0x002000;
	CaveTileRAM[0]	= Next; Next += 0x008000;
	CaveTileRAM[1]	= Next; Next += 0x008000;
	CaveTileRAM[2]	= Next; Next += 0x008000;
	CaveSpriteRAM	= Next; Next += 0x010000;
	CavePalSrc		= Next; Next += 0x010000;		
	RamEnd			= Next;
	MemEnd			= Next;
	return 0;
}
static INT32 MemIndex ( ) { UINT8 * Next ; Next = Mem ; Rom01 = Next ; Next += 0x180000 ; RomZ80 = Next ; Next += 0x040000 ; CaveSpriteROM = Next ; Next += 0x1000000 ; CaveTileROM [ 0 ] = Next ; Next += 0x400000 ; CaveTileROM [ 1 ] = Next ; Next += 0x400000 ; CaveTileROM [ 2 ] = Next ; Next += 0x400000 ; MSM6295ROM = Next ; Next += 0x140000 ; MSM6295ROMSrc1 = Next ; Next += 0x200000 ; MSM6295ROMSrc2 = Next ; Next += 0x200000 ; RamStart = Next ; Ram01 = Next ; Next += 0x018000 ; RamZ80 = Next ; Next += 0x002000 ; CaveTileRAM [ 0 ] = Next ; Next += 0x008000 ; CaveTileRAM [ 1 ] = Next ; Next += 0x008000 ; CaveTileRAM [ 2 ] = Next ; Next += 0x008000 ; CaveSpriteRAM = Next ; Next += 0x010000 ; CavePalSrc = Next ; Next += 0x010000 ; RamEnd = Next ; MemEnd = Next ; return 0 ; }
This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
and then afterwards to set up all the pointers
This routine is called first to determine how much memory is needed ( MemEnd - ( UINT8 * ) 0 ) and then afterwards to set up all the pointers
// 68K program // Tile layer 0 // Tile layer 1 // Tile layer 2 // CPU #0 work RAM // palette