Core/burn/drv/neogeo/neo_run.cpp
// This function is called once to determine how much memory is needed (RAMEnd-(UINT8 *)0),
// then a second time after the memory is allocated to set up all the pointers.
This function is called once to determine how much memory is needed (RAMEnd-(UINT8 *)0),
then a second time after the memory is allocated to set up all the pointers.
This function is called once to determine how much memory is needed ( RAMEnd - ( UINT8 * ) 0 ) then a second time after the memory is allocated to set up all the pointers .
static INT32 RAMIndex()
{
	UINT8* Next = AllRAM;
	NeoPalSrc[0]		= Next; Next += 0x002000;		
	NeoPalSrc[1]		= Next; Next += 0x002000;		
	NeoGraphicsRAM		= Next; Next += 0x020000;		
	if (nNeoSystemType & NEO_SYS_CART) {
		Neo68KRAM		= Next; Next += 0x010000;		
		NeoZ80RAM		= Next; Next += 0x000800;		
		NeoNVRAM		= Next; Next += 0x010000;		
	}
	if ((BurnDrvGetHardwareCode() & HARDWARE_SNK_CONTROLMASK) == HARDWARE_SNK_GAMBLING) {
		NeoNVRAM2	= Next; Next += 0x002000;			
	}
	NeoMemoryCard		= Next; Next += 0x020000;		
	if (nNeoSystemType & NEO_SYS_CD) {
		NeoSpriteRAM	= Next; Next += nSpriteSize[0];
		NeoTextRAM		= Next; Next += nNeoTextROMSize[0];
	}
	RAMEnd				= Next;
	return 0;
}
static INT32 RAMIndex ( ) { UINT8 * Next = AllRAM ; NeoPalSrc [ 0 ] = Next ; Next += 0x002000 ; NeoPalSrc [ 1 ] = Next ; Next += 0x002000 ; NeoGraphicsRAM = Next ; Next += 0x020000 ; if ( nNeoSystemType & NEO_SYS_CART ) { Neo68KRAM = Next ; Next += 0x010000 ; NeoZ80RAM = Next ; Next += 0x000800 ; NeoNVRAM = Next ; Next += 0x010000 ; } if ( ( BurnDrvGetHardwareCode ( ) & HARDWARE_SNK_CONTROLMASK ) == HARDWARE_SNK_GAMBLING ) { NeoNVRAM2 = Next ; Next += 0x002000 ; } NeoMemoryCard = Next ; Next += 0x020000 ; if ( nNeoSystemType & NEO_SYS_CD ) { NeoSpriteRAM = Next ; Next += nSpriteSize [ 0 ] ; NeoTextRAM = Next ; Next += nNeoTextROMSize [ 0 ] ; } RAMEnd = Next ; return 0 ; }
This function is called once to determine how much memory is needed (RAMEnd-(UINT8 *)0),
then a second time after the memory is allocated to set up all the pointers.
This function is called once to determine how much memory is needed ( RAMEnd - ( UINT8 * ) 0 ) then a second time after the memory is allocated to set up all the pointers .
// Palette RAM Bank 0 // Palette RAM Bank 1 // Graphics controller RAM (2 64KB banks) // 68K work RAM // Z80 RAM // Battery backed SRAM // Extra SRAM for vliner/jockeygp // Memory card