Core/burn/drv/cave/d_guwange.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 += 0x100000;		
	CaveSpriteROM	= Next; Next += 0x2000000;
	CaveTileROM[0]	= Next; Next += 0x800000;		
	CaveTileROM[1]	= Next; Next += 0x400000;		
	CaveTileROM[2]	= Next; Next += 0x400000;		
	YMZ280BROM		= Next; Next += 0x400000;
	DefaultEEPROM	= Next; Next += 0x000080;
	RamStart		= Next;
	Ram01			= Next; Next += 0x010000;		
	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 += 0x100000 ; CaveSpriteROM = Next ; Next += 0x2000000 ; CaveTileROM [ 0 ] = Next ; Next += 0x800000 ; CaveTileROM [ 1 ] = Next ; Next += 0x400000 ; CaveTileROM [ 2 ] = Next ; Next += 0x400000 ; YMZ280BROM = Next ; Next += 0x400000 ; DefaultEEPROM = Next ; Next += 0x000080 ; RamStart = Next ; Ram01 = Next ; Next += 0x010000 ; 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